# Changelog 2020

## 16th December 2020

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

## 27th November 2020

* Added operation [Get all vouchers](../../operations/vouchers#get-all-vouchers) and extended [Reservation](../../operations/reservations#reservation) with property `VoucherId`.

## 3rd November 2020

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

## 29th September 2020

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

## 24th September 2020

* Extended operations [Add reservations](../../operations/reservations#add-reservations), [Add reservation product](../../operations/reservations#add-reservation-product) and [Add order](../../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](../../events/websockets#resource-event)
* WebSockets event [Reservation](../../events/websockets#reservation-event) extended with `AssignedResourceId`
* WebSockets event [PriceUpdate](../../events/websockets#price-update-event) extended with `ResourceCategoryId`

## 1st September 2020

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

## 19th August 2020

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

## 5th August 2020

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

## 23rd July 2020

* Extended [Product order parameters](../../operations/orders#product-order-parameters) with consumption dates.

## 21st July 2020

* Added new operations [Update accounting items](../../operations/accountingitems#update-accounting-items), [Add bill](../../operations/bills#add-bill) and [Delete bill](../../operations/bills#delete-bill).
* Added new operations [Get all counters](../../operations/counters#get-all-counters), [Close bill](../../operations/bills#close-bill), [Get bill PDF](../../operations/bills#get-bill-pdf)
* Extended operations [Get all products](../../operations/products#get-all-products) with property `ExternalName`.
* Extended operations [Add customer](../../operations/customers#add-customer) and [Update customer](../../operations/customers#update-customer) with optional parameters `ItalianFiscalCode` and `ItalianDestinationCode`.
* Removed value of [Tax rate](../../operations/taxations#tax-rate).
* Fixed filtering by `ReservationIds` in [Get all reservations](../../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](../../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](../../operations/resources#resource-category) that is replacing the Space category.
* Added [Resource category image assignment](../../operations/resourcecategories#resource-category-image-assignment) that links an image to a category.
* Added [Resource category assignment](../../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](../../operations/resourcefeatures#resource-feature) that is replacing the Space feature and now is within the service context.
* Added [Resource feature assignment](../../operations/resourcefeatures#resource-feature-assignment) that is replacing the Space feature assignment.
* Added [Resource block](../../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](../../operations/resources#get-all-resources) that is replacing Get all spaces.
* Added [Update resources](../../operations/resources#update-resources).
* Added [Get all resource blocks](../../operations/resourceblocks#get-all-resource-blocks) that is replacing Get all space blocks.
* Added [Add resource blocks](../../operations/resourceblocks#add-resource-block) that is replacing Add space block.
* Added [Delete resource blocks](../../operations/resourceblocks#delete-resource-blocks) that is replacing Delete space blocks.
* Extended [Get all reservations](../../operations/reservations#get-all-reservations-ver-2017-04-12) parameters with required `ServiceIds` and `AssignedResourceIds` that is replacing `SpaceIds`.
* Extended [Get all reservations](../../operations/reservations#get-all-reservations-ver-2017-04-12) response with `Resources`, `ResourceCategories` that is replacing `Spaces`, `SpaceCategories` and `ResourceCategoryAssignments`.
* Extended [Reservation extent](../../operations/reservations#reservation-extent) with `ResourceCategories`, `ResourceCategoryAssignments` and `Resources` that is replacing the `Spaces`.
* Extended [Reservation](../../operations/reservations#reservation) with `AssignedResourceId` and `AssignedResourceLocked` that is replacing `AssignedSpaceId` and `AssignedSpaceLocked`.
* Extended [Update reservation](../../operations/reservations#update-reservation) parameters with `AssignedResourceId` that is replacing Update reservation space.
* Extended [Search customers](../../operations/customers#search-customers) parameters with `ResourceId` that is replacing `SpaceId`.
* Extended [Get all business segments](../../operations/businesssegments#get-all-business-segments) parameters with required `ServiceIds`.
* Extended [Get all rates](../../operations/rates#get-all-rates) parameters with required `ServiceIds`.
* Extended [Get all restrictions](../../operations/restrictions#get-all-restrictions) parameters with required `ServiceIds` and `ResourceCategoryIds` that is replacing `SpaceCategoryIds`.
* Extended [Add restrictions](../../operations/rates#get-all-rates) parameters with required `ServiceId`.
* Extended [Restriction](../../operations/restrictions#restriction) with `ServiceId` and `ResourceCategoryId`, `ResourceCategoryType` that is replacing `SpaceCategoryId`, `SpaceType`.
* Extended [Restriction conditions](../../operations/restrictions#restriction-conditions) with `ResourceCategoryId`, `ResourceCategoryType` that is replacing `SpaceCategoryId`, `SpaceType`,
* Extended [Business segment](../../operations/businesssegments#business-segment) with `ServiceId`.
* Extended [Rate](../../operations/rates#rate) with `ServiceId`.
* Extended [Rate group](../../operations/rates#rate-group) with `ServiceId`.
* Renamed `Space category availability` to [Resource category availability](../../operations/resources#resource-category-availability).
* Renamed `Space category pricing` to [Resource category pricing](../../operations/resources#resource-category-pricing).
* Renamed `Space category adjustment` to [Resource category adjustment](../../operations/resources#resource-category-adjustment).
* Removed `Update space state` which is replaced by general Update resources.
* Removed `Update reservation requested category`. [Update reservation](../../operations/reservations#update-reservation) should be used instead.

## 6th June 2020

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

## 17th March 2020

* Added [Webhooks](../events).

## 16th March 2020

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

## 13th March 2020

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

## 13th March 2020

* Extended [Get all reservation items](../../operations/reservations#get-all-reservation-items) with `AccountingStates`.

## 13th February 2020

* Extended [Get all products](../../operations/products#get-all-products) result with `Classifications`.

## 15th January 2020

* Extended [Add task](../../operations/tasks#add-task) parameters with `ServiceOrderId`.

## 9th January 2020

* Extended [Get all companies](../../operations/companies#get-all-companies) parameters with `Ids`, `Names`, `CreatedUtc` and `UpdatedUtc`.

| Next                            |
| ------------------------------- |
| [Changelog 2019](changelog2019) |
