<a id="changelog-archive-2023"></a>

# Release notes 2023

<a id="changelog-r119"></a>

## Release November 27th 2023

This release is a bit light on the feature side, however lots of stuff is going on behind the scenes to improve stability, resilience, security and performance.

However a few existing features are now exposed in the Merchant UI.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

#### Added

* Automatic cancellation/deactivation of Vipps Payment Agreements when a cancelled subscription has ended.
* Introduced support for semi-atomic transferring of billing account transactions between billing accounts, and between subscribers. This includes a transfer log for reporting and analytics.

#### Changed

* Recurring/Agreement payments on Swedbank Pay now supplies the final VAT Amount of the transaction. This is only a reporting value, and only sparingly available in the Swedbank Merchant Portal.

#### Fixed

* An error where credited and re-issued Payment Demands would not be exported for AutoGiro (Bankgirot Sweden).
* An error which made it impossible to cancel/remote AutoGiro mandates

#### Deprecated

We call out the following deprecations, the endpoints/field will be removed in a future version, the exact timing depending on existing use and adoption of replacements.

* We are deprecating the endpoints `/paymentdemand/{id}/credit/completely` and `/paymentdemand/{id}/credit/partially` in favor of `/paymentdemand/{id}/credit` endpoint.
* We are deprecating the field `TaxPercentage` on the endpoint for creating Account Payment Demand transaction `POST /paymentdemand/`, in favour of specifying a list of Tax Details.

### Merchant Client

The following new features and improvements are now available in the merchant client.

#### Added

* Option to toggle whether to reduce reminder amounts with surplus accounted payments (allowances).
* It is now possible to cancel Vipps Payment Agreements.
* When ordering from merchant it is possible to choose payment types besides Invoice.
* Adding an Organization Number validation for tenants with Norwegian organizations when attempting to switch/use an EHF Payment Agreement.
* Introduced option for quick navigation to Enterprise Plan owners from the Enterprise Plan configuration.

#### Changed

* Exposed existing Payment Provider Types for EHF and Email in various workflows.
* All credit operations now go through the new endpoint and credit flows will transfer back account transactions as mentioned in the previous release.
* Removed/Sanitized the Invoices and Payments grid in the subscriber overview.
* Refunds are now highlighted with a separate colour.

#### Fixed

* Removed possibility to delete Enterprise Plan owners with active enterprise plans.
* An issue where Cancellation Cause would disappear when changing a previously registered cancellation.
* An issue where Invoice/CreditNote copy on Enterprise Plan would not redirect back to the details.

<a id="changelog-r118"></a>

## Release October 31st 2023

Only a 3 week release cycle this time around, mostly because the previous release was a bit delayed.
Just a few items in this release, mainly regular maintenance and small improvements, but a few quality of life improvements for Merchant and Billing has been included as well.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

#### Added

