@unifetch/fortnox 2.1.1 → 2.2.0

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 (46) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/{create-fortnox-DiGzUeVa.d.mts → create-fortnox-C0kWSxNm.d.mts} +32 -26
  3. package/dist/create-fortnox-C0kWSxNm.d.mts.map +1 -0
  4. package/dist/{create-fortnox-BQgaBk5m.d.cts → create-fortnox-D9s3VXSg.d.cts} +32 -26
  5. package/dist/create-fortnox-D9s3VXSg.d.cts.map +1 -0
  6. package/dist/{create-fortnox-BB_0mFBL.mjs → create-fortnox-mini-CNEKEVs1.cjs} +32 -4
  7. package/dist/create-fortnox-mini-CNEKEVs1.cjs.map +1 -0
  8. package/dist/{create-fortnox-DGjVOKfm.cjs → create-fortnox-mini-zGxET1Vm.mjs} +20 -10
  9. package/dist/create-fortnox-mini-zGxET1Vm.mjs.map +1 -0
  10. package/dist/{index-CqOhNC_h.d.mts → index-B1gsa8-e.d.mts} +1 -1
  11. package/dist/{index-BWHJmubR.d.cts.map → index-B1gsa8-e.d.mts.map} +1 -1
  12. package/dist/{index-BWHJmubR.d.cts → index-C_4EXYAu.d.cts} +1 -1
  13. package/dist/{index-CqOhNC_h.d.mts.map → index-C_4EXYAu.d.cts.map} +1 -1
  14. package/dist/index.cjs +3 -2
  15. package/dist/index.d.cts +2 -2
  16. package/dist/index.d.mts +2 -2
  17. package/dist/index.mjs +2 -2
  18. package/dist/official.cjs +4 -2
  19. package/dist/official.cjs.map +1 -1
  20. package/dist/official.d.cts +12271 -2
  21. package/dist/official.d.cts.map +1 -0
  22. package/dist/official.d.mts +12271 -2
  23. package/dist/official.d.mts.map +1 -0
  24. package/dist/official.mjs +3 -2
  25. package/dist/official.mjs.map +1 -1
  26. package/dist/{official-BFBd-NeQ.d.cts → patched-C9Vb7H1N.d.cts} +455 -446
  27. package/dist/patched-C9Vb7H1N.d.cts.map +1 -0
  28. package/dist/{official-DeZGQsNS.d.mts → patched-CChAT2O0.d.mts} +455 -446
  29. package/dist/patched-CChAT2O0.d.mts.map +1 -0
  30. package/dist/patched.cjs +4 -2
  31. package/dist/patched.cjs.map +1 -1
  32. package/dist/patched.d.cts +2 -12256
  33. package/dist/patched.d.mts +2 -12256
  34. package/dist/patched.mjs +3 -2
  35. package/dist/patched.mjs.map +1 -1
  36. package/dist/types/custom/index.d.cts +1 -1
  37. package/dist/types/custom/index.d.mts +1 -1
  38. package/package.json +1 -1
  39. package/dist/create-fortnox-BB_0mFBL.mjs.map +0 -1
  40. package/dist/create-fortnox-BQgaBk5m.d.cts.map +0 -1
  41. package/dist/create-fortnox-DGjVOKfm.cjs.map +0 -1
  42. package/dist/create-fortnox-DiGzUeVa.d.mts.map +0 -1
  43. package/dist/official-BFBd-NeQ.d.cts.map +0 -1
  44. package/dist/official-DeZGQsNS.d.mts.map +0 -1
  45. package/dist/patched.d.cts.map +0 -1
  46. package/dist/patched.d.mts.map +0 -1
@@ -1,6 +1,7 @@
1
- import { t as FortnoxClient } from "./create-fortnox-DiGzUeVa.mjs";
1
+ import { n as FortnoxPathClient, t as FortnoxClient } from "./create-fortnox-C0kWSxNm.mjs";
2
+ import { i as InvoiceResponse, r as InvoiceListWrap } from "./index-B1gsa8-e.mjs";
2
3
 
