@wisemen/wise-invoicing-web 0.0.5 → 0.0.7

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.
Files changed (60) hide show
  1. package/dist/{BillingDocumentDetailViewDataProvider-DdaNbuI2.js → BillingDocumentDetailViewDataProvider-CmHbMXp0.js} +463 -469
  2. package/dist/{BillingDocumentPdf-D_NOfBhQ.js → BillingDocumentPdf-Dj_s1l_p.js} +2 -2
  3. package/dist/{CreditNoteDetailViewDataProvider-5ljhBOoN.js → CreditNoteDetailViewDataProvider-DPePmzgn.js} +68 -68
  4. package/dist/{CreditNotePdfViewDataProvider-CiWZN7Zy.js → CreditNotePdfViewDataProvider-Dp0zI0fB.js} +2 -2
  5. package/dist/{CustomFieldValueText-ne5yy02J.js → CustomFieldValueText-BGbQwhON.js} +1 -1
  6. package/dist/{DunningCaseDetailViewDataProvider-CetbSmjq.js → DunningCaseDetailViewDataProvider-CInwZwMc.js} +8 -8
  7. package/dist/{DunningCaseOverviewView-Bq0BKVXG.js → DunningCaseOverviewView-DvOmEcJY.js} +4 -4
  8. package/dist/DunningCaseReminderPdfViewDataProvider-I0I_WQQB.js +490 -0
  9. package/dist/{DunningCaseSendDialog-C47X_JjC.js → DunningCaseSendDialog-DISQ1Fs3.js} +2 -2
  10. package/dist/{InvoiceDetailViewDataProvider-DYH2ODDi.js → InvoiceDetailViewDataProvider-YOlvUavt.js} +411 -411
  11. package/dist/{InvoiceOverviewViewDataProvider-BT9cuQXw.js → InvoiceOverviewViewDataProvider-i8tXATJE.js} +47 -47
  12. package/dist/{InvoicePdfView-ug0BiMqe.js → InvoicePdfView-Desmlys1.js} +1 -1
  13. package/dist/{InvoicePdfViewDataProvider-WvjMiEZG.js → InvoicePdfViewDataProvider--CHm0HAM.js} +2 -2
  14. package/dist/{InvoicePublicPdfViewDataProvider-BI9RQqYp.js → InvoicePublicPdfViewDataProvider-DoNBZsmi.js} +3 -3
  15. package/dist/{IssuerSettingsViewDataProvider-Bs4rEES2.js → IssuerSettingsViewDataProvider-COqHGUE6.js} +1 -1
  16. package/dist/{ReminderSettingsViewDataProvider-5n2EfxPG.js → ReminderSettingsViewDataProvider-Dys4bUU7.js} +2 -2
  17. package/dist/{address.transformer-B8C0pwT1.js → address.transformer-jGddczLV.js} +2 -73
  18. package/dist/{billingDocumentDetail.transformer-DIKAl4_L.js → billingDocumentDetail.transformer-BBn9R_cx.js} +32 -42
  19. package/dist/{creditNoteDetail.query-DHP69UiB.js → creditNoteDetail.query-BcPsB96h.js} +11 -11
  20. package/dist/customFieldValue.util-BwsX8exl.js +16 -0
  21. package/dist/{dist-PErDVE6-.js → dist-BBjpqvUl.js} +2 -2
  22. package/dist/dist-BFx8U4Su.js +72 -0
  23. package/dist/{dist-YTXTCfo1.js → dist-boJIIxnT.js} +1 -1
  24. package/dist/{i18n.lib-B74GKndD.js → i18n.lib-C6eb-F-e.js} +28 -6
  25. package/dist/index.d.ts +30 -3
  26. package/dist/index.js +186 -185
  27. package/dist/instant.transformer-KmBsH3E9.js +18 -0
  28. package/dist/{invoice.service-DG5eacZC.js → invoice.service-Bb8VqQvc.js} +38 -32
  29. package/dist/{invoiceDeliveryStatus.util-CX-IdqAu.js → invoiceDeliveryStatus.util-BPkGCQM6.js} +2 -2
  30. package/dist/{invoiceDetail.query-C_IMGjOX.js → invoiceDetail.query-Cek8nyaw.js} +1 -1
  31. package/dist/{invoicingConfig.composable-BYqn1I9n.js → invoicingConfig.composable-D8HuO3Sl.js} +1 -1
  32. package/dist/{issuerSettings.query-6wnSPphB.js → issuerSettings.query-Bvz-Oj5D.js} +13 -12
  33. package/dist/libs/i18n.lib.d.ts +24 -2
  34. package/dist/locales/en-US.json.d.ts +14 -3
  35. package/dist/locales/nl-BE.json.d.ts +14 -3
  36. package/dist/modules/dunning-case/models/dunningCase.model.d.ts +0 -1
  37. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.model.d.ts +49 -0
  38. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.d.ts +8 -0
  39. package/dist/modules/dunning-case/models/dunningCaseReminderPdf.transformer.spec.d.ts +1 -0
  40. package/dist/modules/dunning-case/test/builders/dunningCaseReminderPdfDto.builder.d.ts +27 -0
  41. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.query.d.ts +1 -1
  42. package/dist/modules/dunning-case/use-cases/pdf/api/dunningCaseReminderPdf.service.d.ts +2 -2
  43. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfFooter.vue.d.ts +2 -2
  44. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfHeader.vue.d.ts +7 -0
  45. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTable.vue.d.ts +10 -16
  46. package/dist/modules/dunning-case/use-cases/pdf/components/DunningCaseReminderPdfTotals.vue.d.ts +7 -0
  47. package/dist/modules/dunning-case/use-cases/pdf/utils/dunningCaseReminderPdf.util.d.ts +15 -6
  48. package/dist/modules/dunning-case/use-cases/pdf/views/DunningCaseReminderPdfView.vue.d.ts +2 -2
  49. package/dist/modules/invoice/api/mutations/invoiceUpdate.mutation.d.ts +1 -1
  50. package/dist/modules/invoice/api/queries/invoicePublicDetail.query.d.ts +1 -1
  51. package/dist/modules/invoice/models/invoice/pdf/invoicePdfDetail.model.d.ts +4 -0
  52. package/dist/percentage.util-Bl78kSSk.js +35 -0
  53. package/dist/{plainDate.transformer-Dfe5r84P.js → plainDate.transformer-BxvJpJOv.js} +1 -32
  54. package/dist/{reminderConfig.query-B9OQY7IT.js → reminderConfig.query-DsJNqqi7.js} +8 -8
  55. package/dist/style.css +1 -1
  56. package/dist/ui/billing-document/table/billingDocumentLineItemsTable.context.d.ts +432 -432
  57. package/dist/ui/billing-document/table/composables/useBillingDocumentLineItemsEditor.composable.d.ts +36 -36
  58. package/package.json +1 -1
  59. package/dist/DunningCaseReminderPdfViewDataProvider-B3Y2aYFf.js +0 -239
  60. package/dist/download.util-PjaUQR6r.js +0 -9
