# Migration v6

Contains 2 breaking changes of the SDK interface.
The `Print` service has been split in 2 separate services, using 2 separate keys. 

## Changes

- [getFirstDeliveryDate](#getFirstDeliveryDate)
- [getFulfilmentOptions](#getFulfilmentOptions)

### getFirstDeliveryDate
- Method `getFirstDeliveryDate` in `Print` service has been replaced by `getOptions` in the [PrintInfo ](../services/PRINT-INFO.md) service.
- Note that a new key `printInfoApiKey` is also required to configure the SDK, `printApiKey` is no longer used.

```diff
- const firstDeliveryDate = await printSdk.getFirstDeliveryDate(productCode, countryCode, postcode, option, startDate);
+ const firstDeliveryDate = await printInfoSdk.getFirstDeliveryDate(productCode, countryCode, postcode, option, startDate);
```

### getFulfilmentOptions
- Method `getFulfilmentOptions` in `Print` service has been replaced by `getOptions` in the [PrintFulfilment](../services/PRINT-FULFILMENT.md) service.
- Note that a new key `printFulfilmentApiKey` is also required to configure the SDK, `printApiKey` is no longer used.

```diff
- const fulfilmentOptions = await printSdk.getFulfilmentOptions(countryCode, postcode, productCode);
+ const fulfilmentOptions = await fulfilmentSdk.getOptions(countryCode, postcode, productCode);
```