3
- //#region src/types/official-schemas.gen.d.ts
4
+ //#region src/types/patched-schemas.gen.d.ts
4
5
  interface FileattachmentsAttachment {
5
6
  entityId?: number;
6
7
  entityType?: "OF" | "O" | "F" | "C" | "LGR_IO" | "LGR_IG";
@@ -13,7 +14,7 @@ interface FileattachmentsNumberOfAttachments {
13
14
  numberOfAttachments?: number;
14
15
  }
15
16
  interface FortnoxAnlAdjustAssetValueWrap {
16
- Asset?: {
17
+ Asset: {
17
18
  Amount?: number;
18
19
  AssetIds?: number[];
19
20
  Comment?: string;
@@ -37,12 +38,12 @@ interface FortnoxAnlAssetActionsSingleItem {
37
38
  TransactionDate?: string;
38
39
  }
39
40
  interface FortnoxAnlAssetTypesListResponseWrap {
40
- MetaInformation?: {
41
- "@CurrentPage"?: number;
42
- "@TotalPages"?: number;
43
- "@TotalResources"?: number;
41
+ MetaInformation: {
42
+ "@CurrentPage": number;
43
+ "@TotalPages": number;
44
+ "@TotalResources": number;
44
45
  };
45
- Types?: {
46
+ Types: {
46
47
  "@url"?: string;
47
48
  AccountAsset?: number;
48
49
  AccountAssetId?: number;
@@ -71,7 +72,7 @@ interface FortnoxAnlAssetTypesListResponseWrap {
71
72
  }[];
72
73
  }
73
74
  interface FortnoxAnlAssetTypesSingleResponseWrap {
74
- Type?: {
75
+ Type: {
75
76
  "@url"?: string;
76
77
  AccountAsset?: number;
77
78
  AccountAssetId?: number;
@@ -144,7 +145,7 @@ interface FortnoxAnlAssetsActionResponse {
144
145
  };
145
146
  }
146
147
  interface FortnoxAnlAssetsDepreciationResponseWrap {
147
- AssetsDepreciation?: {
148
+ AssetsDepreciation: {
148
149
  "@url"?: string;
149
150
  FinancialYear?: number;
150
151
  VoucherNumber?: number;
@@ -152,21 +153,21 @@ interface FortnoxAnlAssetsDepreciationResponseWrap {
152
153
  }[];
153
154
  }
154
155
  interface FortnoxAnlAssetsListItemWrap {
155
- Assets?: {
156
- "@url"?: string;
157
- AcquisitionDate?: string;
158
- AcquisitionStart?: string;
159
- AcquisitionValue?: number;
160
- Brand?: string;
161
- CostCenter?: string;
162
- Department?: string;
163
- DepreciateToResidualValue?: number;
164
- DepreciatedTo?: string;
165
- DepreciationFinal?: string;
166
- DepreciationMethod?: string;
167
- Description?: string;
168
- Group?: string;
169
- History?: {
156
+ Assets: {
157
+ "@url": string;
158
+ AcquisitionDate: string;
159
+ AcquisitionStart: string;
160
+ AcquisitionValue: number;
161
+ Brand: string;
162
+ CostCenter: string;
163
+ Department: string;
164
+ DepreciateToResidualValue: number;
165
+ DepreciatedTo: string;
166
+ DepreciationFinal: string;
167
+ DepreciationMethod: string;
168
+ Description: string;
169
+ Group: string;
170
+ History: {
170
171
  Amount?: string;
171
172
  Date?: string;
172
173
  EventId?: number;
@@ -179,29 +180,29 @@ interface FortnoxAnlAssetsListItemWrap {
179
180
  VoucherSeries?: string;
180
181
  VoucherYear?: number;
181
182
  }[];
182
- Id?: number;
183
- InsuredNumber?: string;
184
- InsuredWith?: string;
185
- ManualOb?: string;
186
- Notes?: string;
187
- Number?: string;
188
- Placement?: string;
189
- Project?: string;
190
- Reference?: string;
191
- Room?: string;
192
- Status?: string;
193
- StatusId?: string;
194
- Type?: string;
195
- TypeId?: number;
183
+ Id: number;
184
+ InsuredNumber: string;
185
+ InsuredWith: string;
186
+ ManualOb: string;
187
+ Notes: string;
188
+ Number: string;
189
+ Placement: string;
190
+ Project: string;
191
+ Reference: string;
192
+ Room: string;
193
+ Status: string;
194
+ StatusId: string;
195
+ Type: string;
196
+ TypeId: number;
196
197
  }[];
197
- MetaInformation?: {
198
- "@CurrentPage"?: number;
199
- "@TotalPages"?: number;
200
- "@TotalResources"?: number;
198
+ MetaInformation: {
199
+ "@CurrentPage": number;
200
+ "@TotalPages": number;
201
+ "@TotalResources": number;
201
202
  };
202
203
  }
203
204
  interface FortnoxAnlAssetsSingleItemResponseWrap {
204
- Assets?: {
205
+ Assets: {
205
206
  "@url"?: string;
206
207
  AcquisitionDate?: string;
207
208
  AcquisitionStart?: string;
@@ -245,7 +246,7 @@ interface FortnoxAnlAssetsSingleItemResponseWrap {
245
246
  };
246
247
  }
247
248
  interface FortnoxAnlAssetsSinglePayloadItemWrap {
248
- Asset?: {
249
+ Asset: {
249
250
  AcquisitionDate?: string;
250
251
  AcquisitionStart?: string;
251
252
  AcquisitionValue?: string;
@@ -269,7 +270,7 @@ interface FortnoxAnlAssetsSinglePayloadItemWrap {
269
270
  };
270
271
  }
271
272
  interface FortnoxAnlCreateAssetTypeWrap {
272
- AssetType?: {
273
+ AssetType: {
273
274
  AccountAssetId?: string;
274
275
  AccountDepreciationId?: string;
275
276
  AccountOffsetSaleId?: string;
@@ -286,7 +287,7 @@ interface FortnoxAnlCreateAssetTypeWrap {
286
287
  };
287
288
  }
288
289
  interface FortnoxAnlDepreciationWrap {
289
- Asset?: {
290
+ Asset: {
290
291
  Amount?: number;
291
292
  AssetIds?: number[];
292
293
  Comment?: string;
@@ -299,7 +300,7 @@ interface FortnoxAnlDepreciationWrap {
299
300
  };
300
301
  }
301
302
  interface FortnoxAnlScrapAssetWrap {
302
- Asset?: {
303
+ Asset: {
303
304
  Amount?: number;
304
305
  AssetIds?: number[];
305
306
  Comment?: string;
@@ -312,7 +313,7 @@ interface FortnoxAnlScrapAssetWrap {
312
313
  };
313
314
  }
314
315
  interface FortnoxAnlSellAssetWrap {
315
- Asset?: {
316
+ Asset: {
316
317
  Amount?: number;
317
318
  AssetIds?: number[];
318
319
  Comment?: string;
@@ -325,7 +326,7 @@ interface FortnoxAnlSellAssetWrap {
325
326
  };
326
327
  }
327
328
  interface FortnoxAnlUpdateAssetTypeWrap {
328
- AssetType?: {
329
+ AssetType: {
329
330
  AccountAssetId?: string;
330
331
  AccountDepreciationId?: string;
331
332
  AccountOffsetSaleId?: string;
@@ -359,7 +360,7 @@ interface FortnoxAnlUpdateAssetTypeWrap {
359
360
  };
360
361
  }
361
362
  interface FortnoxArticleListItemWrap {
362
- Articles?: {
363
+ Articles: {
363
364
  "@url"?: string;
364
365
  Active?: boolean;
365
366
  ArticleNumber?: string;
@@ -407,9 +408,14 @@ interface FortnoxArticleListItemWrap {
407
408
  Weight?: number;
408
409
  Width?: number;
409
410
  }[];
411
+ MetaInformation: {
412
+ "@CurrentPage": number;
413
+ "@TotalPages": number;
414
+ "@TotalResources": number;
415
+ };
410
416
  }
411
417
  interface FortnoxArticleSingleItemWrap {
412
- Article?: {
418
+ Article: {
413
419
  "@url"?: string;
414
420
  Active?: boolean;
415
421
  ArticleNumber?: string;
@@ -459,7 +465,7 @@ interface FortnoxArticleSingleItemWrap {
459
465
  };
460
466
  }
461
467
  interface FortnoxArticleSinglePayloadItemWrap {
462
- Article?: {
468
+ Article: {
463
469
  Active?: boolean;
464
470
  ArticleNumber?: string;
465
471
  Bulky?: boolean;
@@ -507,12 +513,17 @@ interface FortnoxArticleSinglePayloadItemWrap {
507
513
  };
508
514
  }
509
515
  interface FortnoxBfAccountChartListItemWrap {
510
- AccountCharts?: {
516
+ AccountCharts: {
511
517
  Name?: string;
512
518
  }[];
519
+ MetaInformation: {
520
+ "@CurrentPage": number;
521
+ "@TotalPages": number;
522
+ "@TotalResources": number;
523
+ };
513
524
  }
514
525
  interface FortnoxBfAccountListItemWrap {
515
- Accounts?: {
526
+ Accounts: {
516
527
  "@url"?: string;
517
528
  Active?: boolean;
518
529
  BalanceBroughtForward?: number;
@@ -535,14 +546,14 @@ interface FortnoxBfAccountListItemWrap {
535
546
  VATCode?: string;
536
547
  Year?: number;
537
548
  }[];
538
- MetaInformation?: {
539
- "@CurrentPage"?: number;
540
- "@TotalPages"?: number;
541
- "@TotalResources"?: number;
549
+ MetaInformation: {
550
+ "@CurrentPage": number;
551
+ "@TotalPages": number;
552
+ "@TotalResources": number;
542
553
  };
543
554
  }
544
555
  interface FortnoxBfAccountSingleItemWrap {
545
- Account?: {
556
+ Account: {
546
557
  "@url"?: string;
547
558
  Active?: boolean;
548
559
  BalanceBroughtForward?: number;
@@ -567,7 +578,7 @@ interface FortnoxBfAccountSingleItemWrap {
567
578
  };
568
579
  }
569
580
  interface FortnoxBfAccountSinglePayloadItemWrap {
570
- Account?: {
581
+ Account: {
571
582
  Active?: boolean;
572
583
  BalanceBroughtForward?: number;
573
584
  CostCenter?: string;
@@ -587,7 +598,7 @@ interface FortnoxBfAccountSinglePayloadItemWrap {
587
598
  };
588
599
  }
589
600
  interface FortnoxBfFinancialYearListItemWrap {
590
- FinancialYears?: {
601
+ FinancialYears: {
591
602
  "@url"?: string;
592
603
  AccountChartType?: string;
593
604
  AccountingMethod?: "ACCRUAL" | "CASH";
@@ -595,10 +606,10 @@ interface FortnoxBfFinancialYearListItemWrap {
595
606
  Id?: number;
596
607
  ToDate: string;
597
608
  }[];
598
- MetaInformation?: {
599
- "@CurrentPage"?: number;
600
- "@TotalPages"?: number;
601
- "@TotalResources"?: number;
609
+ MetaInformation: {
610
+ "@CurrentPage": number;
611
+ "@TotalPages": number;
612
+ "@TotalResources": number;
602
613
  };
603
614
  }
604
615
  interface FortnoxBfFinancialYearSingleItemWrap {
@@ -621,43 +632,48 @@ interface FortnoxBfFinancialYearSinglePayloadItemWrap {
621
632
  };
622
633
  }
623
634
  interface FortnoxBfPreDefinedVoucherSeriesListItemWrap {
624
- PreDefinedVoucherSeriesCollection?: {
635
+ PreDefinedVoucherSeriesCollection: {
625
636
  "@url"?: string;
626
637
  Name?: string;
627
638
  VoucherSeries: string;
628
639
  }[];
640
+ MetaInformation: {
641
+ "@CurrentPage": number;
642
+ "@TotalPages": number;
643
+ "@TotalResources": number;
644
+ };
629
645
  }
630
646
  interface FortnoxBfPreDefinedVoucherSeriesSingleItemWrap {
631
- PreDefinedVoucherSeries?: {
647
+ PreDefinedVoucherSeries: {
632
648
  "@url"?: string;
633
649
  Name?: string;
634
650
  VoucherSeries: string;
635
651
  };
636
652
  }
637
653
  interface FortnoxBfPreDefinedVoucherSeriesSinglePayloadItemWrap {
638
- PreDefinedVoucherSeries?: {
654
+ PreDefinedVoucherSeries: {
639
655
  Name?: string;
640
656
  VoucherSeries: string;
641
657
  };
642
658
  }
643
659
  interface FortnoxBfVoucherListItemWrap {
644
- MetaInformation?: {
645
- "@CurrentPage"?: number;
646
- "@TotalPages"?: number;
647
- "@TotalResources"?: number;
660
+ MetaInformation: {
661
+ "@CurrentPage": number;
662
+ "@TotalPages": number;
663
+ "@TotalResources": number;
648
664
  };
649
- Vouchers?: {
650
- "@url"?: string;
651
- ApprovalState?: number;
652
- Comments?: string;
653
- CostCenter?: string;
654
- Description?: string;
655
- Project?: string;
656
- ReferenceNumber?: string;
657
- ReferenceType?: "INVOICE" | "SUPPLIERINVOICE" | "INVOICEPAYMENT" | "SUPPLIERPAYMENT" | "MANUAL" | "CASHINVOICE" | "ACCRUAL";
658
- TransactionDate?: string;
659
- VoucherNumber?: number;
660
- VoucherRows?: {
665
+ Vouchers: {
666
+ "@url": string;
667
+ ApprovalState: number;
668
+ Comments: string;
669
+ CostCenter: string;
670
+ Description: string;
671
+ Project: string;
672
+ ReferenceNumber: string;
673
+ ReferenceType: "INVOICE" | "SUPPLIERINVOICE" | "INVOICEPAYMENT" | "SUPPLIERPAYMENT" | "MANUAL" | "CASHINVOICE" | "ACCRUAL";
674
+ TransactionDate: string;
675
+ VoucherNumber: number;
676
+ VoucherRows: {
661
677
  Account: number;
662
678
  CostCenter?: string;
663
679
  Credit?: number;
@@ -668,17 +684,17 @@ interface FortnoxBfVoucherListItemWrap {
668
684
  Removed?: boolean;
669
685
  TransactionInformation?: string;
670
686
  }[];
671
- VoucherSeries?: string;
672
- Year?: number;
687
+ VoucherSeries: string;
688
+ Year: number;
673
689
  }[];
674
690
  }
675
691
  interface FortnoxBfVoucherSeriesListItemWrap {
676
- MetaInformation?: {
677
- "@CurrentPage"?: number;
678
- "@TotalPages"?: number;
679
- "@TotalResources"?: number;
692
+ MetaInformation: {
693
+ "@CurrentPage": number;
694
+ "@TotalPages": number;
695
+ "@TotalResources": number;
680
696
  };
681
- VoucherSeriesCollection?: {
697
+ VoucherSeriesCollection: {
682
698
  "@url"?: string;
683
699
  Approver?: {
684
700
  Id?: number;
@@ -715,7 +731,7 @@ interface FortnoxBfVoucherSeriesSinglePayloadItemWrap {
715
731
  };
716
732
  }
717
733
  interface FortnoxBfVoucherSingleItemWrap {
718
- Voucher?: {
734
+ Voucher: {
719
735
  "@url"?: string;
720
736
  ApprovalState?: number;
721
737
  Comments?: string;
@@ -766,7 +782,7 @@ interface FortnoxBfVoucherSingleItemWrap {
766
782
  };
767
783
  }
768
784
  interface FortnoxBfVoucherSinglePayloadItemWrap {
769
- Voucher?: {
785
+ Voucher: {
770
786
  ApprovalState?: number;
771
787
  Comments?: string;
772
788
  CostCenter?: string;
@@ -816,7 +832,7 @@ interface FortnoxBfVoucherSinglePayloadItemWrap {
816
832
  };
817
833
  }
818
834
  interface FortnoxCompanyInformationSingleItemWrap {
819
- CompanyInformation?: {
835
+ CompanyInformation: {
820
836
  Address?: string;
821
837
  City?: string;
822
838
  CompanyName?: string;
@@ -831,7 +847,7 @@ interface FortnoxCompanyInformationSingleItemWrap {
831
847
  };
832
848
  }
833
849
  interface FortnoxCompanyCompanySettingsResponseWrap {
834
- CompanySettings?: {
850
+ CompanySettings: {
835
851
  Address?: string;
836
852
  BG?: string;
837
853
  BIC?: string;
@@ -864,7 +880,7 @@ interface FortnoxCompanyCompanySettingsResponseWrap {
864
880
  };
865
881
  }
866
882
  interface FortnoxContractInvoiceContractAccrualListItemWrap {
867
- ContractAccruals?: {
883
+ ContractAccruals: {
868
884
  "@url"?: string;
869
885
  AccrualAccount?: number;
870
886
  AccrualRows?: {
@@ -883,14 +899,14 @@ interface FortnoxContractInvoiceContractAccrualListItemWrap {
883
899
  Total?: number;
884
900
  VATIncluded?: boolean;
885
901
  }[];
886
- MetaInformation?: {
887
- "@CurrentPage"?: number;
888
- "@TotalPages"?: number;
889
- "@TotalResources"?: number;
902
+ MetaInformation: {
903
+ "@CurrentPage": number;
904
+ "@TotalPages": number;
905
+ "@TotalResources": number;
890
906
  };
891
907
  }
892
908
  interface FortnoxContractInvoiceContractAccrualSingleItemWrap {
893
- ContractAccrual?: {
909
+ ContractAccrual: {
894
910
  "@url"?: string;
895
911
  AccrualAccount: number;
896
912
  /**
@@ -929,7 +945,7 @@ interface FortnoxContractInvoiceContractAccrualSingleItemWrap {
929
945
  };
930
946
  }
931
947
  interface FortnoxContractInvoiceContractAccrualSinglePayloadItemWrap {
932
- ContractAccrual?: {
948
+ ContractAccrual: {
933
949
  AccrualAccount: number;
934
950
  /**
935
951
  * @minItems 2
@@ -967,7 +983,7 @@ interface FortnoxContractInvoiceContractAccrualSinglePayloadItemWrap {
967
983
  };
968
984
  }
969
985
  interface FortnoxContractInvoiceContractCreatePayloadWrap {
970
- Contract?: {
986
+ Contract: {
971
987
  Active?: boolean;
972
988
  AdministrationFee?: number;
973
989
  Comments?: string;
@@ -1034,7 +1050,7 @@ interface FortnoxContractInvoiceContractCreatePayloadWrap {
1034
1050
  };
1035
1051
  }
1036
1052
  interface FortnoxContractInvoiceContractListResponseWrap {
1037
- Contracts?: {
1053
+ Contracts: {
1038
1054
  "@url"?: string;
1039
1055
  "@urlTaxReductionList"?: string;
1040
1056
  Active?: boolean;
@@ -1117,9 +1133,14 @@ interface FortnoxContractInvoiceContractListResponseWrap {
1117
1133
  YourOrderNumber?: string;
1118
1134
  YourReference?: string;
1119
1135
  }[];
1136
+ MetaInformation: {
1137
+ "@CurrentPage": number;
1138
+ "@TotalPages": number;
1139
+ "@TotalResources": number;
1140
+ };
1120
1141
  }
1121
1142
  interface FortnoxContractInvoiceContractResponseWrap {
1122
- Contract?: {
1143
+ Contract: {
1123
1144
  "@url"?: string;
1124
1145
  "@urlTaxReductionList"?: string;
1125
1146
  Active?: boolean;
@@ -1202,16 +1223,16 @@ interface FortnoxContractInvoiceContractResponseWrap {
1202
1223
  };
1203
1224
  }
1204
1225
  interface FortnoxContractInvoiceContractTemplateListResponseWrap {
1205
- ContractTemplates?: {
1206
- "@url"?: string;
1207
- AdministrationFee?: number;
1208
- Continuous?: boolean;
1209
- ContractLength?: number;
1210
- ContractTemplate?: number;
1211
- ContractTemplateName?: string;
1212
- Freight?: number;
1213
- InvoiceInterval?: number;
1214
- InvoiceRows?: {
1226
+ ContractTemplates: {
1227
+ "@url": string;
1228
+ AdministrationFee: number;
1229
+ Continuous: boolean;
1230
+ ContractLength: number;
1231
+ ContractTemplate: number;
1232
+ ContractTemplateName: string;
1233
+ Freight: number;
1234
+ InvoiceInterval: number;
1235
+ InvoiceRows: {
1215
1236
  AccountNumber?: number;
1216
1237
  ArticleNumber?: string;
1217
1238
  CostCenter?: string;
@@ -1224,18 +1245,23 @@ interface FortnoxContractInvoiceContractTemplateListResponseWrap {
1224
1245
  RowId?: string;
1225
1246
  Unit?: string;
1226
1247
  }[];
1227
- OurReference?: string;
1228
- PrintTemplate?: string;
1229
- Remarks?: string;
1230
- TemplateName?: string;
1231
- TemplateNumber?: number;
1232
- TermsOfDelivery?: string;
1233
- TermsOfPayment?: string;
1234
- WayOfDelivery?: string;
1248
+ OurReference: string;
1249
+ PrintTemplate: string;
1250
+ Remarks: string;
1251
+ TemplateName: string;
1252
+ TemplateNumber: number;
1253
+ TermsOfDelivery: string;
1254
+ TermsOfPayment: string;
1255
+ WayOfDelivery: string;
1235
1256
  }[];
1257
+ MetaInformation: {
1258
+ "@CurrentPage": number;
1259
+ "@TotalPages": number;
1260
+ "@TotalResources": number;
1261
+ };
1236
1262
  }
1237
1263
  interface FortnoxContractInvoiceContractTemplateResponseWrap {
1238
- ContractTemplate?: {
1264
+ ContractTemplate: {
1239
1265
  "@url"?: string;
1240
1266
  AdministrationFee?: number;
1241
1267
  Continuous?: boolean;
@@ -1266,7 +1292,7 @@ interface FortnoxContractInvoiceContractTemplateResponseWrap {
1266
1292
  };
1267
1293
  }
1268
1294
  interface FortnoxContractInvoiceContractTemplateSinglePayloadItemWrap {
1269
- ContractTemplate?: {
1295
+ ContractTemplate: {
1270
1296
  AdministrationFee?: number;
1271
1297
  Continuous?: boolean;
1272
1298
  ContractLength?: number;
@@ -1295,7 +1321,7 @@ interface FortnoxContractInvoiceContractTemplateSinglePayloadItemWrap {
1295
1321
  };
1296
1322
  }
1297
1323
  interface FortnoxContractInvoiceContractUpdateAndCreateInvoicePayloadWrap {
1298
- Contract?: {
1324
+ Contract: {
1299
1325
  Active?: boolean;
1300
1326
  AdministrationFee?: number;
1301
1327
  Comments?: string;
@@ -1361,7 +1387,7 @@ interface FortnoxContractInvoiceContractUpdateAndCreateInvoicePayloadWrap {
1361
1387
  };
1362
1388
  }
1363
1389
  interface FortnoxContractInvoiceContractUpdateAndFinishPayloadWrap {
1364
- Contract?: {
1390
+ Contract: {
1365
1391
  Active?: boolean;
1366
1392
  AdministrationFee?: number;
1367
1393
  Comments?: string;
@@ -1427,7 +1453,7 @@ interface FortnoxContractInvoiceContractUpdateAndFinishPayloadWrap {
1427
1453
  };
1428
1454
  }
1429
1455
  interface FortnoxContractInvoiceContractUpdateAndIncreaseInvoiceCountPayloadWrap {
1430
- Contract?: {
1456
+ Contract: {
1431
1457
  Active?: boolean;
1432
1458
  AdministrationFee?: number;
1433
1459
  Comments?: string;
@@ -1493,7 +1519,7 @@ interface FortnoxContractInvoiceContractUpdateAndIncreaseInvoiceCountPayloadWrap
1493
1519
  };
1494
1520
  }
1495
1521
  interface FortnoxContractInvoiceContractUpdatePayloadWrap {
1496
- Contract?: {
1522
+ Contract: {
1497
1523
  "@urlTaxReductionList"?: string;
1498
1524
  Active?: boolean;
1499
1525
  AdministrationFee?: number;
@@ -1575,16 +1601,21 @@ interface FortnoxContractInvoiceContractUpdatePayloadWrap {
1575
1601
  };
1576
1602
  }
1577
1603
  interface FortnoxCostCenterListItemWrap {
1578
- CostCenters?: {
1604
+ CostCenters: {
1579
1605
  "@url"?: string;
1580
1606
  Active?: boolean;
1581
1607
  Code: string;
1582
1608
  Description: string;
1583
1609
  Note?: string;
1584
1610
  }[];
1611
+ MetaInformation: {
1612
+ "@CurrentPage": number;
1613
+ "@TotalPages": number;
1614
+ "@TotalResources": number;
1615
+ };
1585
1616
  }
1586
1617
  interface FortnoxCostCenterSingleItemWrap {
1587
- CostCenter?: {
1618
+ CostCenter: {
1588
1619
  "@url"?: string;
1589
1620
  Active?: boolean;
1590
1621
  Code: string;
@@ -1593,7 +1624,7 @@ interface FortnoxCostCenterSingleItemWrap {
1593
1624
  };
1594
1625
  }
1595
1626
  interface FortnoxCostCenterSinglePayloadItemWrap {
1596
- CostCenter?: {
1627
+ CostCenter: {
1597
1628
  Active?: boolean;
1598
1629
  Code: string;
1599
1630
  Description: string;
@@ -1601,7 +1632,7 @@ interface FortnoxCostCenterSinglePayloadItemWrap {
1601
1632
  };
1602
1633
  }
1603
1634
  interface FortnoxCurrencyListItemWrap {
1604
- Currencies?: {
1635
+ Currencies: {
1605
1636
  "@url"?: string;
1606
1637
  BuyRate?: number;
1607
1638
  Code: string;
@@ -1611,6 +1642,11 @@ interface FortnoxCurrencyListItemWrap {
1611
1642
  SellRate?: number;
1612
1643
  Unit?: number;
1613
1644
  }[];
1645
+ MetaInformation: {
1646
+ "@CurrentPage": number;
1647
+ "@TotalPages": number;
1648
+ "@TotalResources": number;
1649
+ };
1614
1650
  }
1615
1651
  interface FortnoxCurrencySingleItemWrap {
1616
1652
  Currency: {
@@ -1636,11 +1672,16 @@ interface FortnoxCurrencySinglePayloadItemWrap {
1636
1672
  };
1637
1673
  }
1638
1674
  interface FortnoxDaArticleFileConnectionListItemWrap {
1639
- ArticleFileConnections?: {
1675
+ ArticleFileConnections: {
1640
1676
  "@url"?: string;
1641
1677
  ArticleNumber: string;
1642
1678
  FileId: string;
1643
1679
  }[];
1680
+ MetaInformation: {
1681
+ "@CurrentPage": number;
1682
+ "@TotalPages": number;
1683
+ "@TotalResources": number;
1684
+ };
1644
1685
  }
1645
1686
  interface FortnoxDaArticleFileConnectionSingleItemWrap {
1646
1687
  ArticleFileConnection: {
@@ -1661,21 +1702,26 @@ interface FortnoxDaAssetFileConnectionCreatePayload {
1661
1702
  Name?: string;
1662
1703
  }
1663
1704
  interface FortnoxDaAssetFileConnectionListItemWrap {
1664
- AssetFileConnections?: {
1705
+ AssetFileConnections: {
1665
1706
  "@url"?: string;
1666
1707
  AssetId?: string;
1667
1708
  FileId?: string;
1668
1709
  Name?: string;
1669
1710
  }[];
1711
+ MetaInformation: {
1712
+ "@CurrentPage": number;
1713
+ "@TotalPages": number;
1714
+ "@TotalResources": number;
1715
+ };
1670
1716
  }
1671
1717
  interface FortnoxDaEmailSenderTrustedWrap {
1672
- TrustedSender?: {
1718
+ TrustedSender: {
1673
1719
  Email: string;
1674
1720
  Id?: number;
1675
1721
  };
1676
1722
  }
1677
1723
  interface FortnoxDaEmailSendersWrap {
1678
- EmailSenders?: {
1724
+ EmailSenders: {
1679
1725
  RejectedSenders?: {
1680
1726
  Email: string;
1681
1727
  Id?: number;
@@ -1685,14 +1731,14 @@ interface FortnoxDaEmailSendersWrap {
1685
1731
  Id?: number;
1686
1732
  }[];
1687
1733
  };
1688
- MetaInformation?: {
1689
- "@CurrentPage"?: number;
1690
- "@TotalPages"?: number;
1691
- "@TotalResources"?: number;
1734
+ MetaInformation: {
1735
+ "@CurrentPage": number;
1736
+ "@TotalPages": number;
1737
+ "@TotalResources": number;
1692
1738
  };
1693
1739
  }
1694
1740
  interface FortnoxDaInboxFolderResponseWrap {
1695
- Folder?: {
1741
+ Folder: {
1696
1742
  "@url"?: string;
1697
1743
  Email?: string;
1698
1744
  Files?: {
@@ -1705,9 +1751,9 @@ interface FortnoxDaInboxFolderResponseWrap {
1705
1751
  Size?: number;
1706
1752
  }[];
1707
1753
  Folders?: {
1708
- "@url"?: string;
1709
- Email?: string;
1710
- Files?: {
1754
+ "@url": string;
1755
+ Email: string;
1756
+ Files: {
1711
1757
  "@url"?: string;
1712
1758
  ArchiveFileId?: string;
1713
1759
  Comments?: string;
@@ -1716,25 +1762,30 @@ interface FortnoxDaInboxFolderResponseWrap {
1716
1762
  Path?: string;
1717
1763
  Size?: number;
1718
1764
  }[];
1719
- Folders?: unknown[];
1720
- Id?: string;
1721
- Name?: string;
1765
+ Folders: unknown[];
1766
+ Id: string;
1767
+ Name: string;
1722
1768
  }[];
1723
1769
  Id?: string;
1724
1770
  Name: string;
1725
1771
  };
1726
1772
  }
1727
1773
  interface FortnoxDaSupplierInvoiceFileConnectionListItemWrap {
1728
- SupplierInvoiceFileConnections?: {
1774
+ SupplierInvoiceFileConnections: {
1729
1775
  "@url"?: string;
1730
1776
  FileId?: string;
1731
1777
  Name?: string;
1732
1778
  SupplierInvoiceNumber?: string;
1733
1779
  SupplierName?: string;
1734
1780
  }[];
1781
+ MetaInformation: {
1782
+ "@CurrentPage": number;
1783
+ "@TotalPages": number;
1784
+ "@TotalResources": number;
1785
+ };
1735
1786
  }
1736
1787
  interface FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap {
1737
- SupplierInvoiceFileConnection?: {
1788
+ SupplierInvoiceFileConnection: {
1738
1789
  "@url"?: string;
1739
1790
  FileId?: string;
1740
1791
  Name?: string;
@@ -1743,7 +1794,7 @@ interface FortnoxDaSupplierInvoiceFileConnectionSingleItemWrap {
1743
1794
  };
1744
1795
  }
1745
1796
  interface FortnoxDaSupplierInvoiceFileConnectionSinglePayloadItemWrap {
1746
- SupplierInvoiceFileConnection?: {
1797
+ SupplierInvoiceFileConnection: {
1747
1798
  FileId?: string;
1748
1799
  Name?: string;
1749
1800
  SupplierInvoiceNumber?: string;
@@ -1751,7 +1802,7 @@ interface FortnoxDaSupplierInvoiceFileConnectionSinglePayloadItemWrap {
1751
1802
  };
1752
1803
  }
1753
1804
  interface FortnoxDaVoucherFileConnectionListItemWrap {
1754
- VoucherFileConnections?: {
1805
+ VoucherFileConnections: {
1755
1806
  "@url"?: string;
1756
1807
  FileId: string;
1757
1808
  Name?: string;
@@ -1760,6 +1811,11 @@ interface FortnoxDaVoucherFileConnectionListItemWrap {
1760
1811
  VoucherSeries: string;
1761
1812
  VoucherYear?: number;
1762
1813
  }[];
1814
+ MetaInformation: {
1815
+ "@CurrentPage": number;
1816
+ "@TotalPages": number;
1817
+ "@TotalResources": number;
1818
+ };
1763
1819
  }
1764
1820
  interface FortnoxDaVoucherFileConnectionSingleItemWrap {
1765
1821
  VoucherFileConnection: {
@@ -1782,15 +1838,20 @@ interface FortnoxDaVoucherFileConnectionSinglePayloadItemWrap {
1782
1838
  };
1783
1839
  }
1784
1840
  interface FortnoxDeleteWrap {
1785
- Asset?: {
1841
+ Asset: {
1786
1842
  Date?: string;
1787
1843
  };
1788
1844
  }
1789
1845
  interface FortnoxDocumentTagListItemWrap {
1790
- Labels?: {
1846
+ Labels: {
1791
1847
  Description: string;
1792
1848
  Id?: number;
1793
1849
  }[];
1850
+ MetaInformation: {
1851
+ "@CurrentPage": number;
1852
+ "@TotalPages": number;
1853
+ "@TotalResources": number;
1854
+ };
1794
1855
  }
1795
1856
  interface FortnoxDocumentTagSingleItemWrap {
1796
1857
  Label: {
@@ -1805,7 +1866,7 @@ interface FortnoxDocumentTagSinglePayloadItemWrap {
1805
1866
  };
1806
1867
  }
1807
1868
  interface FortnoxEUVatLimitRegulationResponseWrap {
1808
- EUVatLimitRegulation?: {
1869
+ EUVatLimitRegulation: {
1809
1870
  IsOverLimit?: boolean;
1810
1871
  Limit?: number;
1811
1872
  TotalExclVat?: number;
@@ -1813,7 +1874,7 @@ interface FortnoxEUVatLimitRegulationResponseWrap {
1813
1874
  };
1814
1875
  }
1815
1876
  interface FortnoxFileStorageFolderSingleItemWrap {
1816
- Folder?: {
1877
+ Folder: {
1817
1878
  "@url"?: string;
1818
1879
  Email?: string;
1819
1880
  Files?: {
@@ -1826,9 +1887,9 @@ interface FortnoxFileStorageFolderSingleItemWrap {
1826
1887
  Size?: number;
1827
1888
  }[];
1828
1889
  Folders?: {
1829
- "@url"?: string;
1830
- Email?: string;
1831
- Files?: {
1890
+ "@url": string;
1891
+ Email: string;
1892
+ Files: {
1832
1893
  "@url"?: string;
1833
1894
  ArchiveFileId?: string;
1834
1895
  Comments?: string;
@@ -1837,21 +1898,26 @@ interface FortnoxFileStorageFolderSingleItemWrap {
1837
1898
  Path?: string;
1838
1899
  Size?: number;
1839
1900
  }[];
1840
- Folders?: unknown[];
1841
- Id?: string;
1842
- Name?: string;
1901
+ Folders: unknown[];
1902
+ Id: string;
1903
+ Name: string;
1843
1904
  }[];
1844
1905
  Id?: string;
1845
1906
  Name: string;
1846
1907
  };
1847
1908
  }
1848
1909
  interface FortnoxItemUrlConnectionListItemWrap {
1849
- ArticleUrlConnections?: {
1910
+ ArticleUrlConnections: {
1850
1911
  "@url"?: string;
1851
1912
  ArticleNumber: string;
1852
1913
  Id?: number;
1853
1914
  URLConnection: string;
1854
1915
  }[];
1916
+ MetaInformation: {
1917
+ "@CurrentPage": number;
1918
+ "@TotalPages": number;
1919
+ "@TotalResources": number;
1920
+ };
1855
1921
  }
1856
1922
  interface FortnoxItemUrlConnectionSingleItemWrap {
1857
1923
  ArticleUrlConnection: {
@@ -1869,7 +1935,7 @@ interface FortnoxItemUrlConnectionSinglePayloadItemWrap {
1869
1935
  };
1870
1936
  }
1871
1937
  interface FortnoxKfCustomerListItemWrap {
1872
- Customers?: {
1938
+ Customers: {
1873
1939
  "@url"?: string;
1874
1940
  Active?: boolean;
1875
1941
  Address1?: string;
@@ -1945,21 +2011,21 @@ interface FortnoxKfCustomerListItemWrap {
1945
2011
  YourReference?: string;
1946
2012
  ZipCode?: string;
1947
2013
  }[];
1948
- MetaInformation?: {
1949
- "@CurrentPage"?: number;
1950
- "@TotalPages"?: number;
1951
- "@TotalResources"?: number;
2014
+ MetaInformation: {
2015
+ "@CurrentPage": number;
2016
+ "@TotalPages": number;
2017
+ "@TotalResources": number;
1952
2018
  };
1953
2019
  }
1954
2020
  interface FortnoxKfCustomerReferenceRowRowWrap {
1955
- CustomerReferenceRow?: {
2021
+ CustomerReferenceRow: {
1956
2022
  CustomerNumber?: string;
1957
2023
  Id?: number;
1958
2024
  Reference?: string;
1959
2025
  };
1960
2026
  }
1961
2027
  interface FortnoxKfCustomerReferenceSingleItemWrap {
1962
- CustomerReference?: {
2028
+ CustomerReference: {
1963
2029
  CustomerReferenceRows?: {
1964
2030
  CustomerNumber?: string;
1965
2031
  Id?: number;
@@ -1968,7 +2034,7 @@ interface FortnoxKfCustomerReferenceSingleItemWrap {
1968
2034
  };
1969
2035
  }
1970
2036
  interface FortnoxKfCustomerSingleItemWrap {
1971
- Customer?: {
2037
+ Customer: {
1972
2038
  "@url"?: string;
1973
2039
  Active?: boolean;
1974
2040
  Address1?: string;
@@ -2045,7 +2111,7 @@ interface FortnoxKfCustomerSingleItemWrap {
2045
2111
  };
2046
2112
  }
2047
2113
  interface FortnoxKfCustomerSinglePayloadItemWrap {
2048
- Customer?: {
2114
+ Customer: {
2049
2115
  Active?: boolean;
2050
2116
  Address1?: string;
2051
2117
  Address2?: string;
@@ -2121,7 +2187,7 @@ interface FortnoxKfCustomerSinglePayloadItemWrap {
2121
2187
  };
2122
2188
  }
2123
2189
  interface FortnoxKfInvoiceAccrualListItemWrap {
2124
- InvoiceAccruals?: {
2190
+ InvoiceAccruals: {
2125
2191
  "@url"?: string;
2126
2192
  AccrualAccount?: number;
2127
2193
  Description: string;
@@ -2142,14 +2208,14 @@ interface FortnoxKfInvoiceAccrualListItemWrap {
2142
2208
  Total?: number;
2143
2209
  VATIncluded?: boolean;
2144
2210
  }[];
2145
- MetaInformation?: {
2146
- "@CurrentPage"?: number;
2147
- "@TotalPages"?: number;
2148
- "@TotalResources"?: number;
2211
+ MetaInformation: {
2212
+ "@CurrentPage": number;
2213
+ "@TotalPages": number;
2214
+ "@TotalResources": number;
2149
2215
  };
2150
2216
  }
2151
2217
  interface FortnoxKfInvoiceAccrualSingleItemWrap {
2152
- InvoiceAccrual?: {
2218
+ InvoiceAccrual: {
2153
2219
  "@url"?: string;
2154
2220
  AccrualAccount: number;
2155
2221
  Description: string;
@@ -2190,7 +2256,7 @@ interface FortnoxKfInvoiceAccrualSingleItemWrap {
2190
2256
  };
2191
2257
  }
2192
2258
  interface FortnoxKfInvoiceAccrualSinglePayloadItemWrap {
2193
- InvoiceAccrual?: {
2259
+ InvoiceAccrual: {
2194
2260
  AccrualAccount: number;
2195
2261
  Description: string;
2196
2262
  EndDate: string;
@@ -2229,142 +2295,8 @@ interface FortnoxKfInvoiceAccrualSinglePayloadItemWrap {
2229
2295
  VATIncluded?: boolean;
2230
2296
  };
2231
2297
  }
2232
- interface FortnoxKfInvoiceListResponseWrap {
2233
- Invoices?: {
2234
- "@url"?: string;
2235
- "@urlTaxReductionList"?: string;
2236
- AccountingMethod?: string;
2237
- Address1?: string;
2238
- Address2?: string;
2239
- AdministrationFee?: number;
2240
- AdministrationFeeVAT?: number;
2241
- Balance?: number;
2242
- BasisTaxReduction?: number;
2243
- Booked?: boolean;
2244
- Cancelled?: boolean;
2245
- City?: string;
2246
- Comments?: string;
2247
- ContractReference?: string;
2248
- ContributionPercent?: number;
2249
- ContributionValue?: number;
2250
- CostCenter?: string;
2251
- Country?: string;
2252
- Credit?: string;
2253
- CreditInvoiceReference?: string;
2254
- Currency?: string;
2255
- CurrencyRate?: number;
2256
- CurrencyUnit?: number;
2257
- CustomerName?: string;
2258
- CustomerNumber?: string;
2259
- DeliveryAddress1?: string;
2260
- DeliveryAddress2?: string;
2261
- DeliveryCity?: string;
2262
- DeliveryCountry?: string;
2263
- DeliveryDate?: string;
2264
- DeliveryName?: string;
2265
- DeliveryZipCode?: string;
2266
- DocumentNumber?: string;
2267
- DueDate?: string;
2268
- EDIInformation?: {
2269
- EDIGlobalLocationNumber?: string;
2270
- EDIGlobalLocationNumberDelivery?: string;
2271
- EDIInvoiceExtra1?: string;
2272
- EDIInvoiceExtra2?: string;
2273
- EDIOurElectronicReference?: string;
2274
- EDIStatus?: string;
2275
- EDIYourElectronicReference?: string;
2276
- };
2277
- EUQuarterlyReport?: boolean;
2278
- EmailInformation?: {
2279
- EmailAddressBCC?: string;
2280
- EmailAddressCC?: string;
2281
- EmailAddressFrom?: string;
2282
- EmailAddressTo?: string;
2283
- EmailBody?: string;
2284
- EmailSubject?: string;
2285
- };
2286
- ExternalInvoiceReference1?: string;
2287
- ExternalInvoiceReference2?: string;
2288
- FinalPayDate?: string;
2289
- Freight?: number;
2290
- FreightVAT?: number;
2291
- Gross?: number;
2292
- HouseWork?: boolean;
2293
- InvoiceDate?: string;
2294
- InvoicePeriodEnd?: string;
2295
- InvoicePeriodStart?: string;
2296
- InvoiceReference?: string;
2297
- InvoiceRows?: {
2298
- AccountNumber?: number;
2299
- ArticleNumber?: string;
2300
- ContributionPercent?: string;
2301
- ContributionValue?: string;
2302
- Cost?: number;
2303
- CostCenter?: string;
2304
- DeliveredQuantity?: string;
2305
- Description?: string;
2306
- Discount?: number;
2307
- DiscountType?: "AMOUNT" | "PERCENT";
2308
- HouseWork?: boolean;
2309
- HouseWorkHoursToReport?: number;
2310
- HouseWorkType?: "CONSTRUCTION" | "ELECTRICITY" | "GLASSMETALWORK" | "GROUNDDRAINAGEWORK" | "MASONRY" | "PAINTINGWALLPAPERING" | "HVAC" | "MAJORAPPLIANCEREPAIR" | "MOVINGSERVICES" | "ITSERVICES" | "CLEANING" | "TEXTILECLOTHING" | "SNOWPLOWING" | "GARDENING" | "BABYSITTING" | "OTHERCARE" | "OTHERCOSTS" | "SOLARCELLS" | "STORAGESELFPRODUCEDELECTRICITY" | "CHARGINGSTATIONELECTRICVEHICLE" | "HOMEMAINTENANCE" | "FURNISHING" | "TRANSPORTATIONSERVICES" | "WASHINGANDCAREOFCLOTHING";
2311
- Price?: number;
2312
- PriceExcludingVAT?: number;
2313
- Project?: string;
2314
- RowId?: number;
2315
- StockPointCode?: string;
2316
- Total?: number;
2317
- TotalExcludingVAT?: number;
2318
- Unit?: string;
2319
- VAT?: number;
2320
- VATCode?: string;
2321
- }[];
2322
- InvoiceType?: "INVOICE" | "AGREEMENTINVOICE" | "INTRESTINVOICE" | "SUMMARYINVOICE" | "CASHINVOICE";
2323
- Labels?: {
2324
- Id?: number;
2325
- }[];
2326
- Language?: string;
2327
- LastRemindDate?: string;
2328
- Net?: number;
2329
- NotCompleted?: boolean;
2330
- NoxFinans?: boolean;
2331
- OCR?: string;
2332
- OfferReference?: string;
2333
- OrderReference?: string;
2334
- OrganisationNumber?: string;
2335
- OurReference?: string;
2336
- OutboundDate?: string;
2337
- PaymentWay?: string;
2338
- Phone1?: string;
2339
- Phone2?: string;
2340
- PriceList?: string;
2341
- PrintTemplate?: string;
2342
- Project?: string;
2343
- Remarks?: string;
2344
- Reminders?: number;
2345
- RoundOff?: number;
2346
- Sent?: boolean;
2347
- TaxReduction?: number;
2348
- TaxReductionType?: string;
2349
- TermsOfDelivery?: string;
2350
- TermsOfPayment?: string;
2351
- TimeBasisReference?: string;
2352
- Total?: number;
2353
- TotalToPay?: number;
2354
- TotalVAT?: number;
2355
- VATIncluded?: boolean;
2356
- VoucherNumber?: number;
2357
- VoucherSeries?: string;
2358
- VoucherYear?: number;
2359
- WarehouseReady?: boolean;
2360
- WayOfDelivery?: string;
2361
- YourOrderNumber?: string;
2362
- YourReference?: string;
2363
- ZipCode?: string;
2364
- }[];
2365
- }
2366
2298
  interface FortnoxKfInvoicePaymentListItemWrap {
2367
- InvoicePayments?: {
2299
+ InvoicePayments: {
2368
2300
  "@url"?: string;
2369
2301
  Amount?: number;
2370
2302
  AmountCurrency?: number;
@@ -2399,14 +2331,14 @@ interface FortnoxKfInvoicePaymentListItemWrap {
2399
2331
  TransactionInformation?: string;
2400
2332
  }[];
2401
2333
  }[];
2402
- MetaInformation?: {
2403
- "@CurrentPage"?: number;
2404
- "@TotalPages"?: number;
2405
- "@TotalResources"?: number;
2334
+ MetaInformation: {
2335
+ "@CurrentPage": number;
2336
+ "@TotalPages": number;
2337
+ "@TotalResources": number;
2406
2338
  };
2407
2339
  }
2408
2340
  interface FortnoxKfInvoicePaymentSingleItemWrap {
2409
- InvoicePayment?: {
2341
+ InvoicePayment: {
2410
2342
  "@url"?: string;
2411
2343
  Amount?: number;
2412
2344
  AmountCurrency?: number;
@@ -2442,7 +2374,7 @@ interface FortnoxKfInvoicePaymentSingleItemWrap {
2442
2374
  };
2443
2375
  }
2444
2376
  interface FortnoxKfInvoicePaymentSinglePayloadItemWrap {
2445
- InvoicePayment?: {
2377
+ InvoicePayment: {
2446
2378
  Amount?: number;
2447
2379
  AmountCurrency?: number;
2448
2380
  Booked?: boolean;
@@ -2477,7 +2409,7 @@ interface FortnoxKfInvoicePaymentSinglePayloadItemWrap {
2477
2409
  };
2478
2410
  }
2479
2411
  interface FortnoxKfInvoiceResponseWrap {
2480
- Invoice?: {
2412
+ Invoice: {
2481
2413
  "@url"?: string;
2482
2414
  "@urlTaxReductionList"?: string;
2483
2415
  AccountingMethod?: "ACCRUAL" | "CASH";
@@ -2612,7 +2544,7 @@ interface FortnoxKfInvoiceResponseWrap {
2612
2544
  };
2613
2545
  }
2614
2546
  interface FortnoxKfInvoiceSinglePayloadItemWrap {
2615
- Invoice?: {
2547
+ Invoice: {
2616
2548
  Address1?: string;
2617
2549
  Address2?: string;
2618
2550
  AdministrationFee?: number;
@@ -2703,7 +2635,7 @@ interface FortnoxKfInvoiceSinglePayloadItemWrap {
2703
2635
  };
2704
2636
  }
2705
2637
  interface FortnoxKfNoxInvoiceCreatePayloadWrap {
2706
- NoxFinansInvoice?: {
2638
+ NoxFinansInvoice: {
2707
2639
  BalanceIncludeFees?: number;
2708
2640
  BalanceIncludeFeesCurrency?: number;
2709
2641
  CurrentCapitalBalance?: number;
@@ -2720,7 +2652,7 @@ interface FortnoxKfNoxInvoiceCreatePayloadWrap {
2720
2652
  };
2721
2653
  }
2722
2654
  interface FortnoxKfNoxInvoiceSingleItemWrap {
2723
- NoxFinansInvoice?: {
2655
+ NoxFinansInvoice: {
2724
2656
  "@url": string;
2725
2657
  BalanceIncludeFees: number;
2726
2658
  BalanceIncludeFeesCurrency: number;
@@ -2737,12 +2669,12 @@ interface FortnoxKfNoxInvoiceSingleItemWrap {
2737
2669
  };
2738
2670
  }
2739
2671
  interface FortnoxKfNoxInvoiceUpdateAndPausePayloadWrap {
2740
- NoxFinansInvoice?: {
2672
+ NoxFinansInvoice: {
2741
2673
  PausedUntilDate: string;
2742
2674
  };
2743
2675
  }
2744
2676
  interface FortnoxKfNoxInvoiceUpdateAndRepostPaymentPayloadWrap {
2745
- NoxFinansInvoice?: {
2677
+ NoxFinansInvoice: {
2746
2678
  BookkeepPaymentInFortnox: boolean;
2747
2679
  ClientTakesFees: boolean;
2748
2680
  PaymentAmount: number;
@@ -2752,7 +2684,7 @@ interface FortnoxKfNoxInvoiceUpdateAndRepostPaymentPayloadWrap {
2752
2684
  };
2753
2685
  }
2754
2686
  interface FortnoxKfNoxInvoiceUpdateAndStopPayloadWrap {
2755
- NoxFinansInvoice?: {
2687
+ NoxFinansInvoice: {
2756
2688
  BalanceIncludeFees?: number;
2757
2689
  BalanceIncludeFeesCurrency?: number;
2758
2690
  CurrentCapitalBalance?: number;
@@ -2768,7 +2700,7 @@ interface FortnoxKfNoxInvoiceUpdateAndStopPayloadWrap {
2768
2700
  };
2769
2701
  }
2770
2702
  interface FortnoxKfNoxInvoiceUpdateAndTakeFeesPayloadWrap {
2771
- NoxFinansInvoice?: {
2703
+ NoxFinansInvoice: {
2772
2704
  BalanceIncludeFees?: number;
2773
2705
  BalanceIncludeFeesCurrency?: number;
2774
2706
  CurrentCapitalBalance?: number;
@@ -2784,7 +2716,7 @@ interface FortnoxKfNoxInvoiceUpdateAndTakeFeesPayloadWrap {
2784
2716
  };
2785
2717
  }
2786
2718
  interface FortnoxKfNoxInvoiceUpdateAndUnpausePayloadWrap {
2787
- NoxFinansInvoice?: {
2719
+ NoxFinansInvoice: {
2788
2720
  BalanceIncludeFees?: number;
2789
2721
  BalanceIncludeFeesCurrency?: number;
2790
2722
  CurrentCapitalBalance?: number;
@@ -2800,12 +2732,17 @@ interface FortnoxKfNoxInvoiceUpdateAndUnpausePayloadWrap {
2800
2732
  };
2801
2733
  }
2802
2734
  interface FortnoxKfTermsOfDeliveryListItemWrap {
2803
- TermsOfDeliveries?: {
2735
+ TermsOfDeliveries: {
2804
2736
  "@url"?: string;
2805
2737
  Code: string;
2806
2738
  Description: string;
2807
2739
  DescriptionEnglish?: string;
2808
2740
  }[];
2741
+ MetaInformation: {
2742
+ "@CurrentPage": number;
2743
+ "@TotalPages": number;
2744
+ "@TotalResources": number;
2745
+ };
2809
2746
  }
2810
2747
  interface FortnoxKfTermsOfDeliverySingleItemWrap {
2811
2748
  TermsOfDelivery: {
@@ -2823,12 +2760,12 @@ interface FortnoxKfTermsOfDeliverySinglePayloadItemWrap {
2823
2760
  };
2824
2761
  }
2825
2762
  interface FortnoxLfSupplierInvoiceAccrualListItemWrap {
2826
- MetaInformation?: {
2827
- "@CurrentPage"?: number;
2828
- "@TotalPages"?: number;
2829
- "@TotalResources"?: number;
2763
+ MetaInformation: {
2764
+ "@CurrentPage": number;
2765
+ "@TotalPages": number;
2766
+ "@TotalResources": number;
2830
2767
  };
2831
- SupplierInvoiceAccruals?: {
2768
+ SupplierInvoiceAccruals: {
2832
2769
  "@url"?: string;
2833
2770
  AccrualAccount?: number;
2834
2771
  CostAccount?: number;
@@ -2932,12 +2869,12 @@ interface FortnoxLfSupplierInvoiceAccrualSinglePayloadItemWrap {
2932
2869
  };
2933
2870
  }
2934
2871
  interface FortnoxLfSupplierInvoiceListItemWrap {
2935
- MetaInformation?: {
2936
- "@CurrentPage"?: number;
2937
- "@TotalPages"?: number;
2938
- "@TotalResources"?: number;
2872
+ MetaInformation: {
2873
+ "@CurrentPage": number;
2874
+ "@TotalPages": number;
2875
+ "@TotalResources": number;
2939
2876
  };
2940
- SupplierInvoices?: {
2877
+ SupplierInvoices: {
2941
2878
  "@url"?: string;
2942
2879
  AccountingMethod?: string;
2943
2880
  AdministrationFee?: number;
@@ -3006,12 +2943,12 @@ interface FortnoxLfSupplierInvoiceListItemWrap {
3006
2943
  }[];
3007
2944
  }
3008
2945
  interface FortnoxLfSupplierInvoicePaymentListItemWrap {
3009
- MetaInformation?: {
3010
- "@CurrentPage"?: number;
3011
- "@TotalPages"?: number;
3012
- "@TotalResources"?: number;
2946
+ MetaInformation: {
2947
+ "@CurrentPage": number;
2948
+ "@TotalPages": number;
2949
+ "@TotalResources": number;
3013
2950
  };
3014
- SupplierInvoicePayments?: {
2951
+ SupplierInvoicePayments: {
3015
2952
  "@url"?: string;
3016
2953
  Amount?: number;
3017
2954
  AmountCurrency?: number;
@@ -3046,7 +2983,7 @@ interface FortnoxLfSupplierInvoicePaymentListItemWrap {
3046
2983
  }[];
3047
2984
  }
3048
2985
  interface FortnoxLfSupplierInvoicePaymentSingleItemWrap {
3049
- SupplierInvoicePayment?: {
2986
+ SupplierInvoicePayment: {
3050
2987
  "@url"?: string;
3051
2988
  Amount?: number;
3052
2989
  AmountCurrency?: number;
@@ -3080,7 +3017,7 @@ interface FortnoxLfSupplierInvoicePaymentSingleItemWrap {
3080
3017
  };
3081
3018
  }
3082
3019
  interface FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap {
3083
- SupplierInvoicePayment?: {
3020
+ SupplierInvoicePayment: {
3084
3021
  Amount?: number;
3085
3022
  AmountCurrency?: number;
3086
3023
  Booked?: boolean;
@@ -3113,7 +3050,7 @@ interface FortnoxLfSupplierInvoicePaymentSinglePayloadItemWrap {
3113
3050
  };
3114
3051
  }
3115
3052
  interface FortnoxLfSupplierInvoiceSingleItemWrap {
3116
- SupplierInvoice?: {
3053
+ SupplierInvoice: {
3117
3054
  "@url"?: string;
3118
3055
  AccountingMethod?: "ACCRUAL" | "CASH";
3119
3056
  AdministrationFee?: string;
@@ -3180,7 +3117,7 @@ interface FortnoxLfSupplierInvoiceSingleItemWrap {
3180
3117
  };
3181
3118
  }
3182
3119
  interface FortnoxLfSupplierInvoiceSinglePayloadItemWrap {
3183
- SupplierInvoice?: {
3120
+ SupplierInvoice: {
3184
3121
  AdministrationFee?: string;
3185
3122
  Comments?: string;
3186
3123
  CostCenter?: string;
@@ -3229,12 +3166,12 @@ interface FortnoxLfSupplierInvoiceSinglePayloadItemWrap {
3229
3166
  };
3230
3167
  }
3231
3168
  interface FortnoxLfSupplierListItemWrap {
3232
- MetaInformation?: {
3233
- "@CurrentPage"?: number;
3234
- "@TotalPages"?: number;
3235
- "@TotalResources"?: number;
3169
+ MetaInformation: {
3170
+ "@CurrentPage": number;
3171
+ "@TotalPages": number;
3172
+ "@TotalResources": number;
3236
3173
  };
3237
- Suppliers?: {
3174
+ Suppliers: {
3238
3175
  "@url"?: string;
3239
3176
  Active?: boolean;
3240
3177
  Address1?: string;
@@ -3281,7 +3218,7 @@ interface FortnoxLfSupplierListItemWrap {
3281
3218
  }[];
3282
3219
  }
3283
3220
  interface FortnoxLfSupplierSingleItemWrap {
3284
- Supplier?: {
3221
+ Supplier: {
3285
3222
  "@url"?: string;
3286
3223
  Active?: boolean;
3287
3224
  Address1?: string;
@@ -3327,7 +3264,7 @@ interface FortnoxLfSupplierSingleItemWrap {
3327
3264
  };
3328
3265
  }
3329
3266
  interface FortnoxLfSupplierSinglePayloadItemWrap {
3330
- Supplier?: {
3267
+ Supplier: {
3331
3268
  Active?: boolean;
3332
3269
  Address1?: string;
3333
3270
  Address2?: string;
@@ -3372,12 +3309,12 @@ interface FortnoxLfSupplierSinglePayloadItemWrap {
3372
3309
  };
3373
3310
  }
3374
3311
  interface FortnoxLockedPeriodSettingsSingleItemWrap {
3375
- LockedPeriod?: {
3312
+ LockedPeriod: {
3376
3313
  EndDate?: string;
3377
3314
  };
3378
3315
  }
3379
3316
  interface FortnoxLonAbsenceTransactionsListItemWrap {
3380
- AbsenceTransactions?: {
3317
+ AbsenceTransactions: {
3381
3318
  "@url"?: string;
3382
3319
  CauseCode: "ASK" | "FPE" | "FRA" | "HAV" | "KOM" | "MIL" | "NAR" | "OS1" | "OS2" | "OS3" | "OS4" | "OS5" | "PAP" | "PEM" | "PER" | "SEM" | "SJK" | "SMB" | "SVE" | "TJL" | "UTB" | "VAB";
3383
3320
  CostCenter?: string;
@@ -3389,9 +3326,14 @@ interface FortnoxLonAbsenceTransactionsListItemWrap {
3389
3326
  Project?: string;
3390
3327
  id?: string;
3391
3328
  }[];
3329
+ MetaInformation: {
3330
+ "@CurrentPage": number;
3331
+ "@TotalPages": number;
3332
+ "@TotalResources": number;
3333
+ };
3392
3334
  }
3393
3335
  interface FortnoxLonAbsenceTransactionsSingleItemWrap {
3394
- AbsenceTransaction?: {
3336
+ AbsenceTransaction: {
3395
3337
  "@url"?: string;
3396
3338
  CauseCode: "ASK" | "FPE" | "FRA" | "HAV" | "KOM" | "MIL" | "NAR" | "OS1" | "OS2" | "OS3" | "OS4" | "OS5" | "PAP" | "PEM" | "PER" | "SEM" | "SJK" | "SMB" | "SVE" | "TJL" | "UTB" | "VAB";
3397
3339
  CostCenter?: string;
@@ -3405,7 +3347,7 @@ interface FortnoxLonAbsenceTransactionsSingleItemWrap {
3405
3347
  };
3406
3348
  }
3407
3349
  interface FortnoxLonAbsenceTransactionsSinglePayloadItemWrap {
3408
- AbsenceTransaction?: {
3350
+ AbsenceTransaction: {
3409
3351
  CauseCode: "ASK" | "FPE" | "FRA" | "HAV" | "KOM" | "MIL" | "NAR" | "OS1" | "OS2" | "OS3" | "OS4" | "OS5" | "PAP" | "PEM" | "PER" | "SEM" | "SJK" | "SMB" | "SVE" | "TJL" | "UTB" | "VAB";
3410
3352
  CostCenter?: string;
3411
3353
  Date: string;
@@ -3417,7 +3359,7 @@ interface FortnoxLonAbsenceTransactionsSinglePayloadItemWrap {
3417
3359
  };
3418
3360
  }
3419
3361
  interface FortnoxLonAttendanceTransactionsListItemWrap {
3420
- AttendanceTransactions?: {
3362
+ AttendanceTransactions: {
3421
3363
  "@url"?: string;
3422
3364
  CauseCode: "ARB" | "BE2" | "BER" | "FLX" | "HLG" | "JO2" | "JOR" | "MER" | "OB1" | "OB2" | "OB3" | "OB4" | "OB5" | "OK0" | "OK1" | "OK2" | "OK3" | "OK4" | "OK5" | "OT1" | "OT2" | "OT3" | "OT4" | "OT5" | "RES" | "TID";
3423
3365
  CostCenter?: string;
@@ -3427,9 +3369,14 @@ interface FortnoxLonAttendanceTransactionsListItemWrap {
3427
3369
  Project?: string;
3428
3370
  id?: string;
3429
3371
  }[];
3372
+ MetaInformation: {
3373
+ "@CurrentPage": number;
3374
+ "@TotalPages": number;
3375
+ "@TotalResources": number;
3376
+ };
3430
3377
  }
3431
3378
  interface FortnoxLonAttendanceTransactionsSingleItemWrap {
3432
- AttendanceTransaction?: {
3379
+ AttendanceTransaction: {
3433
3380
  "@url"?: string;
3434
3381
  CauseCode: "ARB" | "BE2" | "BER" | "FLX" | "HLG" | "JO2" | "JOR" | "MER" | "OB1" | "OB2" | "OB3" | "OB4" | "OB5" | "OK0" | "OK1" | "OK2" | "OK3" | "OK4" | "OK5" | "OT1" | "OT2" | "OT3" | "OT4" | "OT5" | "RES" | "TID";
3435
3382
  CostCenter?: string;
@@ -3441,7 +3388,7 @@ interface FortnoxLonAttendanceTransactionsSingleItemWrap {
3441
3388
  };
3442
3389
  }
3443
3390
  interface FortnoxLonAttendanceTransactionsSinglePayloadItemWrap {
3444
- AttendanceTransaction?: {
3391
+ AttendanceTransaction: {
3445
3392
  CauseCode: "ARB" | "BE2" | "BER" | "FLX" | "HLG" | "JO2" | "JOR" | "MER" | "OB1" | "OB2" | "OB3" | "OB4" | "OB5" | "OK0" | "OK1" | "OK2" | "OK3" | "OK4" | "OK5" | "OT1" | "OT2" | "OT3" | "OT4" | "OT5" | "RES" | "TID";
3446
3393
  CostCenter?: string;
3447
3394
  Date: string;
@@ -3451,7 +3398,7 @@ interface FortnoxLonAttendanceTransactionsSinglePayloadItemWrap {
3451
3398
  };
3452
3399
  }
3453
3400
  interface FortnoxLonEmployeeListItemWrap {
3454
- Employees?: {
3401
+ Employees: {
3455
3402
  "@url"?: string;
3456
3403
  ATFValue?: number;
3457
3404
  ATKValue?: number;
@@ -3472,10 +3419,10 @@ interface FortnoxLonEmployeeListItemWrap {
3472
3419
  CurrentCompBalance?: number;
3473
3420
  CurrentFlexBalance?: number;
3474
3421
  DatedSalarySupplements?: {
3475
- EmployeeId?: string;
3476
- FirstDay?: string;
3477
- FixedSalarySupplement?: number;
3478
- VariableSalarySupplement?: number;
3422
+ EmployeeId: string;
3423
+ FirstDay: string;
3424
+ FixedSalarySupplement: number;
3425
+ VariableSalarySupplement: number;
3479
3426
  }[];
3480
3427
  DatedSchedules?: {
3481
3428
  EmployeeId: string;
@@ -3491,9 +3438,9 @@ interface FortnoxLonEmployeeListItemWrap {
3491
3438
  Email: string;
3492
3439
  EmployedTo?: string;
3493
3440
  EmployeeCategories?: {
3494
- Name?: string;
3495
- Value?: string;
3496
- value?: string;
3441
+ Name: string;
3442
+ Value: string;
3443
+ value: string;
3497
3444
  }[];
3498
3445
  EmployeeChildren?: {
3499
3446
  ApprovedDays: number;
@@ -3608,14 +3555,14 @@ interface FortnoxLonEmployeeListItemWrap {
3608
3555
  VacationDaysUnpaid?: number;
3609
3556
  WorkingTimeEnumeration?: string;
3610
3557
  }[];
3611
- MetaInformation?: {
3612
- "@CurrentPage"?: number;
3613
- "@TotalPages"?: number;
3614
- "@TotalResources"?: number;
3558
+ MetaInformation: {
3559
+ "@CurrentPage": number;
3560
+ "@TotalPages": number;
3561
+ "@TotalResources": number;
3615
3562
  };
3616
3563
  }
3617
3564
  interface FortnoxLonEmployeeSingleItemWrap {
3618
- Employee?: {
3565
+ Employee: {
3619
3566
  ATFValue?: number;
3620
3567
  ATKValue?: number;
3621
3568
  AbsenceHoursNonVacationBased?: number;
@@ -3635,10 +3582,10 @@ interface FortnoxLonEmployeeSingleItemWrap {
3635
3582
  CurrentCompBalance?: number;
3636
3583
  CurrentFlexBalance?: number;
3637
3584
  DatedSalarySupplements?: {
3638
- EmployeeId?: string;
3639
- FirstDay?: string;
3640
- FixedSalarySupplement?: number;
3641
- VariableSalarySupplement?: number;
3585
+ EmployeeId: string;
3586
+ FirstDay: string;
3587
+ FixedSalarySupplement: number;
3588
+ VariableSalarySupplement: number;
3642
3589
  }[];
3643
3590
  DatedSchedules?: {
3644
3591
  EmployeeId: string;
@@ -3654,9 +3601,9 @@ interface FortnoxLonEmployeeSingleItemWrap {
3654
3601
  Email: string;
3655
3602
  EmployedTo?: string;
3656
3603
  EmployeeCategories?: {
3657
- Name?: string;
3658
- Value?: string;
3659
- value?: string;
3604
+ Name: string;
3605
+ Value: string;
3606
+ value: string;
3660
3607
  }[];
3661
3608
  EmployeeChildren?: {
3662
3609
  ApprovedDays: number;
@@ -3773,7 +3720,7 @@ interface FortnoxLonEmployeeSingleItemWrap {
3773
3720
  };
3774
3721
  }
3775
3722
  interface FortnoxLonEmployeeSinglePayloadItemWrap {
3776
- Employee?: {
3723
+ Employee: {
3777
3724
  ATFValue?: number;
3778
3725
  ATKValue?: number;
3779
3726
  AbsenceHoursNonVacationBased?: number;
@@ -3926,39 +3873,39 @@ interface FortnoxLonEmployeeSinglePayloadItemWrap {
3926
3873
  };
3927
3874
  }
3928
3875
  interface FortnoxLonExpensesListItemWrap {
3929
- Expenses?: {
3876
+ Expenses: {
3930
3877
  "@url"?: string;
3931
3878
  Account: number;
3932
3879
  Code: string;
3933
3880
  Text: string;
3934
3881
  }[];
3935
- MetaInformation?: {
3936
- "@CurrentPage"?: number;
3937
- "@TotalPages"?: number;
3938
- "@TotalResources"?: number;
3882
+ MetaInformation: {
3883
+ "@CurrentPage": number;
3884
+ "@TotalPages": number;
3885
+ "@TotalResources": number;
3939
3886
  };
3940
3887
  }
3941
3888
  interface FortnoxLonExpensesSingleItemWrap {
3942
- Expense?: {
3889
+ Expense: {
3943
3890
  Account: number;
3944
3891
  Code: string;
3945
3892
  Text: string;
3946
3893
  };
3947
3894
  }
3948
3895
  interface FortnoxLonExpensesSinglePayloadItemWrap {
3949
- Expense?: {
3896
+ Expense: {
3950
3897
  Account: number;
3951
3898
  Code: string;
3952
3899
  Text: string;
3953
3900
  };
3954
3901
  }
3955
3902
  interface FortnoxLonSalaryTransactionsListItemWrap {
3956
- MetaInformation?: {
3957
- "@CurrentPage"?: number;
3958
- "@TotalPages"?: number;
3959
- "@TotalResources"?: number;
3903
+ MetaInformation: {
3904
+ "@CurrentPage": number;
3905
+ "@TotalPages": number;
3906
+ "@TotalResources": number;
3960
3907
  };
3961
- SalaryTransactions?: {
3908
+ SalaryTransactions: {
3962
3909
  "@url"?: string;
3963
3910
  Amount?: string;
3964
3911
  CostCenter?: string;
@@ -4007,7 +3954,7 @@ interface FortnoxLonSalaryTransactionsSinglePayloadItemWrap {
4007
3954
  };
4008
3955
  }
4009
3956
  interface FortnoxLonScheduleTimeSingleItemWrap {
4010
- ScheduleTime?: {
3957
+ ScheduleTime: {
4011
3958
  Date?: string;
4012
3959
  EmployeeId?: string;
4013
3960
  Hours?: string;
@@ -4020,7 +3967,7 @@ interface FortnoxLonScheduleTimeSingleItemWrap {
4020
3967
  };
4021
3968
  }
4022
3969
  interface FortnoxLonScheduleTimeSinglePayloadItemWrap {
4023
- ScheduleTime?: {
3970
+ ScheduleTime: {
4024
3971
  Date?: string;
4025
3972
  EmployeeId?: string;
4026
3973
  Hours?: string;
@@ -4033,7 +3980,7 @@ interface FortnoxLonScheduleTimeSinglePayloadItemWrap {
4033
3980
  };
4034
3981
  }
4035
3982
  interface FortnoxLonVacationDebtBasisSingleItemWrap {
4036
- VacationDebtBasis?: {
3983
+ VacationDebtBasis: {
4037
3984
  Employees?: {
4038
3985
  DaysEarned?: number;
4039
3986
  DaysSaved?: number;
@@ -4061,7 +4008,7 @@ interface FortnoxLonVacationDebtBasisSingleItemWrap {
4061
4008
  };
4062
4009
  }
4063
4010
  interface FortnoxMeSingleItemWrap {
4064
- Me?: {
4011
+ Me: {
4065
4012
  Email?: string;
4066
4013
  Id?: string;
4067
4014
  Locale?: string;
@@ -4070,12 +4017,17 @@ interface FortnoxMeSingleItemWrap {
4070
4017
  };
4071
4018
  }
4072
4019
  interface FortnoxModeOfPaymentListItemWrap {
4073
- ModesOfPayments?: {
4020
+ ModesOfPayments: {
4074
4021
  "@url"?: string;
4075
4022
  AccountNumber: string;
4076
4023
  Code?: string;
4077
4024
  Description?: string;
4078
4025
  }[];
4026
+ MetaInformation: {
4027
+ "@CurrentPage": number;
4028
+ "@TotalPages": number;
4029
+ "@TotalResources": number;
4030
+ };
4079
4031
  }
4080
4032
  interface FortnoxModeOfPaymentSingleItemWrap {
4081
4033
  ModeOfPayment: {
@@ -4093,7 +4045,7 @@ interface FortnoxModeOfPaymentSinglePayloadItemWrap {
4093
4045
  };
4094
4046
  }
4095
4047
  interface FortnoxOfferOfferListResponseWrap {
4096
- Offers?: {
4048
+ Offers: {
4097
4049
  "@url"?: string;
4098
4050
  "@urlTaxReductionList"?: string;
4099
4051
  Address1?: string;
@@ -4188,9 +4140,14 @@ interface FortnoxOfferOfferListResponseWrap {
4188
4140
  YourReferenceNumber?: string;
4189
4141
  ZipCode?: string;
4190
4142
  }[];
4143
+ MetaInformation: {
4144
+ "@CurrentPage": number;
4145
+ "@TotalPages": number;
4146
+ "@TotalResources": number;
4147
+ };
4191
4148
  }
4192
4149
  interface FortnoxOfferOfferResponseWrap {
4193
- Offer?: {
4150
+ Offer: {
4194
4151
  "@url"?: string;
4195
4152
  "@urlTaxReductionList"?: string;
4196
4153
  Address1?: string;
@@ -4287,7 +4244,7 @@ interface FortnoxOfferOfferResponseWrap {
4287
4244
  };
4288
4245
  }
4289
4246
  interface FortnoxOfferOfferSinglePayloadItemWrap {
4290
- Offer?: {
4247
+ Offer: {
4291
4248
  Address1?: string;
4292
4249
  Address2?: string;
4293
4250
  AdministrationFee?: number;
@@ -4365,7 +4322,7 @@ interface FortnoxOfferOfferSinglePayloadItemWrap {
4365
4322
  };
4366
4323
  }
4367
4324
  interface FortnoxOrderOrderListResponseWrap {
4368
- Orders?: {
4325
+ Orders: {
4369
4326
  "@url"?: string;
4370
4327
  "@urlTaxReductionList"?: string;
4371
4328
  Address1?: string;
@@ -4473,9 +4430,14 @@ interface FortnoxOrderOrderListResponseWrap {
4473
4430
  YourReference?: string;
4474
4431
  ZipCode?: string;
4475
4432
  }[];
4433
+ MetaInformation: {
4434
+ "@CurrentPage": number;
4435
+ "@TotalPages": number;
4436
+ "@TotalResources": number;
4437
+ };
4476
4438
  }
4477
4439
  interface FortnoxOrderOrderResponseWrap {
4478
- Order?: {
4440
+ Order: {
4479
4441
  "@url"?: string;
4480
4442
  "@urlTaxReductionList"?: string;
4481
4443
  Address1?: string;
@@ -4585,7 +4547,7 @@ interface FortnoxOrderOrderResponseWrap {
4585
4547
  };
4586
4548
  }
4587
4549
  interface FortnoxOrderOrderSinglePayloadItemWrap {
4588
- Order?: {
4550
+ Order: {
4589
4551
  Address1?: string;
4590
4552
  Address2?: string;
4591
4553
  AdministrationFee?: number;
@@ -4668,11 +4630,16 @@ interface FortnoxOrderOrderSinglePayloadItemWrap {
4668
4630
  };
4669
4631
  }
4670
4632
  interface FortnoxPreDefinedAccountListItemWrap {
4671
- PreDefinedAccounts?: {
4633
+ PreDefinedAccounts: {
4672
4634
  "@url"?: string;
4673
4635
  Account: number;
4674
4636
  Name?: string;
4675
4637
  }[];
4638
+ MetaInformation: {
4639
+ "@CurrentPage": number;
4640
+ "@TotalPages": number;
4641
+ "@TotalResources": number;
4642
+ };
4676
4643
  }
4677
4644
  interface FortnoxPreDefinedAccountSingleItemWrap {
4678
4645
  PreDefinedAccount: {
@@ -4688,12 +4655,12 @@ interface FortnoxPreDefinedAccountSinglePayloadItemWrap {
4688
4655
  };
4689
4656
  }
4690
4657
  interface FortnoxPriceListItemWrap {
4691
- MetaInformation?: {
4692
- "@CurrentPage"?: number;
4693
- "@TotalPages"?: number;
4694
- "@TotalResources"?: number;
4658
+ MetaInformation: {
4659
+ "@CurrentPage": number;
4660
+ "@TotalPages": number;
4661
+ "@TotalResources": number;
4695
4662
  };
4696
- Prices?: {
4663
+ Prices: {
4697
4664
  "@url"?: string;
4698
4665
  ArticleNumber: string;
4699
4666
  Date?: string;
@@ -4704,13 +4671,18 @@ interface FortnoxPriceListItemWrap {
4704
4671
  }[];
4705
4672
  }
4706
4673
  interface FortnoxPriceListListItemWrap {
4707
- PriceLists?: {
4674
+ PriceLists: {
4708
4675
  "@url"?: string;
4709
4676
  Code: string;
4710
4677
  Comments?: string;
4711
4678
  Description: string;
4712
4679
  PreSelected?: boolean;
4713
4680
  }[];
4681
+ MetaInformation: {
4682
+ "@CurrentPage": number;
4683
+ "@TotalPages": number;
4684
+ "@TotalResources": number;
4685
+ };
4714
4686
  }
4715
4687
  interface FortnoxPriceListSingleItemWrap {
4716
4688
  PriceList: {
@@ -4720,6 +4692,11 @@ interface FortnoxPriceListSingleItemWrap {
4720
4692
  Description: string;
4721
4693
  PreSelected?: boolean;
4722
4694
  };
4695
+ MetaInformation: {
4696
+ "@CurrentPage": number;
4697
+ "@TotalPages": number;
4698
+ "@TotalResources": number;
4699
+ };
4723
4700
  }
4724
4701
  interface FortnoxPriceListSinglePayloadItemWrap {
4725
4702
  PriceList: {
@@ -4728,9 +4705,14 @@ interface FortnoxPriceListSinglePayloadItemWrap {
4728
4705
  Description: string;
4729
4706
  PreSelected?: boolean;
4730
4707
  };
4708
+ MetaInformation: {
4709
+ "@CurrentPage": number;
4710
+ "@TotalPages": number;
4711
+ "@TotalResources": number;
4712
+ };
4731
4713
  }
4732
4714
  interface FortnoxPriceSingleItemWrap {
4733
- Price?: {
4715
+ Price: {
4734
4716
  "@url"?: string;
4735
4717
  ArticleNumber: string;
4736
4718
  Date?: string;
@@ -4741,7 +4723,7 @@ interface FortnoxPriceSingleItemWrap {
4741
4723
  };
4742
4724
  }
4743
4725
  interface FortnoxPriceSinglePayloadItemWrap {
4744
- Price?: {
4726
+ Price: {
4745
4727
  ArticleNumber: string;
4746
4728
  Date?: string;
4747
4729
  FromQuantity?: number;
@@ -4751,18 +4733,23 @@ interface FortnoxPriceSinglePayloadItemWrap {
4751
4733
  };
4752
4734
  }
4753
4735
  interface FortnoxPrintTemplateListItemWrap {
4754
- PrintTemplates?: {
4736
+ PrintTemplates: {
4755
4737
  Name?: string;
4756
4738
  Template: string;
4757
4739
  }[];
4740
+ MetaInformation: {
4741
+ "@CurrentPage": number;
4742
+ "@TotalPages": number;
4743
+ "@TotalResources": number;
4744
+ };
4758
4745
  }
4759
4746
  interface FortnoxProjectProjectListItemWrap {
4760
- MetaInformation?: {
4761
- "@CurrentPage"?: number;
4762
- "@TotalPages"?: number;
4763
- "@TotalResources"?: number;
4747
+ MetaInformation: {
4748
+ "@CurrentPage": number;
4749
+ "@TotalPages": number;
4750
+ "@TotalResources": number;
4764
4751
  };
4765
- Projects?: {
4752
+ Projects: {
4766
4753
  "@url"?: string;
4767
4754
  Comments?: string;
4768
4755
  ContactPerson?: string;
@@ -4775,7 +4762,7 @@ interface FortnoxProjectProjectListItemWrap {
4775
4762
  }[];
4776
4763
  }
4777
4764
  interface FortnoxProjectProjectSingleItemWrap {
4778
- Project?: {
4765
+ Project: {
4779
4766
  "@url"?: string;
4780
4767
  Comments?: string;
4781
4768
  ContactPerson?: string;
@@ -4788,7 +4775,7 @@ interface FortnoxProjectProjectSingleItemWrap {
4788
4775
  };
4789
4776
  }
4790
4777
  interface FortnoxProjectProjectSinglePayloadItemWrap {
4791
- Project?: {
4778
+ Project: {
4792
4779
  Comments?: string;
4793
4780
  ContactPerson?: string;
4794
4781
  Description: string;
@@ -4800,7 +4787,7 @@ interface FortnoxProjectProjectSinglePayloadItemWrap {
4800
4787
  };
4801
4788
  }
4802
4789
  interface FortnoxSinvoiceExternalUrlConnectionSingleItemWrap {
4803
- SupplierInvoiceExternalURLConnection?: {
4790
+ SupplierInvoiceExternalURLConnection: {
4804
4791
  "@url"?: string;
4805
4792
  ExternalURLConnection?: string;
4806
4793
  Id?: number;
@@ -4835,12 +4822,12 @@ interface FortnoxTaxReductionCreatePayloadWrap {
4835
4822
  };
4836
4823
  }
4837
4824
  interface FortnoxTaxReductionListItemWrap {
4838
- MetaInformation?: {
4839
- "@CurrentPage"?: number;
4840
- "@TotalPages"?: number;
4841
- "@TotalResources"?: number;
4825
+ MetaInformation: {
4826
+ "@CurrentPage": number;
4827
+ "@TotalPages": number;
4828
+ "@TotalResources": number;
4842
4829
  };
4843
- TaxReductions?: {
4830
+ TaxReductions: {
4844
4831
  "@url"?: string;
4845
4832
  ApprovedAmount?: number;
4846
4833
  AskedAmount?: number;
@@ -4912,12 +4899,12 @@ interface FortnoxTaxReductionUpdatePayloadWrap {
4912
4899
  };
4913
4900
  }
4914
4901
  interface FortnoxTermsOfPaymentListItemWrap {
4915
- MetaInformation?: {
4916
- "@CurrentPage"?: number;
4917
- "@TotalPages"?: number;
4918
- "@TotalResources"?: number;
4902
+ MetaInformation: {
4903
+ "@CurrentPage": number;
4904
+ "@TotalPages": number;
4905
+ "@TotalResources": number;
4919
4906
  };
4920
- TermsOfPayments?: {
4907
+ TermsOfPayments: {
4921
4908
  "@url"?: string;
4922
4909
  Code: string;
4923
4910
  Description: string;
@@ -4937,12 +4924,17 @@ interface FortnoxTermsOfPaymentSinglePayloadItemWrap {
4937
4924
  };
4938
4925
  }
4939
4926
  interface FortnoxUnitListItemWrap {
4940
- Units?: {
4927
+ Units: {
4941
4928
  "@url"?: string;
4942
4929
  Code: string;
4943
4930
  CodeEnglish?: string;
4944
4931
  Description: string;
4945
4932
  }[];
4933
+ MetaInformation: {
4934
+ "@CurrentPage": number;
4935
+ "@TotalPages": number;
4936
+ "@TotalResources": number;
4937
+ };
4946
4938
  }
4947
4939
  interface FortnoxUnitSingleItemWrap {
4948
4940
  Unit: {
@@ -4960,15 +4952,20 @@ interface FortnoxUnitSinglePayloadItemWrap {
4960
4952
  };
4961
4953
  }
4962
4954
  interface FortnoxWayOfDeliveryListItemWrap {
4963
- WayOfDeliveries?: {
4955
+ WayOfDeliveries: {
4964
4956
  "@url"?: string;
4965
4957
  Code: string;
4966
4958
  Description?: string;
4967
4959
  DescriptionEnglish?: string;
4968
4960
  }[];
4961
+ MetaInformation: {
4962
+ "@CurrentPage": number;
4963
+ "@TotalPages": number;
4964
+ "@TotalResources": number;
4965
+ };
4969
4966
  }
4970
4967
  interface FortnoxWayOfDeliverySingleItemWrap {
4971
- WayOfDelivery?: {
4968
+ WayOfDelivery: {
4972
4969
  "@url"?: string;
4973
4970
  Code: string;
4974
4971
  Description?: string;
@@ -4976,7 +4973,7 @@ interface FortnoxWayOfDeliverySingleItemWrap {
4976
4973
  };
4977
4974
  }
4978
4975
  interface FortnoxWayOfDeliverySinglePayloadItemWrap {
4979
- WayOfDelivery?: {
4976
+ WayOfDelivery: {
4980
4977
  Code: string;
4981
4978
  Description?: string;
4982
4979
  DescriptionEnglish?: string;
@@ -5468,7 +5465,7 @@ interface WarehouseTenantInfo {
5468
5465
  tenantId?: number;
5469
5466
  }
5470
5467
  //#endregion
5471
- //#region src/types/official-routes.gen.d.ts
5468
+ //#region src/types/patched-routes.gen.d.ts
5472
5469
  interface Routes {
5473
5470
  "/3/absencetransactions": {
5474
5471
  get: {
@@ -7592,7 +7589,7 @@ interface Routes {
7592
7589
  body: never;
7593
7590
  };
7594
7591
  response: {
7595
- body: FortnoxKfInvoiceListResponseWrap;
7592
+ body: InvoiceListWrap;
7596
7593
  };
7597
7594
  };
7598
7595
  post: {
@@ -7619,7 +7616,7 @@ interface Routes {
7619
7616
  body: never;
7620
7617
  };
7621
7618
  response: {
7622
- body: FortnoxKfInvoiceResponseWrap;
7619
+ body: InvoiceResponse;
7623
7620
  };
7624
7621
  };
7625
7622
  put: {
@@ -12241,7 +12238,7 @@ interface Routes {
12241
12238
  };
12242
12239
  }
12243
12240
  //#endregion
12244
- //#region src/official.d.ts
12241
+ //#region src/patched.d.ts
12245
12242
  declare const initFortnox: {
12246
12243
  (options: {
12247
12244
  accessToken: string;
@@ -12254,6 +12251,18 @@ declare const initFortnox: {
12254
12251
  };
12255
12252
  }): FortnoxClient<Routes>;
12256
12253
  };
12254
+ declare const initFortnoxMini: {
12255
+ (options: {
12256
+ accessToken: string;
12257
+ }): FortnoxPathClient<Routes>;
12258
+ (options: {
12259
+ proxy: {
12260
+ baseUrl: string;
12261
+ apiKey: string;
12262
+ tenantId: string;
12263
+ };
12264
+ }): FortnoxPathClient<Routes>;
12265
+ };
12257
12266
  //#endregion
12258
- export { initFortnox as t };
12259
- //# sourceMappingURL=official-DeZGQsNS.d.mts.map
12267
+ export { initFortnoxMini as n, initFortnox as t };
12268
+ //# sourceMappingURL=patched-CChAT2O0.d.mts.map