* OpenAPI/Swagger specification now include security information on all endpoints requiring it. Previously only a global declaration and a few exemptions were present.
* OpenAPI/Swagger specification now includes default responses for most endpoints. This to ensure better compatibility with code generation tools.
* A new external event type SubscriptionDeactivated is now available, it triggers when the subscription actually expires. Refer to the event documentation for more details.
* Support for manually deactivating a [Vipps](https://www.vipps.no/) recurring agreement. Specifically removes the subscription in the Vipps app.
* Automatic de-activation of [Vipps](https://www.vipps.no/) recurring payment agreements when the abstract Payment Agreement is deactivated or deleted. See previous item.
* Billing Account Transactions now contains a property IncludedInLedger defining if it already mirrored in the Subscriber Ledger or not. This property is also present when creating/generating account transactions.

#### Changed

* EHF serialization process re-implemented. Will be rolled out on tenants progressively.
* Invoice Documents now group tax totals. Simplifies generation of third party invoices such as PDFs, Emails, [eFaktura](https://www.efaktura.no/) and EHF.
* Manually crediting Payment Demands will now revert account transactions to the billing account where they originated. Mainly to ensure allowances/additional payments are not written off, without explicit declaration.
* Generation of reminders will now only consume allowances generated by payments and not arbitrary allowances.

#### Deprecated

We call out the following deprecations, the endpoints/field will be removed in a future version, the exact timing depending on existing use and adoption of replacements.

* We are deprecating the endpoints `/paymentdemand/{id}/credit/completely` and `/paymentdemand/{id}/credit/partially` in favor of `/paymentdemand/{id}/credit` endpoint.
* We are deprecating the field `TaxPercentage` on the endpoint for creating Account Payment Demand transaction `POST /paymentdemand/`, in favour of specifying a list of Tax Details.

### Merchant Client

The following new features and improvements are now available in the merchant client.

#### Added

* New view for bulk registration of Subscribers and Subscriptions for Enterprise Plans.

#### Fixed

* Registration of subscriptions on Enterprise Plans, now only show subscription plans that matches the billing alignment of the selected Enterprise Plan.
* Translations on Payment Agreement details in Norwegian.
* An issue where it was possible to add prices with an invalid start time.

#### Changed

* Removed option for adding an Invoice Contact when registering subscriptions on an Enterprise Plan.
* Reworked the Enterprise Plan details view with new grid components, and adjusted filtering options and placement order.

### Self-Service and Sales Poster

The following new features and improvements are now available in the self-service client

#### Fixed

* An issue where it was impossible to remove Organization Number and Invoice Reference on a subscriber contact.

<a id="changelog-r117"></a>

## Release October 10th 2023

This time around we have been hard at work to iron out issues with deliveries, as well as some other features and bugs here and there.
Due to autumn vacations the release has been a bit delayed.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

#### Added

* New SwedbankPay API endpoint. This is just a re-branding of the old PayEx and PayEx eCommerce endpoints.
* Added option for deleting Organizations from the API.
* An optional failure state and reason on processed payment requests handled by the Swedbank Pay integration (Card payments).
* Added an option to update a few details on a SwedbankPay Account configuration, such as the encryption key.

#### Fixed

* An issue where an unknown organization id would cause an internal server error, it now correctly produces a client error (400 Bad Request).
* An issue where Enterprise Plans with many subscriptions (150+) would end up not being settled properly when processing payments.
* An issue where future orders on [eFaktura](https://www.efaktura.no/) and [AvtaleGiro](https://www.avtalegiro.no/), would have a missing date part in the statement text for the period.
* An issue where an unknown organization id would cause an order processing failure instead of a client error.
* An issue where product authorization would not be properly deleted on deleted users. No authorization was granted, but the record of previous authorization was kept indefinitely.
* Multiple issues related to Deliveries and the associated Distribution Innovation integration, including:
  > * Mixing delivery stop and temporary address changes would lead to invalid or missing restarts.
  > * Manual use of the “Source” field would cause processing failures if no DI integration was configured.
  > * Delivery stops with a delivery restarts overlapping a cancelled subscription could lead to deliveries being started on cancelled subscriptions.
  > * Updating an address on subscription end would register an invalid delivery split.

#### Changed

* Payment Demand Charges and Payment Demand Allowances now include the original transaction type as it was on the account.
* Empty address lines on Subscriber Contacts are now stripped away during updates and creation.
* Payments that are processed on a subscriber with only one Subscriber Account will now be automatically associated with that account.
* Improved the mapping of [Vipps](https://www.vipps.no/) recurring agreements when querying for the remote status of a charge.

#### Deprecated

We call out the following deprecations, the endpoints/field will be removed in a future version, the exact timing depending on existing use and adoption of replacements.

* We are deprecating the endpoints `/paymentdemand/{id}/credit/completely` and `/paymentdemand/{id}/credit/partially` in favor of `/paymentdemand/{id}/credit` endpoint.
* We are deprecating the field `TaxPercentage` on the endpoint for creating Account Payment Demand transaction `POST /paymentdemand/`, in favour of specifying a list of Tax Details.

### Merchant Client

The following new features and improvements are now available in the merchant client.

#### Added

* Support for adding scheduled contact changes, such as a future address change.
* Adding an Subscriber Organization Number will now verify it against the PEPPOL database for validity in terms of receiving EHF invoices. A visual clue will be displayed if it does not exist.
* Added validation for delivery changes to allow processing on the next day at the earliest. Changes further into the future are still accepted.

#### Fixed

* The Distribution Innovation overview now allows omitting integration values that are not available.
* Delivery changes are now stored with midnight as the time of change instead of the current time part.
* An issue where an invalid amount was shown for reminders.
* An issue where the payment registration view would not always reset the input fields as required.
* An issue where reminder settings order would not be persisted.

#### Changed

* Replaced the grids for Invoices, Payments and the combined view so it now supports paging the results. Reducing the consumption of screen real estate.
* Multiple text adjustments and additions for Payment Agreements.

### Self-Service and Sales Poster

The following new features and improvements are now available in the self-service client

#### Added

* Added validation for delivery changes to only allow processing on the next day.

#### Fixed

* Support for adding scheduled contact changes, such as a future address change.
* Delivery changes are now stored with midnight as the time of change instead of the current time part.

<a id="changelog-r116"></a>

## Release September 5th 2023

A short sprint this time around, and thus also a minor release. Mostly this release contains bug fixes, but a few new features have been shoehorned in!

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

#### Added

* **[Preview]** Added support for automatically settling payment demands and crediting reminder fees when receiving payments on the original demand amount.
* Added new endpoint to calculate the next subscription period for any given subscription, based on the current registered information.
* The [eFaktura](https://www.efaktura.no/) integration now supplies the issuing organization number during agreement scanning, effectively ensuring that subscribers who opt-out of [eFaktura](https://www.efaktura.no/) for a given issuer will not be automatically added.

#### Fixed

* A validation issue where changing the plan of an existing subscription required more options to be set than specified by the documentation and internal requirements.
* The API reference documentation with the correct status code, `HTTP 202`, for a successful change of payment agreement.
* An issue where it was possible to provide an empty/default `UUID` for Invoice Identifier generation configuration.
* An issue where the recently introduced event types for domain authorization would not be published correctly.
* An issue where tenants with a special character in the name could not enable the event notification infrastructure.
* An issue with billing where the payment demand schedule for an order would be deleted in case the order was in the future, and the subscription was configured with automatic cancellation at the end of the first period.

#### Changed

* [Vipps](https://www.vipps.no/) based orders should now trim away white spaces in the phone number, reducing the number of invalid requests sent to [Vipps](https://www.vipps.no/). [Vipps](https://www.vipps.no/) have also deployed a change in their validation routine to allow different formatted phone numbers.
* Details on Enterprise Plan payment demands would not be generated with a new Id after partial credits. This has now been changed so that the details are regenerated with a new Id.

#### Deprecated

We call out the following deprecations, the endpoints/field will be removed in a future version, the exact timing depending on existing use and adoption of replacements.

* We are deprecating the endpoints `/paymentdemand/{id}/credit/completely` and `/paymentdemand/{id}/credit/partially` in favor of `/paymentdemand/{id}/credit` endpoint.
* We are deprecating the field `TaxPercentage` on the endpoint for creating Account Payment Demand transaction `POST /paymentdemand/`, in favour of specifying a list of Tax Details.

### Merchant Client

The following new features and improvements are now available in the merchant client.

#### Added

* Support for restarting a cancelled subscription with the exact same plan as it was on previously. Useful for handling cases with late payments and similar.
* Support for removing invoice contacts as a scheduled change.
* **[Preview]** Connected domain users are now listed on the users list.

#### Fixed

* An issue where temporary delivery changes would cause a validation error, but the changes would still be partially applied.
* An issue where setting/changing the Kilkaya installation URL would not have any effect.
* Visuals for frequency during order creation in chrome.
* **[Preview]** A validation issue that prevented registration of domain names with a dash (-) in the domain authorization.

#### Changed

* Replaced the subscriptions grid view on the overview and on the subscriptions tab.
* Multiple text adjustments and additions for Payment Agreements.

### Self-Service and Sales Poster

The following new features and improvements are now available in the self-service client

#### Fixed

* An issue where temporary delivery changes would cause a validation error, but the changes would still be partially applied.
* **[Preview]** An issue where connecting a new user with a domain authorization would occasionally fail to register.

<a id="changelog-r115"></a>

## Release August 10th 2023

Summer vacations are almost over for everyone in the dev team, and a new release is ready, roughly 2 months since the previous release.
This release is a mixed bag of fixes, small incremental improvements and a single new feature in preview.

We are still trying out the new format for the changelog, following a type of change convention outlined on [https://keepachangelog.com/](https://keepachangelog.com/)

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

#### Added

* Added new public event types for `UserAuthorizationGranted`, `UserAuthorizationRevoked`, `EmailDomainAuthorizationGranted` and `EmailDomainAuthorizationRevoked`. Enables additional external reactions based on user authorization changes.
* Added support for Tax Details on Charges and Allowances. This means that Charges on Payment Demands will now include a Tax Detail breakdown instead of a single Tax Percent. The net effect being that multiple charges will be merged into a single Charge with multiple taxes in several scenarios.
* Support for removing InvoiceContact via a scheduled subscription plan change.
* Added support for switching Payment Agreement during Subscription restarts.
* **[Preview]** Support for User Email Domain and Authorization mapping.
* **[Preview]** [eFaktura](https://www.efaktura.no/) Mandate/Agreement Scanning will now be executed on a recurring schedule, with partial scans every day and full scans every week.

#### Fixed

* Updating an existing BillingPlan without specifying a frequency will now produce a validation error.
* Fixed an issue where Account Payment Demands would issue a reminder with a Payable Amount of 0.00 in cases where an outstanding Allowance should have settled the demand.
* [Vipps](https://www.vipps.no/) charges now have a due date the day after the Payment Demand to avoid issues with early cancellations of time based subscriptions.
* Added missing validation for creating multiple [AvtaleGiro](https://www.avtalegiro.no/) account setups with the same Bank Account Number.
* Fixed an issue where an additional empty Payment Demand would be generated for Enterprise Plans upon a partial credit.
* **[Preview]** [eFaktura](https://www.efaktura.no/) transactions with multiple identical Tax Groups will now be bundled together to produce a better visual experience.
* **[Preview]** Fixed an issue where [eFaktura](https://www.efaktura.no/) transactions would not be generated in case the issuing Organization was missing phone number or contact email.

#### Changed

* Payment Import API has been slightly modified in terms of the output. The input is unchanged.
* Simplified account configuration for [AvtaleGiro](https://www.avtalegiro.no/) and [eFaktura](https://www.efaktura.no/). Multiple input fields has been removed (defining them will not break things, they will just be ignored).
* Subscription Restarts will now be routed through the Order processing to facilitate handling of multiple Payment Agreement scenarios.
* Multiple adjustments to the underlying Payment Import file processing, in order to improve feedback and resilience.
* Scheduled Subscription Plan changes will no longer split the existing Subscription in cases where there is no need. For instance when changes are set to affect a future Subscription period.

#### Deprecated

We call out the following deprecations, the endpoints/field will be removed in a future version, the exact timing depending on existing use and adoption of replacements.

* We are deprecating the endpoints `/paymentdemand/{id}/credit/completely` and `/paymentdemand/{id}/credit/partially` in favor of the afore mentioned `/paymentdemand/{id}/credit` endpoint.
* We are deprecating the field `TaxPercentage` on the endpoint for creating Account Payment Demand transaction `POST /paymentdemand/`, in favour of specifying a list of Tax Details.

#### [Preview] New Feature : Email Domain based User Authorization

This release introduces building blocks for automating User Authorization based on the domain name of their email address.
It is an alternative to [Site Access](../managed-experience/authentication-authorization/user-management-authentication.html.md#auth-site-access) where all users created with a specific domain name, will be authorized to a given domain.

It will work side-by-side with other user Authorization mapping concepts, so you can mix and match as you see fit.

This is still in preview, and some of the UI elements are not yet in place.
Additionally some external modifications are needed in the IdP and a custom sign-up experience responsible for mapping the user to the domain authorization.

Interested in participating in the preview? Contact support, find the details on {SUPPORTPAGE}.

### Merchant Client

The following new features and improvements are now available in the merchant client.

#### Added

* Merchants can now configure Self-Service behaviour for Subscription Cancellations.
* Added an indicator showing if there are existing notes on a given subscriber.
* **[Preview]** Support for listing the sum of not-invoice Billing Account transactions on the ledger summary.
* **[Preview]** Support for configuring Domain Authorization on Subscriptions.

#### Fixed

* An issue with the wrong Tax Amount being shown for Reminder and Invoice Fees.
* An issue where product with an adjusted price would be displayed as expired.
* Tenant selection should again be persisted between session on the same browser.
* An invalid Subscription Plan would sometimes be displayed when doing refunds.
* An issue where it was not possible to remove a planned cancellation of an already renewed Subscription.
* Removed an invalid button from [eFaktura](https://www.efaktura.no/) payment agreement view.
* An issue with custom grid sorting for [eFaktura](https://www.efaktura.no/) and [AvtaleGiro](https://www.avtalegiro.no/) transactions being ignored.
* An issue where the wrong API endpoint was used for Enterprise Plan Payment Demand crediting.

#### Changed

* Minor Visual adjustments to the following views:
  > * Enterprise Plan Details
  > * Invoices
  > * Logout confirmation
  > * [AvtaleGiro](https://www.avtalegiro.no/) and [eFaktura](https://www.efaktura.no/) account setup
* Payment Import has been adjusted to reflect the API changes, and provide better user feedback.
* Adjusted translations for [eFaktura](https://www.efaktura.no/) and [AvtaleGiro](https://www.avtalegiro.no/) agreements
* Exporting Refunds now include the underlying External Reference field.

### Self-Service and Sales Poster

The following new features and improvements are now available in the self-service client

#### Changed

* Translations in relation to Subscription Cancellations.

#### Fixed

* An issue where temporary delivery changes would not include the existing Subscriber Contact Name in the change.
* An issue where the Product id would be shown instead of the product name on cancelled subscriptions.
* Default Country would not be set when doing temporary delivery changes.

<a id="changelog-r114"></a>

## Release June 13th 2023

Time flies when you are having fun developing subscription software.
It’s time for another release, the last one before the summer holidays kicks in.
That means the next release will not follow our regular monthly cadence - we will be back with another release some time in August most likely.

We will try with a new format for the changelog, it will still be divided into three main parts, but we will also attempt to follow a type of change convention outlined on [https://keepachangelog.com/](https://keepachangelog.com/)

This release is a mix of bug fixes and some minor new features, the most interesting being a new behaviour for cancelling subscription based on their lack of payments.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

#### Added

* Subscription Payment Demands and Order Payment Demands can now be credited via the POST `/paymentdemand/{id}/credit` endpoint.
* Support for bulk replacing all Reminder Settings on a Dunning Process via the Dunning Process update endpoint.
* Support for adding/replacing Payment Request Settings on a Dunning Process via the Dunning Process update endpoint.
* **[Preview]** New logic for evaluating automatic cancellation due to missing payments (Payment Stop).

#### Fixed

* Billing Account transactions would not always apply currency to the data model, causing it to be unavailable in the API and reporting/analytics solution.
* Fixed an issue where removing a future cancellation would lead to invalid accounting and ledger information because any prorated charges would be invoiced again and any allowances would be written off/credited.
* Fixed an issue where it was impossible to credit an Order Payment Demand for a future subscription that had been deleted.
* If a billing account had an outstanding Payment Demand with an allowance in excess of the total payment demand amount, and a new payment was registered, the excess allowance would disappear from the account. This issue has now been fixed.
* All Payment Demands are now correctly assigned a time component of the payment due, this fixes an issue where Payment Requests would be captured slightly before the actual due time (Mostly relevant for [Swedbank Pay](https://www.swedbankpay.com/)).
* [Swedbank Pay](https://www.swedbankpay.com/) agreements are now stored without time component for the expiration to prevent undefined adjustments of the timezone (the timezone is unknown and depends on the card issuer).

#### Changed

* Payment Requests for [Vipps Recurring](https://www.vipps.no/) are now offset by 1 entire day, to alleviate a problem where Vipps captures money earlier than the actual due time (Vipps operates in entire days, while INFO-Subscription operates with a time component).
* Adjusted/Improved the Billing Account selection process When generating new orders, specifically start of a new subscription after a cancellation time has been surpassed but before the original period expired will now reuse the account in case its the only one available. Previously a new one would be generated.
* **[Preview]** eFaktura agreements will no longer be automatically applied to subscriptions with a length of less than 5 days. To avoid them always being paid late.

#### Deprecated

We call out the following deprecations, the endpoints will be removed in a future version, the exact timing depending on existing use and adoption of replacements.

* We are deprecating the endpoints `/paymentdemand/{id}/credit/completely` and `/paymentdemand/{id}/credit/partially` in favor of the afore mentioned `/paymentdemand/{id}/credit` endpoint.

#### Security

* Fixed an issue where a compromised upstream service for EHF receiver validation or Azure Event Grid could lead to our services being used for a DoS attack.

#### [Preview] New behaviour: Automatic cancellation for missing payments (Payment Stop)

We have introduced an alternative behaviour to automatically cancel subscription with a lack of payments.
With the modified behaviour all payment demands that are due before the threshold will be evaluated and the amount evaluated is the sum of these demands.
In addition any outstanding billing account Allowances will be subtracted from the amount.

Only if the final amount is above the balance threshold will the subscription be cancelled.

Interested in participating in the preview? Contact support, find the details on {SUPPORTPAGE}.

### Merchant Client

The following new features and improvements are now available in the merchant client.

#### Added

* **[Preview]** Support for Interactive Distribution Innovation Address Lookup (Address Helper) during address registration.
* Aggregated total of outstanding account transactions from the billing account are now shown in the Subscriber Ledger.

#### Fixed

* An issue with the total amount on Subscriber Ledger for Enterprise Plans.
* An issue where adding a Vipps configuration would present an error message even though the configuration was created.
* Updating an Organizations main identifier (Organization Number) would reset other identifications configured, this has now been corrected.
* An issue where crediting an Invoice for an Enterprise Plan, with a replacement, would lead to an error when generating the replacement Invoice.
* Contract time was shown incorrectly when changing Subscription Plan.
* An issue where it was not possible to remove a future cancellation.

#### Changed

* Minor visual improvements to outstanding billing account transactions.
* Multiple improvements and adjustments to the deliveries view.

### Self-Service and Sales Poster

The following new features and improvements are now available in the self-service client

#### Added

* **[Preview]** Support for Interactive Distribution Innovation Address Lookup (Address Helper) during address registration.

#### Fixed

* When no sales terms are configured, an error message will be displayed instead of causing an internal server error.
* An issue with Orders using Vipps would keep on displaying the message to not close the window after completing the Vipps interaction.

#### [Preview] Interactive Distribution Innovation Address Lookup (Address Helper)

With the Interactive DI Address Lookup Merchants and Subscribers will be presented with address suggestions based on information from the DI Address Helper API.
As the user enters street information, and selects a street additional suggestions will be provided for house, apartments etc.

The end result is a high quality address that is directly transferred to DI when generating Distribution and Delivery information.

Interested in participating in the preview? Contact support, find the details on {SUPPORTPAGE}.

<a id="changelog-r113"></a>

## Release May 15th 2023

Another month has gone by and it is time for a new release.
This release mostly contains under the cover improvements and upgrade of various components, with a few visual improvements and of course some bug fixes.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

* Added an option to write-off billing account transactions.
  * Depending on the state of the transactions, they will either generate a balancing transaction to the subscriber ledger, or just be removed from the subscriber account so it is not included on the next invoice.
  * The transactions that are posted on the subscriber ledger are also available in a new table in the reporting sub-system.
* Included Currency on billing account transactions. This is solely a query/response simplification since the Currency is already accesible multiple other places in the hierarchy of the transaction.
* Fixed an issue where consuming allowances during reminder generation would not consume the allowance at all, effectively settling the demand and reminder without payments.
* Adjusted payment demand generation so that due now includes time, and not always defaults to midnight. This alleviates an issue where payment provider integrations such as Swedbank Pay, could end up charging for the next subscription several hours before it was actually due.

### Merchant Client

The following new features and improvements are now available in the merchant client.

* Added support for writing off account transactions.
* Added Payment Amount for demands settle by an excessive payment. Now the behaviour is similar to inadequate payments.
* The behaviour for showing reports have changed so that reports are now refreshed on demand if expired. Previously they would just be dormant, now a waiting message is shown so the merchant can come back after a few minutes.
* Fixed an issue where it was possible to cancel an enterprise plan related subscription outside its current period.

### Self-Service and Salesposter

The following new features and improvements are now available in the self-service client

* Fixed an issue where the Distribution Innovation Address helper would choose the wrong Delivery Point Id in case where apartments had its own Id.

<a id="changelog-r112"></a>

## Release April 18th 2023

Happy easter everyone! We are back with another release, following the easter holidays it is a bit delayed but not by much.
This release contains a slew of bug fixes and some new features of varying importance.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

* Preliminary Payment Demands and Payment Demands now include an InvoiceContactId that was inferred from the Subscription or Order generating the Payment Demand.
* The OAS Spec now includes Transactions for Account Payment Demands.
* Transactions are included when querying/retrieving Account Payment Demands.
* Added E-mail as a separate Payment Provider type to allow separate billing fees to be configured.
* Removed deprecated PayEx POPS API Endpoints. The POPS platform has been shutdown for some time.
* Added support for bulk deletion of future subscriptions related to Enterprise Plans and prevented individual cancellations for the same subscription types.
* Added support for consuming Account Transactions for Subscription Plan changes (automatic proration on changes).
* Extra ordinary payments now has the option of settling old outstanding payment demands.
* ReminderId is registered for Subscriber Ledger Charges generated for reminders.
* The reporting sub-system now updates materialized subscriber contact information on current/active subscriptions when subscriber contact information is changed.
* When generating account charges for partially settled payment demands, the charges are now split by Product and Tax causing multiple charges to be generated and tracked separately.
* Fixed an issue where an invalid credit ledger transaction was created when amending/removing a future cancellation.
* Fixed an issue where Invoice Fees on Enterprise Plans did not include VAT.
* Fixed an issue where an Invoice Line would be generated with Start and End on the same time for Account Demands without a period. It now only generates a Start and leaves the End empty.
* Fixed an issue where updating Reminder Policy on a dunning process would not actually update the policy.
* Fixed an issue where subscriber name and number would be stripped after crediting and re-issuing an Enterprise Plan Payment Demand.
* Credit Time on subscriber Ledger transactions now use the time of registration instead of the cancellation time when a subscription cancellation leads to an automatic crediting.
* Fixed an issue with recurring deliveries related to deleting future subscriptions.
* Fixed an issue where EHF would be generated in a way that was invalid when receiving subscriber contact did not have an email address.
* Fixed an issue where subscription with an Initial Term for the current month would generate an invalid timestamp when observing DST.

### Merchant Client

The following new features and improvements are now available in the merchant client.

* For users with multiple available tenants, the last used tenant is now persisted across sessions.
* Added support for exporting subscriber ledger entries.
* Added configuration that will allow tenants to hide irrelevant Payment Import formats based on country.
* Added/Moved settings for final/balance invoice that supports the changed backend processing.
* New subscriber contact identification HPR (Norwegian Health Personell Registration Number).
* Multiple adjustments for Billing Plan and Dunning Process setup.
* Zip and City/Area has switched placed in contact overview.
* When creating new subscription orders, a small polling delay has been introduced, in order to display the newly generated invoice and payment demand in most cases without requiring a manual refresh.
* Chain Steps are now sorted by the step order when editing existing chains.

### Self-Service and Salesposter

The following new features and improvements are now available in the self-service client

* New subscriber contact identification HPR (Norwegian Health Personell Registration Number) can now be toggled in the Salesposter.

<a id="changelog-r111"></a>

## Release March 14th 2023

This is a smaller release with primarily bug fixes and minor adjustments.
The client has been rolled out, as well as the first batch of self-service instances. The next batch will follow during the next couple of days.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

* Added additional source/related properties to ledger transactions enabling easier source correlation (Invoices, Reminders, CreditNotes etc).
* Cached the OAS3.0/Swagger JSON generation for the API significantly improving load times.
* Fixed an issue with eFaktura where Susbcribers would be assigned an eFaktura agreement even when the issuer was blocked by the consignment.
* Fixed an issue where allowance consumption of reminders would not settle the underlying demand if consuming all allowances would bring the payable amount down to 0.
* Preliminary Demands are now automatically removed when future subscriptions are deleted.
* Fixed an issue where Fees would not be reflected on the Invoice for new orders on existing SwedbankPay Card agreements.
* Adjusted Due Date handling for eFaktura during credit and re-issuing.
* Deliveries now handles subscription with an automatic cancellation, such that the delivery is marked as ended on the subscription end time immediately.
* Fixed an issue that would prevent new Subscription Orders with a start time exactly at the same time as a new price should take effect.
* Fixed an issue where it was not possible to upload Power Bi reports.
* Refunds based on Payments now sets the OrganizationId automatically based on the input payment.

### Merchant Client

The following new features and improvements are now available in the merchant client.

* Support for handling refunds. **Preview**
  > * A view for listing and registering new refunds.
  > * A search/grid view of all registered refunds including an export to CSV.
* Some improvements for searching by Invoice Number.
* Registering a new subscription will now automatically refresh the overview to provide up to date information.
* Fixed an issue where Vipps Recurring fees would be added using the wrong underlying type, essentially having no effect on the billing.
* Fixed an issue where adjusting any Organization parameters would essentially reset the configured time zone.

### Self-Service and Salesposter

The following new features and improvements are now available in the self-service client

* Translations and text improvements for Norwegian, Swedish and Northern Sami.
* Sales/Subscription terms can now be reference by a link instead of being embedded within INFO-Subscription, allowing out-of-band updates.
* Country for Invoice Contacts are now created in the same manner as the Subscribers country information.

<a id="changelog-r110"></a>

## Release Feburary 16th 2023

In this release we are consolidating some of the internal services and resources.
Primarily the consolidation is an internal resource and cost optimization, but it also provides lower latency and improved performance for a series of operations related to Products, Prices, Template Plans, Organizations and Taxes.
There are no changes to the API or the functionality associated with these changes.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

* Added EHF (Norwegian UBL Billing format) as a separate Payment Provider Type for new Payment Agreements and Orders **Preview**.
* Fixed an issue where switching subscription plan immediately would lead to a new Subscriber Account being created where an existing account should have been re-used.
* All new Webhook registration now includes a TenantId header in each published event, refer to the event docs for more details.
* Removed the order restriction on products being required for all types of choices - if not defined ALL products on the template are choosen.
* The reporting subsystem now includes optional StartTime and EndTime on PaymentDemandDetails to simplify reporting and analytics based on subscription periods. We will be applying the historic data for 2023. Reach out to support if you require data for previous periods.
* Custom Power Bi reports data refresh is now scheduled semi-randomly when importing/uploading new reports.
* Fixed a series of technical issues with the Mastercard Payment Services eFaktura integration, related to large queries and better status reporting.
* A series of adjustments in how the subscriber ledger is updated when ledger based billing is toggled on. Fixes a series of issues where the ledger is out-of-sync with the underlying billing account and actually invoiced items.
* Added handling of AvtaleGiro claims generation on weekends so that the duedate is pushed according to the deadline calculations as if they were produced on the following monday.
* Fixed an issue where trying to generate an Account Demand with an invalid payment agreement would return HTTP 500 instead of HTTP 400 with a proper description.
* Fixed an issue where Account Transaction types and descriptions would not be stored correctly.
* Adjusted the EHF Organization validation so it only creates one record in the validation result regardless of the number of invoices where it has failed.
* Fixed an issue with rounding during tax total calculations for EHF.
* Changed the handling of amount calculation in EHF to support multiple units.
* Fixed an issue where starting subscriptions on an Enterprise Plan on the Alignment Date would cause the initial price to be 0.

#### EHF as Payment Provider

This release includes a new Payment Provider Type: EHF.

The main reason for adding EHF as a separate provider is to allow subscribers to toggle off EHF invoicing even in cases where they are required to accept them by law.
In addition it will become possible to adjust Fee values separatly in a future release.

New Payment Agreements can be created with this type, either directly through the Payment Agreement endpoint, alternatively during order creation with a set of parameters.

A future release will provide UI in self-service and merchant for switching to/from an EHF agreement as well as sales poster support for EHF invoicing.

Since EHF was already supported as a “document” format, this new type will need to be enabled for each tenant and existing payment agreements will need to be migrated to EHF where applicable.
Please contact support to get started with this feature.

### Merchant Client

The following new features and improvements are now available in the merchant client.

* Added support for showing planned Subscription Plan changes on a subscription.
* Multiple text adjustments in the Norwegian localization.
* Adjusted visualization of Refunds in the Subscriber Ledger/Economic Journal view.
* Aligned Enterprise Plan Invoice crediting so it resembles the regular crediting more closely.
* Adjusted descriptions when assigning users to subscribers.

### Self-Service and Salesposter

The following new features and improvements are now available in the self-service client

* The Self-Service invoice view now closely resembles the view in Merchant.
* Added option to allow a logout redirect back to the Tenant/Organization website.
* Change page title from INFO-Subscription to “My Page” or similar for other localizations.
* Improvements to the responsive layout for small screen devices.
* Fixed an issue with how organization number and address lines are displayed on invoices.
* Multiple text adjustments in the Norwegian localization.

<a id="changelog-r109"></a>

## Release January 17th 2023

Aaaand we are at it again. A new year a new release.
This release contains a slew of adjustments on bug fixes on features still in private-preview (early beta), so they are not called out in the release notes. But most of them are related to handling of deliveries and temporary adjustments to deliveries.

### API and Backend

The following new fixes, features and improvements are now available in the API and the backend.

* Added a new Payment Method Email (refer to separate section for more details).
* Added primary contact indicator when getting subscriber contacts (the primary contact is the one implictly returned when getting a subscriber).
* Added new endpoint to lookup an address in Distribution Innovation based on the Delivery Point Id.
* Fixed an issue with serialization for the recently introduced Settlement Policy configuration causing missing values for some response types.
* SourceId is now included in the Subscriber Contact to determine what is the source of the subscribers information (the value here is currently the Delivery Point Id from Distribution Innovation).
* It is now possible to add a cancellation type when cancelling a subscription to indicate source of the cancellation (or the process that caused the cancellation).
  > * The idea is to differentiate between changes in the subscription and actual cancellations.
  > * The cancellation type is available in the reporting subsystem (meaning churn reports can exclude certain types of cancellations).
* Changed the behaviour of automatic agreement switching for AvtaleGiro to consider subscriptions with a length down to 7 days. Previously it would only switch for subscriptions of 30 days or more, due to deadline rules defined by AvtaleGiro. The rules are now different when bank notification is disabled and thus 7 days can be allowed as the minimum subscription length.
* Billing Accounts now require OrganizationId and Currency to be defined upon creation. Automatically created accounts will be generated based on the Order that generates them.
* Added a new Description field for Account Payment Demands. Currently optional but will be changed to required in the future.
* Improved the stability of the EHF Peppol validation to reduce the number of false negatives due to Peppol being slow or down.
* Fixed an issue where EHF would be generated wrong if there were multiple transactions on the same non-zero tax group.
* Added rounding information to EHF invoice header information (hotfixed).
* Introduced validation to prevent configuration for ExternalInvoiceIdentifiers using some with prefix and some without. Mixing the two types on the same account WILL cause invalid overlaps.
* Fixed an issue where orders on Swedbank Pay and Vipps would not consider invoice fees and produce an invalid initial transaction (without the fee).
* Fixed an issue during value conversion that caused Vipps transactions to ignore decimal amounts (i.e 102,02 NOK would be charged as 102).
* Fixed an issue where orders with Initial Term with a fixed end date crossing DST would calculate an invalid end time (off by 1 hour).

#### Email as Payment Method/Type

This release includes a new Payment Method: Email.
This does not do anything on its own, the integration type is still InvoiceOnly, so nothing special is done by INFO-Subscription, but the type is useful for separating fees and flows between printed/mailed invoices and Email distributed invoices.

New Payment Agreements can be created with this type, either directly through the Payment Agreement endpoint, alternatively during order creation with a set of parameters.

A future release will provide UI in self-service and merchant for switching to/from an Email agreement as well as sales support for email invoicing.

### Merchant Client

The following new features and improvements are now available in the merchant client.

* Improved view for Charges and ALlowances on invoices.
* Adjustments to the view for registering ledger/billing corrections, hopefully clarifying the consequences of the various actions.
* Fixed an issue that would cause duplicates when creating and updating Dunning Process and Billing Plan.
* Fixed an issue where shared users could not be added if a future cancellation time was registered on the current subscription.
* Fixed an issue with registering new refunds.

### Self-Service and Salesposter

The following new features and improvements are now available in the self-service client

* Fixed an issue where resetting password would result in an unintelligble access error message.
