# Changelog 2020

## 16th December 2020

* Added [Request limits](https://docs.mews.com/connector-api/guidelines#request-limits) and [Taxations](https://docs.mews.com/connector-api/guidelines#taxations) to [Guidelines](https://docs.mews.com/connector-api/guidelines)
* Extended operation [Get all customers](https://docs.mews.com/connector-api/operations/customers#get-all-customers) with property `LoyaltyCodes`.

## 27th November 2020

* Added operation [Get all vouchers](https://docs.mews.com/connector-api/operations/vouchers#get-all-vouchers) and extended [Reservation](https://docs.mews.com/connector-api/operations/reservations#reservation) with property `VoucherId`.

## 3rd November 2020

* Extended response of operation [Get all tax environments](https://docs.mews.com/connector-api/operations/taxenvironments#get-all-tax-environments) with validity interval of taxation.
* Extended response of operation [Get all rates](https://docs.mews.com/connector-api/operations/rates#get-all-rates) with property `IsEnabled` specifying the rate is currently available to customers.
* Extended operation [Update reservation](https://docs.mews.com/connector-api/operations/reservations#update-reservation) with parameter `AssignedResourceLocked`.
* Extended operation [Get service availability](https://docs.mews.com/connector-api/operations/services#get-service-availability) with list of active availability adjustments.
* Added operation [Update service availability](https://docs.mews.com/connector-api/operations/services#update-service-availability).

## 29th September 2020

* Replaced `Gender` property with `Sex` for operations [Add customer](https://docs.mews.com/connector-api/operations/customers#add-customer), [Update customer](https://docs.mews.com/connector-api/operations/customers#update-customer), [Get all customers](https://docs.mews.com/connector-api/operations/customers#get-all-customer), [Search customers](https://docs.mews.com/connector-api/operations/customers#search-customers) and [Get all reservations](https://docs.mews.com/connector-api/operations/reservations#get-all-reservations-ver-2017-04-12) and all other usages.

## 24th September 2020

* Extended operations [Add reservations](https://docs.mews.com/connector-api/operations/reservations#add-reservations), [Add reservation product](https://docs.mews.com/connector-api/operations/reservations#add-reservation-product) and [Add order](https://docs.mews.com/connector-api/operations/orders#add-order) with possibility to specify consumption date for products charged `Once` and `Per Person`.

## 21st September 2020

* WebSockets event 'Space' replaced by [Resource](https://docs.mews.com/connector-api/events/websockets#resource-event)
* WebSockets event [Reservation](https://docs.mews.com/connector-api/events/websockets#reservation-event) extended with `AssignedResourceId`
* WebSockets event [PriceUpdate](https://docs.mews.com/connector-api/events/websockets#price-update-event) extended with `ResourceCategoryId`

## 1st September 2020

* Added new operation [Get all rules](https://docs.mews.com/connector-api/operations/rules#rules).
* Added new operation [Add alternative payment](https://docs.mews.com/connector-api/operations/payments#add-alternative-payment).
* Extended operation [Get all accounting items](https://docs.mews.com/connector-api/operations/accountingitems#Get-all-accounting-items) with filter `ItemIds` and response with `SubState`.

## 19th August 2020

* Extended [Travel agency contract](https://github.com/MewsSystems/open-api-docs/blob/main/connector-api/operations/companycontracts/README.md#travel-agency-contract) with `ServiceId`.
* Extended [Bill](https://docs.mews.com/connector-api/operations/bills#bill) object with [Bill assignee data](https://docs.mews.com/connector-api/operations/bills#bill-assignee-data).
* Extended [Promotions](https://docs.mews.com/connector-api/operations/services#promotions) object with `DuringCheckOut` property.
* Extended [Resource](https://github.com/MewsSystems/open-api-docs/blob/main/connector-api/operations/resources/README.md#resource) with `CreatedUtc` and `UpdatedUtc`.
* Extended [Resource category assignment](https://docs.mews.com/connector-api/operations/resourcecategories#resource-category-assignment) with `Id`, `IsActive`, `CreatedUtc` and `UpdatedUtc`.
* Extended [Resource category image assignment](https://docs.mews.com/connector-api/operations/resourcecategories#resource-category-image-assignment) with `Id`, `IsActive`, `CreatedUtc` and `UpdatedUtc`.
* Extended [Resource feature assignment](https://docs.mews.com/connector-api/operations/resourcefeatures#resource-feature-assignment) with `Id`, `IsActive`, `CreatedUtc` and `UpdatedUtc`.

## 5th August 2020

* Fixed spelling mistake in parameter `TravelAgencyId` in operation [Update reservation](https://docs.mews.com/connector-api/operations/reservations#update-reservation).
* Extended operations [Get all products](https://docs.mews.com/connector-api/operations/products#get-all-products) with property `ExternalName`.
* Extended [Get configuration](https://docs.mews.com/connector-api/operations/configuration#get-configuration) response with [Service](https://github.com/MewsSystems/open-api-docs/blob/main/connector-api/operations/services/README.md#service).
* Extended [Integration created data](https://docs.mews.com/connector-api/events#integration-created-data) with [Service](https://github.com/MewsSystems/open-api-docs/blob/main/connector-api/changelog/..events/README.md#service).

## 23rd July 2020

* Extended [Product order parameters](https://docs.mews.com/connector-api/operations/orders#product-order-parameters) with consumption dates.

## 21st July 2020

* Added new operations [Update accounting items](https://docs.mews.com/connector-api/operations/accountingitems#update-accounting-items), [Add bill](https://docs.mews.com/connector-api/operations/bills#add-bill) and [Delete bill](https://docs.mews.com/connector-api/operations/bills#delete-bill).
* Added new operations [Get all counters](https://docs.mews.com/connector-api/operations/counters#get-all-counters), [Close bill](https://docs.mews.com/connector-api/operations/bills#close-bill), [Get bill PDF](https://docs.mews.com/connector-api/operations/bills#get-bill-pdf)
* Extended operations [Get all products](https://docs.mews.com/connector-api/operations/products#get-all-products) with property `ExternalName`.
* Extended operations [Add customer](https://docs.mews.com/connector-api/operations/customers#add-customer) and [Update customer](https://docs.mews.com/connector-api/operations/customers#update-customer) with optional parameters `ItalianFiscalCode` and `ItalianDestinationCode`.
* Removed value of [Tax rate](https://docs.mews.com/connector-api/operations/taxations#tax-rate).
* Fixed filtering by `ReservationIds` in [Get all reservations](https://docs.mews.com/connector-api/operations/reservations#get-all-reservations-ver-2017-04-12) operation.

## 2nd July 2020

A month ago we announced the [project Spacetime](https://developers.mews.com/project-spacetime/) whose main objective is to generalize the notion of services and spaces. And later, also the time units. We're pleased to announce that the first phase is now available in the Connector API. We are generalizing spaces into resources, we're introducing the possibility to have multiple "visit" services, not just a single one. The resources might be offered via multiple services which also means that a few entities like rates, restrictions or resource features are no longer defined on enterprise level, they're defined on service level and apply only to specified service.

**There are no immediate breaking changes in the API, all of the previous endpoints and capabilities are still working and will be working until the end of the deprecation period which is scheduled for 15 Jan 2021**.

However we'd like to ask you to update your clients as soon as possible, we're not able to roll out the new possibilities to our clients if you are not ready. Therefore we rely on you and your timely cooperation because we want to give this new opportunity to the hotels as soon as we can. We acknowledge it's a lot of changes, we're prepared to monitor the situation and help you with any questions or concerns, feel free to contact us at <partnersuccess@mews.com>.

* Added [Resource](https://docs.mews.com/connector-api/operations/resources#resource) that is replacing the Space. It can have multiple categories through multiple services. Note that Resource does not need to be assigned to any category.
* Added [Resource category](https://docs.mews.com/connector-api/operations/resources#resource-category) that is replacing the Space category.
* Added [Resource category image assignment](https://docs.mews.com/connector-api/operations/resourcecategories#resource-category-image-assignment) that links an image to a category.
* Added [Resource category assignment](https://docs.mews.com/connector-api/operations/resources#resource-category-assignment) that links a resource to a category. Note that resource can be assigned only to a single category within the same service.
* Added [Resource feature](https://docs.mews.com/connector-api/operations/resourcefeatures#resource-feature) that is replacing the Space feature and now is within the service context.
* Added [Resource feature assignment](https://docs.mews.com/connector-api/operations/resourcefeatures#resource-feature-assignment) that is replacing the Space feature assignment.
* Added [Resource block](https://docs.mews.com/connector-api/operations/resources#resource-block) that is replacing the Space block. Note that a resource without any category can be assigned to a block.
* Added [Get all resources](https://docs.mews.com/connector-api/operations/resources#get-all-resources) that is replacing Get all spaces.
* Added [Update resources](https://docs.mews.com/connector-api/operations/resources#update-resources).
* Added [Get all resource blocks](https://docs.mews.com/connector-api/operations/resourceblocks#get-all-resource-blocks) that is replacing Get all space blocks.
* Added [Add resource blocks](https://docs.mews.com/connector-api/operations/resourceblocks#add-resource-block) that is replacing Add space block.
* Added [Delete resource blocks](https://docs.mews.com/connector-api/operations/resourceblocks#delete-resource-blocks) that is replacing Delete space blocks.
* Extended [Get all reservations](https://docs.mews.com/connector-api/operations/reservations#get-all-reservations-ver-2017-04-12) parameters with required `ServiceIds` and `AssignedResourceIds` that is replacing `SpaceIds`.
* Extended [Get all reservations](https://docs.mews.com/connector-api/operations/reservations#get-all-reservations-ver-2017-04-12) response with `Resources`, `ResourceCategories` that is replacing `Spaces`, `SpaceCategories` and `ResourceCategoryAssignments`.
* Extended [Reservation extent](https://docs.mews.com/connector-api/operations/reservations#reservation-extent) with `ResourceCategories`, `ResourceCategoryAssignments` and `Resources` that is replacing the `Spaces`.
* Extended [Reservation](https://docs.mews.com/connector-api/operations/reservations#reservation) with `AssignedResourceId` and `AssignedResourceLocked` that is replacing `AssignedSpaceId` and `AssignedSpaceLocked`.
* Extended [Update reservation](https://docs.mews.com/connector-api/operations/reservations#update-reservation) parameters with `AssignedResourceId` that is replacing Update reservation space.
* Extended [Search customers](https://docs.mews.com/connector-api/operations/customers#search-customers) parameters with `ResourceId` that is replacing `SpaceId`.
* Extended [Get all business segments](https://docs.mews.com/connector-api/operations/businesssegments#get-all-business-segments) parameters with required `ServiceIds`.
* Extended [Get all rates](https://docs.mews.com/connector-api/operations/rates#get-all-rates) parameters with required `ServiceIds`.
* Extended [Get all restrictions](https://docs.mews.com/connector-api/operations/restrictions#get-all-restrictions) parameters with required `ServiceIds` and `ResourceCategoryIds` that is replacing `SpaceCategoryIds`.
* Extended [Add restrictions](https://docs.mews.com/connector-api/operations/rates#get-all-rates) parameters with required `ServiceId`.
* Extended [Restriction](https://docs.mews.com/connector-api/operations/restrictions#restriction) with `ServiceId` and `ResourceCategoryId`, `ResourceCategoryType` that is replacing `SpaceCategoryId`, `SpaceType`.
* Extended [Restriction conditions](https://docs.mews.com/connector-api/operations/restrictions#restriction-conditions) with `ResourceCategoryId`, `ResourceCategoryType` that is replacing `SpaceCategoryId`, `SpaceType`,
* Extended [Business segment](https://docs.mews.com/connector-api/operations/businesssegments#business-segment) with `ServiceId`.
* Extended [Rate](https://docs.mews.com/connector-api/operations/rates#rate) with `ServiceId`.
* Extended [Rate group](https://docs.mews.com/connector-api/operations/rates#rate-group) with `ServiceId`.
* Renamed `Space category availability` to [Resource category availability](https://docs.mews.com/connector-api/operations/resources#resource-category-availability).
* Renamed `Space category pricing` to [Resource category pricing](https://docs.mews.com/connector-api/operations/resources#resource-category-pricing).
* Renamed `Space category adjustment` to [Resource category adjustment](https://docs.mews.com/connector-api/operations/resources#resource-category-adjustment).
* Removed `Update space state` which is replaced by general Update resources.
* Removed `Update reservation requested category`. [Update reservation](https://docs.mews.com/connector-api/operations/reservations#update-reservation) should be used instead.

## 6th June 2020

* Extended Add restrictions and [Get all restrictions](https://docs.mews.com/connector-api/operations/restrictions#get-all-restrictions) parameters with `ExternalIdentifier`.
* Extended [Get all reservations](https://docs.mews.com/connector-api/operations/reservations#get-all-reservations-ver-2017-04-12) parameters with `ReservationIds`, `GroupIds`, `CustomerIds`, `SpaceIds`, `RateIds`, `BusinessSegmentIds` and `Numbers`.
* Updated [Add reservations](https://docs.mews.com/connector-api/operations/reservations#add-reservations), [Update reservation](https://docs.mews.com/connector-api/operations/reservations#update-reservation), [Confirm reservation](https://docs.mews.com/connector-api/operations/reservations#confirm-reservation) and [Cancel reservation](https://docs.mews.com/connector-api/operations/reservations#cancel-reservation) by allowing an array of reservations to be specified in each request.
* Extended [Get all tax environments](https://docs.mews.com/connector-api/operations/taxenvironments#get-all-tax-environments) with new `Discriminator` to allow both `Flat` and `Relative` [Tax rate strategy](https://docs.mews.com/connector-api/operations/taxations#tax-rate-strategy).
* Extents changed from optional to required for [Space extent](https://docs.mews.com/connector-api/operations/resources#space-extent), [Accounting item extent](https://docs.mews.com/connector-api/operations/accountingitems#accounting-item-extent), [Bill extent](https://docs.mews.com/connector-api/operations/bills#bill-extent), [Rate extent](https://docs.mews.com/connector-api/operations/rates#rate-extent) and [Companionship extent](https://docs.mews.com/connector-api/operations/companionships#companionship-extent).

## 17th March 2020

* Added [Webhooks](https://docs.mews.com/connector-api/events).

## 16th March 2020

* Extended [Add company](https://docs.mews.com/connector-api/operations/companies#add-company) parameters with `InvoiceDueInterval`, `Telephone`, `ContactPerson`, `Contact`, `Notes` and `Iata`.
* Extended [Update company](https://docs.mews.com/connector-api/operations/companies#update-company) parameters with `InvoiceDueInterval`, `Telephone`, `ContactPerson`, `Contact`, `Notes` and `Iata`.
* Extended [Get all cashier transactions](https://docs.mews.com/connector-api/operations/cashiertransactions#get-all-cashier-transactions) parameters with `CreatedUtc`.
* Extended [Get all outlet items](https://docs.mews.com/connector-api/operations/outletitems#get-all-outlet-items) parameters with `ClosedUtc` and `ConsumedUtc`.
* Extended [Get all restrictions](https://docs.mews.com/connector-api/operations/restrictions#get-all-restrictions) parameters with `CollidingUtc`, `CreatedUtc` and `UpdatedUtc`.
* Extended [Get all space blocks](https://docs.mews.com/connector-api/operations/resources#get-all-space-blocks) parameters with `CollidingUtc`, `CreatedUtc` and `UpdatedUtc`.
* Added [Get all tasks](https://docs.mews.com/connector-api/operations/tasks#get-all-tasks).
* Extended [Get all customers](https://docs.mews.com/connector-api/operations/customers#get-all-customers) with `CustomerIds`, `Emails`, `FirstNames`, `LastNames`, `CreatedUtc`, `UpdatedUtc`, `Extent`.

## 13th March 2020

* Updated [Update rate price](https://docs.mews.com/connector-api/operations/rates#update-rate-price) operation to accept only updates for the future for up to 5 years.
* Extended [Get all bills](https://docs.mews.com/connector-api/operations/bills#get-all-bills) parameters with `ClosedUtc`, `CreatedUtc`, `DueDateUtc` and `PaidUtc`.
* Updated [Add reservations](https://docs.mews.com/connector-api/operations/reservations#add-reservations) parameters with `Enquired` state.
* Added [Address parameters](https://docs.mews.com/connector-api/operations/customers#address-parameters).
* Extended [Address](https://docs.mews.com/connector-api/operations/configuration#address) with `Latitude` and `Longitude`.

## 13th March 2020

* Extended [Get all reservation items](https://docs.mews.com/connector-api/operations/reservations#get-all-reservation-items) with `AccountingStates`.

## 13th February 2020

* Extended [Get all products](https://docs.mews.com/connector-api/operations/products#get-all-products) result with `Classifications`.

## 15th January 2020

* Extended [Add task](https://docs.mews.com/connector-api/operations/tasks#add-task) parameters with `ServiceOrderId`.

## 9th January 2020

* Extended [Get all companies](https://docs.mews.com/connector-api/operations/companies#get-all-companies) parameters with `Ids`, `Names`, `CreatedUtc` and `UpdatedUtc`.
