@bisondesk/core-sdk 1.0.507 → 1.0.509

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -56,6 +56,8 @@ type BaseQuoteCalculatorInput = {
56
56
  customerCountry: string;
57
57
  customerVatNumber?: string;
58
58
  currency: string;
59
+ alternativeCurrency?: string;
60
+ exchangeRate?: string;
59
61
  vehicle: {
60
62
  id: string;
61
63
  category: string;
@@ -206,6 +208,8 @@ export type LeasingCalculatorOutput = {
206
208
  settingId: string;
207
209
  totalRetailAmountExclVat: string;
208
210
  totalRetailAmount: string;
211
+ totalRetailAmountAlternativeCurrency?: string;
212
+ totalRetailAmountExclVatAlternativeCurrency?: string;
209
213
  finalSalesPrice: string;
210
214
  roi: {
211
215
  value: string;
@@ -259,6 +263,8 @@ export type LeasingCalculatorOutput = {
259
263
  export type SalesCalculatorOutput = {
260
264
  totalRetailAmount: string;
261
265
  totalRetailAmountExclVat: string;
266
+ totalRetailAmountAlternativeCurrency?: string;
267
+ totalRetailAmountExclVatAlternativeCurrency?: string;
262
268
  retailAmounts: {
263
269
  vehicle: string;
264
270
  delivery: string;
@@ -118,6 +118,11 @@ export const mappings: {
118
118
  getTitle: (entity: any) => entity.id,
119
119
  getTags: (entity: any) => [entity.id],
120
120
  },
121
+ [BusinessEntityIds.DebtorsDossier]: {
122
+ getMainEntity: (entity: SearchDebtorsDossier) => entity.debtorsDossier,
123
+ getTitle: (dossier: DebtorsDossier) => dossier.id,
124
+ getTags: (dossier: DebtorsDossier) => [dossier.id].filter(Boolean) as string[],
125
+ },
121
126
  };
122
127
 
123
128
  const getMapping = (businessEntityId: BusinessEntityIds) => {