@@ -0,0 +1,18 @@
1
+ import { Temporal as e } from "temporal-polyfill";
2
+ //#region src/utils/instant.transformer.ts
3
+ var t = class {
4
+ static fromDto(t) {
5
+ return e.Instant.from(t);
6
+ }
7
+ static fromNullableDto(e) {
8
+ return e === null ? null : this.fromDto(e);
9
+ }
10
+ static toDto(e) {
11
+ return e.toString();
12
+ }
13
+ static toNullableDto(e) {
14
+ return e === null ? null : this.toDto(e);
15
+ }
16
+ };
17
+ //#endregion
18
+ export { t };
@@ -2,9 +2,12 @@ import { A as e, C as t, D as n, F as r, H as ee, M as te, S as ne, T as i, U as
2
2
  import { f as g, g as pe, l as me, r as he, w as _ } from "./documentTitle.composable-4ApFl9TZ.js";
3
3
  import { n as ge } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
4
  import { r as v } from "./src-BFgnUugN.js";
5
- import { i as y, n as b, r as x, t as S } from "./plainDate.transformer-Dfe5r84P.js";
6
- import { n as C, t as w } from "./address.transformer-B8C0pwT1.js";
7
- import { a as T, i as E, n as D, r as O, t as k } from "./billingDocumentDetail.transformer-DIKAl4_L.js";
5
+ import { n as y, t as b } from "./plainDate.transformer-BxvJpJOv.js";
6
+ import { n as x, t as S } from "./percentage.util-Bl78kSSk.js";
7
+ import { t as C } from "./address.transformer-jGddczLV.js";
8
+ import { t as w } from "./instant.transformer-KmBsH3E9.js";
9
+ import { i as T, n as E, r as D, t as O } from "./billingDocumentDetail.transformer-BBn9R_cx.js";
10
+ import { t as k } from "./dist-BFx8U4Su.js";
8
11
  import A from "zod";
9
12
  import { ref as j } from "vue";
10
13
  import { SortUtil as M } from "@wisemen/vue-core-api-utils";
@@ -37,20 +40,20 @@ var P = class e {
37
40
  }
38
41
  }, I = class {
39
42
  static fromDto(e) {
40
- return k.fromViewInvoiceDetailDto(e, e.uuid, pe.STANDARD);
43
+ return O.fromViewInvoiceDetailDto(e, e.uuid, pe.STANDARD);
41
44
  }
42
45
  }, L = class {
43
46
  static fromDto(e) {
44
47
  return {
45
48
  uuid: e.uuid,
46
- createdAt: T.fromDto(e.createdAt),
47
- dueOn: S.fromNullableDto(e.dueOn),
48
- issuedOn: S.fromNullableDto(e.issuedOn),
49
+ createdAt: w.fromDto(e.createdAt),
50
+ dueOn: b.fromNullableDto(e.dueOn),
51
+ issuedOn: b.fromNullableDto(e.issuedOn),
49
52
  isDisputed: e.isDisputed,
50
53
  isOverdue: e.isOverdue,
51
54
  balanceDueAmount: y.fromNullableDto(e.balanceDueAmount),
52
55
  customerName: e.customer.name,
53
- customFields: e.customFields.map(D.fromDto),
56
+ customFields: e.customFields.map(E.fromDto),
54
57
  deliveryStatus: e.deliveryStatus,
55
58
  grossAmount: y.fromDto(e.grossAmount),
56
59
  lifecycleStatus: e.lifecycleStatus,
@@ -73,8 +76,8 @@ var P = class e {
73
76
  }, _e = class {
74
77
  static toDateRangeDto(e) {
75
78
  if (e != null && e.from !== null && e.until !== null) return {
76
- startDate: S.toDto(e.from),
77
- endDate: S.toDto(e.until)
79
+ startDate: b.toDto(e.from),
80
+ endDate: b.toDto(e.until)
78
81
  };
79
82
  }
80
83
  static toDto(e) {
@@ -293,7 +296,7 @@ var ye = class {
293
296
  function Se(e) {
294
297
  return {
295
298
  uuid: e.uuid,
296
- createdAt: T.fromDto(e.createdAt),
299
+ createdAt: w.fromDto(e.createdAt),
297
300
  sequence: e.sequence,
298
301
  status: e.status
299
302
  };
@@ -303,8 +306,9 @@ function Y(e) {
303
306
  uuid: e.uuid,
304
307
  isDiscount: e.isDiscount,
305
308
  name: e.name,
309
+ customFields: e.customFields.map(E.fromDto),
306
310
  description: e.description,
307
- discount: O.fromDto(e.discount),
311
+ discount: D.fromDto(e.discount),
308
312
  grossAmount: y.fromDto(e.grossAmount),
309
313
  netAmount: y.fromDto(e.netAmount),
310
314
  position: e.position,
@@ -319,6 +323,7 @@ function Ce(e) {
319
323
  return {
320
324
  uuid: e.uuid,
321
325
  name: e.name,
326
+ customFields: e.customFields.map(E.fromDto),
322
327
  description: e.description,
323
328
  lines: e.lines.toSorted((e, t) => e.position - t.position).map(Y),
324
329
  position: e.position
@@ -330,15 +335,15 @@ function X(e) {
330
335
  var we = class {
331
336
  static fromPublicDto(e) {
332
337
  return {
333
- createdAt: T.fromDto(e.createdAt),
334
- deliveredOn: S.fromNullableDto(e.deliveredOn),
335
- dueOn: S.fromNullableDto(e.dueOn),
336
- issueOn: S.fromNullableDto(e.issueOn),
337
- updatedAt: T.fromDto(e.updatedAt),
338
+ createdAt: w.fromDto(e.createdAt),
339
+ deliveredOn: b.fromNullableDto(e.deliveredOn),
340
+ dueOn: b.fromNullableDto(e.dueOn),
341
+ issueOn: b.fromNullableDto(e.issueOn),
342
+ updatedAt: w.fromDto(e.updatedAt),
338
343
  issuer: {
339
344
  uuid: e.issuer.uuid,
340
345
  name: e.issuer.name,
341
- address: w.fromNullableDto(e.issuer.address),
346
+ address: C.fromNullableDto(e.issuer.address),
342
347
  alternativeBankAccountNumber: e.issuer.alternativeBankAccountNumber,
343
348
  bankAccountNumber: e.issuer.bankAccountNumber,
344
349
  email: e.issuer.email,
@@ -349,14 +354,15 @@ var we = class {
349
354
  customer: {
350
355
  uuid: e.customer.uuid,
351
356
  name: e.customer.name,
352
- address: w.fromNullableDto(e.customer.address),
357
+ address: C.fromNullableDto(e.customer.address),
353
358
  email: e.customer.email,
354
359
  phoneNumber: e.customer.phoneNumber,
355
360
  vatNumber: e.customer.vatNumber
356
361
  },
362
+ customFields: e.customFields.map(E.fromDto),
357
363
  effectiveNet: y.fromDto(e.effectiveNet),
358
364
  externalRemarks: e.externalRemarks,
359
- globalDiscount: O.fromDto(e.globalDiscount),
365
+ globalDiscount: D.fromDto(e.globalDiscount),
360
366
  grossAmount: y.fromDto(e.grossAmount),
361
367
  groups: e.groups.toSorted((e, t) => e.position - t.position).map(Ce),
362
368
  lines: X(e).map(Y),
@@ -389,7 +395,7 @@ var we = class {
389
395
  return e.type === me.PERCENTAGE ? { discount: {
390
396
  amount: null,
391
397
  description: null,
392
- percentage: x.toDto(new b(t)),
398
+ percentage: x.toDto(new S(t)),
393
399
  type: e.type
394
400
  } } : { discount: {
395
401
  amount: y.toDto({
@@ -420,13 +426,13 @@ var we = class {
420
426
  static toDto(e) {
421
427
  return {
422
428
  preparedByUuid: e.preparedBy.uuid,
423
- deliveredOn: S.toNullableDto(e.deliveredOn),
424
- dueOn: S.toDto(e.dueOn),
425
- issuedOn: S.toDto(e.issuedOn),
426
- customFields: e.customFields.map(D.toDto),
427
- externalRemarks: C.trimOrNull(e.externalRemarks),
428
- poNumber: C.trimOrNull(e.poNumber),
429
- subject: C.trimOrNull(e.subject)
429
+ deliveredOn: b.toNullableDto(e.deliveredOn),
430
+ dueOn: b.toDto(e.dueOn),
431
+ issuedOn: b.toDto(e.issuedOn),
432
+ customFields: e.customFields.map(E.toDto),
433
+ externalRemarks: k.trimOrNull(e.externalRemarks),
434
+ poNumber: k.trimOrNull(e.poNumber),
435
+ subject: k.trimOrNull(e.subject)
430
436
  };
431
437
  }
432
438
  static toForm(e) {
@@ -448,9 +454,9 @@ function $(e) {
448
454
  return {
449
455
  isDiscount: e.quantity < 0 || e.isDiscount,
450
456
  name: e.name,
451
- customFields: e.customFields.map(D.toDto),
457
+ customFields: e.customFields.map(E.toDto),
452
458
  description: e.description,
453
- discount: O.toDto(e.discount),
459
+ discount: D.toDto(e.discount),
454
460
  position: e.position,
455
461
  quantity: e.quantity,
456
462
  unit: e.unit,
@@ -463,7 +469,7 @@ var Ee = class {
463
469
  return {
464
470
  groups: e.groups.map((e) => ({
465
471
  name: e.name,
466
- customFields: e.customFields.map(D.toDto),
472
+ customFields: e.customFields.map(E.toDto),
467
473
  description: e.description,
468
474
  lines: e.lines.map($),
469
475
  position: e.position
@@ -539,7 +545,7 @@ var Ee = class {
539
545
  limit: t.pagination.limit
540
546
  }
541
547
  } }))).map((e) => ({
542
- data: e.data.logs.map(E.fromDto),
548
+ data: e.data.logs.map(T.fromDto),
543
549
  meta: { next: e.data.nextKey }
544
550
  }));
545
551
  }
@@ -1,8 +1,8 @@
1
1
  import { L as e, R as t, t as n } from "./api.util-BCSgCfpS.js";
2
2
  import { b as r, p as i } from "./documentTitle.composable-4ApFl9TZ.js";
3
3
  import { r as a } from "./useCurrencyFormat.composable-MtZaqKnO.js";
4
- import { o } from "./invoice.service-DG5eacZC.js";
5
- import { i as s } from "./CustomFieldValueText-ne5yy02J.js";
4
+ import { o } from "./invoice.service-Bb8VqQvc.js";
5
+ import { i as s } from "./CustomFieldValueText-BGbQwhON.js";
6
6
  import { t as c } from "./_plugin-vue_export-helper-B3ysoDQm.js";
7
7
  import "./AlertTriangleIcon-DtYLCC-Y.js";
8
8
  import "./ArrowNarrowRightIcon-2-Sml68f.js";
@@ -1,4 +1,4 @@
1
- import { t as e } from "./invoice.service-DG5eacZC.js";
1
+ import { t as e } from "./invoice.service-Bb8VqQvc.js";
2
2
  import { useQuery as t } from "@wisemen/vue-core-api-utils";
3
3
  //#region src/modules/invoice/api/queries/invoiceDetail.query.ts
4
4
  function n(n) {
@@ -1,4 +1,4 @@
1
- import { t as e } from "./i18n.lib-B74GKndD.js";
1
+ import { t as e } from "./i18n.lib-C6eb-F-e.js";
2
2
  import { Z as t } from "./api.util-BCSgCfpS.js";
3
3
  import { useI18n as n } from "vue-i18n";
4
4
  import { computed as r, ref as i, toValue as a, watch as o } from "vue";
@@ -1,6 +1,7 @@
1
1
  import { G as e, N as t, t as n } from "./api.util-BCSgCfpS.js";
2
2
  import { u as r } from "./documentTitle.composable-4ApFl9TZ.js";
3
- import { n as i, r as a, t as o } from "./address.transformer-B8C0pwT1.js";
3
+ import { n as i, t as a } from "./address.transformer-jGddczLV.js";
4
+ import { t as o } from "./dist-BFx8U4Su.js";
4
5
  import { useQuery as s } from "@wisemen/vue-core-api-utils";
5
6
  //#region src/models/address/addressForm.transformer.ts
6
7
  var c = class e {
@@ -31,7 +32,7 @@ var c = class e {
31
32
  longitude: e.coordinates.lng
32
33
  },
33
34
  country: l(e.country),
34
- countryCode: a.getCountryCode(e.countryCode, e.country),
35
+ countryCode: i.getCountryCode(e.countryCode, e.country),
35
36
  placeName: null,
36
37
  postalCode: l(e.postalCode),
37
38
  streetName: l(e.street),
@@ -53,7 +54,7 @@ var u = class {
53
54
  static fromDto(e) {
54
55
  return {
55
56
  name: e.name,
56
- address: o.fromNullableDto(e.address),
57
+ address: a.fromNullableDto(e.address),
57
58
  bankAccountNumber: e.bankAccountNumber,
58
59
  bic: e.bic,
59
60
  currency: e.currency,
@@ -67,26 +68,26 @@ var u = class {
67
68
  }
68
69
  static toDto(e) {
69
70
  return {
70
- name: i.trimOrNull(e.name),
71
+ name: o.trimOrNull(e.name),
71
72
  address: c.toNullableDto(e.address),
72
- bankAccountNumber: i.trimOrNull(e.bankAccountNumber),
73
- bic: i.trimOrNull(e.bic),
73
+ bankAccountNumber: o.trimOrNull(e.bankAccountNumber),
74
+ bic: o.trimOrNull(e.bic),
74
75
  currency: e.currency,
75
76
  defaultPaymentTerm: {
76
77
  unit: r.DAYS,
77
78
  value: Number(e.defaultPaymentTermDays)
78
79
  },
79
- email: i.trimOrNull(e.email),
80
- phoneNumber: i.trimOrNull(e.phoneNumber),
81
- sequencePrefix: i.trimOrNull(e.sequencePrefix),
82
- vatNumber: i.trimOrNull(e.vatNumber),
83
- website: i.trimOrNull(e.website)
80
+ email: o.trimOrNull(e.email),
81
+ phoneNumber: o.trimOrNull(e.phoneNumber),
82
+ sequencePrefix: o.trimOrNull(e.sequencePrefix),
83
+ vatNumber: o.trimOrNull(e.vatNumber),
84
+ website: o.trimOrNull(e.website)
84
85
  };
85
86
  }
86
87
  static toForm(e) {
87
88
  return {
88
89
  name: e.name ?? "",
89
- address: e.address === null ? null : o.toForm(e.address),
90
+ address: e.address === null ? null : a.toForm(e.address),
90
91
  bankAccountNumber: e.bankAccountNumber ?? "",
91
92
  bic: e.bic ?? "",
92
93
  currency: e.currency,
@@ -550,7 +550,6 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
550
550
  "module.dunning_case.customer.view_case": string;
551
551
  "module.dunning_case.detail.activity": string;
552
552
  "module.dunning_case.detail.case_closed": string;
553
- "module.dunning_case.detail.closed": string;
554
553
  "module.dunning_case.detail.collapse_updates": string;
555
554
  "module.dunning_case.detail.collected_summary": string;
556
555
  "module.dunning_case.detail.credited_summary": string;
@@ -645,6 +644,14 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
645
644
  "module.dunning_case.pdf.customer": string;
646
645
  "module.dunning_case.pdf.created_date": string;
647
646
  "module.dunning_case.pdf.document_title": string;
647
+ "module.dunning_case.pdf.body.closing": string;
648
+ "module.dunning_case.pdf.body.disclaimer": string;
649
+ "module.dunning_case.pdf.body.greeting": string;
650
+ "module.dunning_case.pdf.body.intro_first": string;
651
+ "module.dunning_case.pdf.body.intro_repeat": string;
652
+ "module.dunning_case.pdf.body.payment.level_1": string;
653
+ "module.dunning_case.pdf.body.payment.level_2": string;
654
+ "module.dunning_case.pdf.body.payment.level_3": string;
648
655
  "module.dunning_case.pdf.footer.address": string;
649
656
  "module.dunning_case.pdf.footer.email": string;
650
657
  "module.dunning_case.pdf.footer.iban": string;
@@ -658,7 +665,11 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
658
665
  "module.dunning_case.pdf.not_available": string;
659
666
  "module.dunning_case.pdf.payment_request": string;
660
667
  "module.dunning_case.pdf.reminder_date": string;
668
+ "module.dunning_case.pdf.subtitle.level_1": string;
669
+ "module.dunning_case.pdf.subtitle.level_2": string;
670
+ "module.dunning_case.pdf.subtitle.level_3": string;
661
671
  "module.dunning_case.pdf.table.days_overdue": string;
672
+ "module.dunning_case.pdf.table.days_until_due": string;
662
673
  "module.dunning_case.pdf.table.due_date": string;
663
674
  "module.dunning_case.pdf.table.invoice": string;
664
675
  "module.dunning_case.pdf.table.invoice_date": string;
@@ -1290,7 +1301,6 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
1290
1301
  "module.dunning_case.customer.view_case": string;
1291
1302
  "module.dunning_case.detail.activity": string;
1292
1303
  "module.dunning_case.detail.case_closed": string;
1293
- "module.dunning_case.detail.closed": string;
1294
1304
  "module.dunning_case.detail.collapse_updates": string;
1295
1305
  "module.dunning_case.detail.credited_summary": string;
1296
1306
  "module.dunning_case.detail.credit_note_activity": string;
@@ -1385,6 +1395,14 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
1385
1395
  "module.dunning_case.pdf.customer": string;
1386
1396
  "module.dunning_case.pdf.created_date": string;
1387
1397
  "module.dunning_case.pdf.document_title": string;
1398
+ "module.dunning_case.pdf.body.closing": string;
1399
+ "module.dunning_case.pdf.body.disclaimer": string;
1400
+ "module.dunning_case.pdf.body.greeting": string;
1401
+ "module.dunning_case.pdf.body.intro_first": string;
1402
+ "module.dunning_case.pdf.body.intro_repeat": string;
1403
+ "module.dunning_case.pdf.body.payment.level_1": string;
1404
+ "module.dunning_case.pdf.body.payment.level_2": string;
1405
+ "module.dunning_case.pdf.body.payment.level_3": string;
1388
1406
  "module.dunning_case.pdf.footer.address": string;
1389
1407
  "module.dunning_case.pdf.footer.email": string;
1390
1408
  "module.dunning_case.pdf.footer.iban": string;
@@ -1398,7 +1416,11 @@ export declare const i18nPlugin: import('vue-i18n').I18n<{
1398
1416
  "module.dunning_case.pdf.not_available": string;
1399
1417
  "module.dunning_case.pdf.payment_request": string;
1400
1418
  "module.dunning_case.pdf.reminder_date": string;
1419
+ "module.dunning_case.pdf.subtitle.level_1": string;
1420
+ "module.dunning_case.pdf.subtitle.level_2": string;
1421
+ "module.dunning_case.pdf.subtitle.level_3": string;
1401
1422
  "module.dunning_case.pdf.table.days_overdue": string;
1423
+ "module.dunning_case.pdf.table.days_until_due": string;
1402
1424
  "module.dunning_case.pdf.table.due_date": string;
1403
1425
  "module.dunning_case.pdf.table.invoice": string;
1404
1426
  "module.dunning_case.pdf.table.invoice_date": string;
@@ -543,7 +543,6 @@ declare const _default: {
543
543
  "module.dunning_case.customer.view_case": "View case",
544
544
  "module.dunning_case.detail.activity": "Activity",
545
545
  "module.dunning_case.detail.case_closed": "Case closed",
546
- "module.dunning_case.detail.closed": "Closed",
547
546
  "module.dunning_case.detail.collapse_updates": "Collapse payments and credit notes for {invoice}",
548
547
  "module.dunning_case.detail.collected_summary": "{collected} collected · {billed} billed",
549
548
  "module.dunning_case.detail.credited_summary": "{credited} credited",
@@ -638,6 +637,14 @@ declare const _default: {
638
637
  "module.dunning_case.pdf.customer": "Client",
639
638
  "module.dunning_case.pdf.created_date": "Created date",
640
639
  "module.dunning_case.pdf.document_title": "Payment request - {customer}",
640
+ "module.dunning_case.pdf.body.closing": "Sincerely,",
641
+ "module.dunning_case.pdf.body.disclaimer": "If your payment has crossed with this letter, please consider this notice null and void.",
642
+ "module.dunning_case.pdf.body.greeting": "Dear Sir/Madam,",
643
+ "module.dunning_case.pdf.body.intro_first": "Unless we are mistaken on our part, we have not yet received payment for the overdue invoices listed below.",
644
+ "module.dunning_case.pdf.body.intro_repeat": "Despite our previous payment reminder, we have not yet received payment for the overdue invoices listed below.",
645
+ "module.dunning_case.pdf.body.payment.level_1": "Assuming this is due to an oversight on your part, we kindly ask you to immediately transfer the balance due to our account {iban}. We remind you that failure to pay this invoice will incur a 10% charge on the next reminder.",
646
+ "module.dunning_case.pdf.body.payment.level_2": "Please proceed immediately with the payment of the outstanding amounts to our account {iban}. If payment is not received within 5 days, we will be forced to refuse any potential request for services.",
647
+ "module.dunning_case.pdf.body.payment.level_3": "Please proceed immediately with the payment of the outstanding amounts to our account {iban}. If this payment is not made, we will be forced to transfer your file to our legal counsel.",
641
648
  "module.dunning_case.pdf.footer.address": "Address",
642
649
  "module.dunning_case.pdf.footer.email": "Email",
643
650
  "module.dunning_case.pdf.footer.iban": "IBAN",
@@ -651,13 +658,17 @@ declare const _default: {
651
658
  "module.dunning_case.pdf.not_available": "-",
652
659
  "module.dunning_case.pdf.payment_request": "Payment request",
653
660
  "module.dunning_case.pdf.reminder_date": "Reminder date",
661
+ "module.dunning_case.pdf.subtitle.level_1": "First reminder",
662
+ "module.dunning_case.pdf.subtitle.level_2": "Second reminder",
663
+ "module.dunning_case.pdf.subtitle.level_3": "Final reminder, formal notice of default",
654
664
  "module.dunning_case.pdf.table.days_overdue": "Days overdue",
665
+ "module.dunning_case.pdf.table.days_until_due": "Days until due",
655
666
  "module.dunning_case.pdf.table.due_date": "Due date",
656
- "module.dunning_case.pdf.table.invoice": "Invoice #",
667
+ "module.dunning_case.pdf.table.invoice": "Invoice",
657
668
  "module.dunning_case.pdf.table.invoice_date": "Invoice date",
658
669
  "module.dunning_case.pdf.table.remaining_balance": "Remaining balance",
659
670
  "module.dunning_case.pdf.table.reminder_fee": "Reminder fee",
660
- "module.dunning_case.pdf.table.reminder": "Reminder #",
671
+ "module.dunning_case.pdf.table.reminder": "Reminder",
661
672
  "module.dunning_case.pdf.table.new": "New",
662
673
  "module.dunning_case.pdf.total.amount_due": "Total amount due",
663
674
  "module.dunning_case.pdf.total.reminder_fees": "Total reminder fees",
@@ -543,7 +543,6 @@ declare const _default: {
543
543
  "module.dunning_case.customer.view_case": "Case bekijken",
544
544
  "module.dunning_case.detail.activity": "Activiteit",
545
545
  "module.dunning_case.detail.case_closed": "Case gesloten",
546
- "module.dunning_case.detail.closed": "Gesloten",
547
546
  "module.dunning_case.detail.collapse_updates": "Betalingen en creditnota's voor {invoice} inklappen",
548
547
  "module.dunning_case.detail.credited_summary": "{credited} gecrediteerd",
549
548
  "module.dunning_case.detail.credit_note_activity": "Creditnota {sequence} van {amount}",
@@ -638,6 +637,14 @@ declare const _default: {
638
637
  "module.dunning_case.pdf.customer": "Klant",
639
638
  "module.dunning_case.pdf.created_date": "Aanmaakdatum",
640
639
  "module.dunning_case.pdf.document_title": "Betalingsverzoek - {customer}",
640
+ "module.dunning_case.pdf.body.closing": "Met vriendelijke groeten,",
641
+ "module.dunning_case.pdf.body.disclaimer": "Indien uw betaling deze brief kruiste, beschouw deze aanmaning dan als nietig.",
642
+ "module.dunning_case.pdf.body.greeting": "Geachte heer/mevrouw,",
643
+ "module.dunning_case.pdf.body.intro_first": "Tenzij wij ons vergissen, hebben wij nog geen betaling ontvangen voor onderstaande vervallen facturen.",
644
+ "module.dunning_case.pdf.body.intro_repeat": "Ondanks onze vorige betalingsherinnering hebben wij nog geen betaling ontvangen voor onderstaande vervallen facturen.",
645
+ "module.dunning_case.pdf.body.payment.level_1": "Ervan uitgaande dat dit een vergetelheid is, vragen wij u vriendelijk om het openstaande bedrag onmiddellijk over te schrijven naar onze rekening {iban}. Wij herinneren u eraan dat niet-betaling van deze factuur een kost van 10% zal aanrekenen bij de volgende herinnering.",
646
+ "module.dunning_case.pdf.body.payment.level_2": "Wij vragen u het openstaande bedrag onmiddellijk te betalen op onze rekening {iban}. Indien de betaling niet binnen 5 dagen ontvangen wordt, zien wij ons genoodzaakt om verdere dienstverlening te weigeren.",
647
+ "module.dunning_case.pdf.body.payment.level_3": "Wij vragen u het openstaande bedrag onmiddellijk te betalen op onze rekening {iban}. Indien deze betaling niet gebeurt, zien wij ons genoodzaakt om uw dossier over te maken aan onze juridische dienst.",
641
648
  "module.dunning_case.pdf.footer.address": "Adres",
642
649
  "module.dunning_case.pdf.footer.email": "E-mail",
643
650
  "module.dunning_case.pdf.footer.iban": "IBAN",
@@ -651,13 +658,17 @@ declare const _default: {
651
658
  "module.dunning_case.pdf.not_available": "-",
652
659
  "module.dunning_case.pdf.payment_request": "Betalingsverzoek",
653
660
  "module.dunning_case.pdf.reminder_date": "Datum herinnering",
661
+ "module.dunning_case.pdf.subtitle.level_1": "Eerste herinnering",
662
+ "module.dunning_case.pdf.subtitle.level_2": "Tweede herinnering",
663
+ "module.dunning_case.pdf.subtitle.level_3": "Laatste herinnering, formele ingebrekestelling",
654
664
  "module.dunning_case.pdf.table.days_overdue": "Dagen vervallen",
665
+ "module.dunning_case.pdf.table.days_until_due": "Dagen tot vervaldatum",
655
666
  "module.dunning_case.pdf.table.due_date": "Vervaldatum",
656
- "module.dunning_case.pdf.table.invoice": "Factuur #",
667
+ "module.dunning_case.pdf.table.invoice": "Factuur",
657
668
  "module.dunning_case.pdf.table.invoice_date": "Factuurdatum",
658
669
  "module.dunning_case.pdf.table.remaining_balance": "Resterend saldo",
659
670
  "module.dunning_case.pdf.table.reminder_fee": "Kost herinnering",
660
- "module.dunning_case.pdf.table.reminder": "Herinnering #",
671
+ "module.dunning_case.pdf.table.reminder": "Herinnering",
661
672
  "module.dunning_case.pdf.table.new": "Nieuw",
662
673
  "module.dunning_case.pdf.total.amount_due": "Totaal verschuldigd",
663
674
  "module.dunning_case.pdf.total.reminder_fees": "Totale herinneringskosten",
@@ -69,7 +69,6 @@ export interface DunningCaseDetail {
69
69
  lastReminderSentAt: Temporal.Instant | null;
70
70
  nextReminderOn: Temporal.PlainDate | null;
71
71
  updatedAt: Temporal.Instant;
72
- isClosed: boolean;
73
72
  blockedReason: DunningCaseBlockedReason | null;
74
73
  canSendReminder: boolean;
75
74
  customer: {
@@ -0,0 +1,49 @@
1
+ import { PlainDate } from '@wisemen/vue-core-dates';
2
+ import { Temporal } from 'temporal-polyfill';
3
+ import { Locale } from '../../../client/index.ts';
4
+ import { Address } from '../../../models/address/address.model.ts';
5
+ import { Monetary } from '../../../utils/monetary/monetary.model.ts';
6
+ export interface DunningCaseReminderPdfIssuer {
7
+ name: string | null;
8
+ address: Address | null;
9
+ alternativeBankAccountNumber: string | null;
10
+ bankAccountNumber: string | null;
11
+ email: string | null;
12
+ phoneNumber: string | null;
13
+ vatNumber: string | null;
14
+ website: string | null;
15
+ }
16
+ export interface DunningCaseReminderPdfCustomer {
17
+ name: string;
18
+ address: Address | null;
19
+ locale: Locale;
20
+ }
21
+ export interface DunningCaseReminderPdfRecipient {
22
+ name: string | null;
23
+ email: string;
24
+ }
25
+ /**
26
+ * Overdue invoices carry a reminder level, a fee and a days overdue count.
27
+ * Invoices that are not due yet have none of those, and count down instead.
28
+ */
29
+ export interface DunningCaseReminderPdfInvoice {
30
+ dueOn: PlainDate;
31
+ issuedOn: PlainDate;
32
+ isNew: boolean;
33
+ daysOverdue: number;
34
+ fee: Monetary | null;
35
+ level: number | null;
36
+ outstandingBalance: Monetary;
37
+ sequence: string;
38
+ }
39
+ export interface DunningCaseReminderPdf {
40
+ createdAt: Temporal.Instant;
41
+ sentAt: Temporal.Instant | null;
42
+ issuer: DunningCaseReminderPdfIssuer;
43
+ customer: DunningCaseReminderPdfCustomer;
44
+ invoices: DunningCaseReminderPdfInvoice[];
45
+ level: number;
46
+ outstandingInvoices: DunningCaseReminderPdfInvoice[];
47
+ recipient: DunningCaseReminderPdfRecipient;
48
+ totalFee: Monetary;
49
+ }
@@ -0,0 +1,8 @@
1
+ import { ViewPublicDunningCaseReminderResponse } from '../../../client/index.ts';
2
+ import { DunningCaseReminderPdf } from './dunningCaseReminderPdf.model.ts';
3
+ export declare class DunningCaseReminderPdfTransformer {
4
+ private static fromInvoiceDto;
5
+ /** An invoice that is not overdue yet carries no reminder level and no fee. */
6
+ private static fromOutstandingInvoiceDto;
7
+ static fromPublicDto(dto: ViewPublicDunningCaseReminderResponse): DunningCaseReminderPdf;
8
+ }
@@ -0,0 +1,27 @@
1
+ import { MonetaryDto, ViewPublicDunningCaseReminderInvoiceResponse, ViewPublicDunningCaseReminderIssuerResponse, ViewPublicDunningCaseReminderOutstandingInvoiceResponse, ViewPublicDunningCaseReminderResponse, Locale } from '../../../../client/index.ts';
2
+ export declare class DunningCaseReminderPdfInvoiceDtoBuilder {
3
+ private value;
4
+ build(): ViewPublicDunningCaseReminderInvoiceResponse;
5
+ withFee(fee: MonetaryDto): this;
6
+ withIsNew(isNew: boolean): this;
7
+ withLevel(level: number): this;
8
+ withOutstandingBalance(outstandingBalance: MonetaryDto): this;
9
+ withSequence(sequence: string): this;
10
+ }
11
+ export declare class DunningCaseReminderPdfOutstandingInvoiceDtoBuilder {
12
+ private value;
13
+ build(): ViewPublicDunningCaseReminderOutstandingInvoiceResponse;
14
+ withOutstandingBalance(outstandingBalance: MonetaryDto): this;
15
+ withSequence(sequence: string): this;
16
+ }
17
+ export declare class DunningCaseReminderPdfDtoBuilder {
18
+ private value;
19
+ build(): ViewPublicDunningCaseReminderResponse;
20
+ withCustomerLocale(locale: Locale): this;
21
+ withInvoices(invoices: ViewPublicDunningCaseReminderInvoiceResponse[]): this;
22
+ withIssuer(issuer: ViewPublicDunningCaseReminderIssuerResponse): this;
23
+ withLevel(level: number): this;
24
+ withOutstandingInvoices(outstandingInvoices: ViewPublicDunningCaseReminderOutstandingInvoiceResponse[]): this;
25
+ withSentAt(sentAt: string | null): this;
26
+ withTotalFee(totalFee: MonetaryDto): this;
27
+ }
@@ -1,2 +1,2 @@
1
1
  import { ComputedRef } from 'vue';
2
- export declare function useDunningCaseReminderPdfQuery(token: ComputedRef<string | null>): import('@wisemen/vue-core-api-utils').UseQueryReturnType<import('../../../../../client').ViewPublicDunningCaseReminderResponse, string>;
2
+ export declare function useDunningCaseReminderPdfQuery(token: ComputedRef<string | null>): import('@wisemen/vue-core-api-utils').UseQueryReturnType<import('../../../models/dunningCaseReminderPdf.model').DunningCaseReminderPdf, string>;
@@ -1,5 +1,5 @@
1
1
  import { ApiResult } from '@wisemen/vue-core-api-utils';
2
- import { ViewPublicDunningCaseReminderResponse } from '../../../../../client/index.ts';
2
+ import { DunningCaseReminderPdf } from '../../../models/dunningCaseReminderPdf.model.ts';
3
3
  export declare class DunningCaseReminderPdfService {
4
- static get(token: string): Promise<ApiResult<ViewPublicDunningCaseReminderResponse>>;
4
+ static get(token: string): Promise<ApiResult<DunningCaseReminderPdf>>;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { ViewPublicDunningCaseReminderIssuerResponse } from '../../../../../client/index.ts';
1
+ import { DunningCaseReminderPdfIssuer } from '../../../models/dunningCaseReminderPdf.model.ts';
2
2
  type __VLS_Props = {
3
- issuer: ViewPublicDunningCaseReminderIssuerResponse;
3
+ issuer: DunningCaseReminderPdfIssuer;
4
4
  };
5
5
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,7 @@
1
+ import { DunningCaseReminderPdf } from '../../../models/dunningCaseReminderPdf.model.ts';
2
+ type __VLS_Props = {
3
+ reminder: DunningCaseReminderPdf;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -1,20 +1,14 @@
1
- import { MonetaryDto } from '../../../../../client/index.ts';
2
- export interface DunningCaseReminderPdfTableRow {
3
- dueOn: string;
4
- issuedOn: string;
5
- isNew?: boolean;
6
- daysOverdue: number;
7
- fee?: MonetaryDto;
8
- level?: number;
9
- outstandingBalance: MonetaryDto;
10
- sequence: string;
11
- }
1
+ import { DunningCaseReminderPdfInvoice } from '../../../models/dunningCaseReminderPdf.model.ts';
12
2
  type __VLS_Props = {
13
- formatDate: (value: string) => string;
14
- formatMonetary: (value: MonetaryDto) => string;
15
- rows: DunningCaseReminderPdfTableRow[];
16
- showReminderLevel?: boolean;
3
+ /**
4
+ * Overdue invoices carry a reminder level, a fee and a days overdue count.
5
+ * Invoices that are not due yet only show how many days they have left.
6
+ */
7
+ isOverdue?: boolean;
8
+ rows: DunningCaseReminderPdfInvoice[];
17
9
  };
18
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ isOverdue: boolean;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
13
  declare const _default: typeof __VLS_export;
20
14
  export default _default;
@@ -0,0 +1,7 @@
1
+ import { DunningCaseReminderPdf } from '../../../models/dunningCaseReminderPdf.model.ts';
2
+ type __VLS_Props = {
3
+ reminder: DunningCaseReminderPdf;
4
+ };
5
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;