@orvello/sdk 0.7.16 → 0.7.17

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.
package/dist/openapi.json CHANGED
@@ -94671,6 +94671,1831 @@
94671
94671
  "x-transport": "http"
94672
94672
  }
94673
94673
  },
94674
+ "/managing-companies/profile-changes/:companyId": {
94675
+ "get": {
94676
+ "operationId": "managing_companies_profile_changes",
94677
+ "tags": [
94678
+ "managing-companies"
94679
+ ],
94680
+ "summary": "Stammdaten-Zeitachse: Grundlinie, Änderungen, Berichtigungen und Pläne mit Stichtag und Erfassungszeit",
94681
+ "description": "Stammdaten-Zeitachse: Grundlinie, Änderungen, Berichtigungen und Pläne mit Stichtag und Erfassungszeit",
94682
+ "responses": {
94683
+ "200": {
94684
+ "description": "JSON response",
94685
+ "content": {
94686
+ "application/json": {
94687
+ "schema": {
94688
+ "type": "object",
94689
+ "properties": {
94690
+ "success": {
94691
+ "type": "boolean"
94692
+ },
94693
+ "message": {
94694
+ "anyOf": [
94695
+ {
94696
+ "type": "string"
94697
+ },
94698
+ {
94699
+ "type": "null"
94700
+ }
94701
+ ]
94702
+ },
94703
+ "code": {
94704
+ "anyOf": [
94705
+ {
94706
+ "type": "string"
94707
+ },
94708
+ {
94709
+ "type": "null"
94710
+ }
94711
+ ]
94712
+ },
94713
+ "data": {
94714
+ "anyOf": [
94715
+ {
94716
+ "type": "object",
94717
+ "properties": {
94718
+ "revision": {
94719
+ "type": "number"
94720
+ },
94721
+ "historySince": {
94722
+ "type": "string"
94723
+ },
94724
+ "today": {
94725
+ "type": "string"
94726
+ },
94727
+ "issuedInvoices": {
94728
+ "type": "boolean"
94729
+ },
94730
+ "values": {
94731
+ "type": "object",
94732
+ "additionalProperties": {
94733
+ "anyOf": [
94734
+ {
94735
+ "type": "string"
94736
+ },
94737
+ {
94738
+ "type": "null"
94739
+ }
94740
+ ]
94741
+ }
94742
+ },
94743
+ "fields": {
94744
+ "type": "array",
94745
+ "items": {
94746
+ "type": "object",
94747
+ "properties": {
94748
+ "field": {
94749
+ "type": "string",
94750
+ "enum": [
94751
+ "companyName",
94752
+ "companyLegalForm",
94753
+ "companyManagingDirector",
94754
+ "companyStreet",
94755
+ "companyStreetNr",
94756
+ "companyZip",
94757
+ "companyCity",
94758
+ "companyCountry",
94759
+ "companyEmail",
94760
+ "companyPhone",
94761
+ "companyWebsite",
94762
+ "companyCommercialRegister",
94763
+ "companyRegistrationCourt",
94764
+ "companyTaxId",
94765
+ "companyVatId",
94766
+ "bookkeepingBasis",
94767
+ "baseCurrency"
94768
+ ]
94769
+ },
94770
+ "label": {
94771
+ "type": "string"
94772
+ },
94773
+ "role": {
94774
+ "type": "string",
94775
+ "enum": [
94776
+ "admin",
94777
+ "editor"
94778
+ ]
94779
+ },
94780
+ "reasons": {
94781
+ "type": "array",
94782
+ "items": {
94783
+ "type": "string"
94784
+ }
94785
+ },
94786
+ "evidenceRequired": {
94787
+ "type": "boolean"
94788
+ },
94789
+ "publishedFix": {
94790
+ "type": "string",
94791
+ "enum": [
94792
+ "issuer_run",
94793
+ "single_review",
94794
+ "none"
94795
+ ]
94796
+ },
94797
+ "effective": {
94798
+ "anyOf": [
94799
+ {
94800
+ "type": "string",
94801
+ "enum": [
94802
+ "year_start",
94803
+ "setup_only"
94804
+ ]
94805
+ },
94806
+ {
94807
+ "type": "null"
94808
+ }
94809
+ ]
94810
+ },
94811
+ "onInvoice": {
94812
+ "type": "boolean"
94813
+ }
94814
+ },
94815
+ "required": [
94816
+ "field",
94817
+ "label",
94818
+ "role",
94819
+ "reasons",
94820
+ "evidenceRequired",
94821
+ "publishedFix",
94822
+ "effective",
94823
+ "onInvoice"
94824
+ ],
94825
+ "additionalProperties": false
94826
+ }
94827
+ },
94828
+ "reasons": {
94829
+ "type": "array",
94830
+ "items": {
94831
+ "type": "object",
94832
+ "properties": {
94833
+ "code": {
94834
+ "type": "string"
94835
+ },
94836
+ "label": {
94837
+ "type": "string"
94838
+ }
94839
+ },
94840
+ "required": [
94841
+ "code",
94842
+ "label"
94843
+ ],
94844
+ "additionalProperties": false
94845
+ }
94846
+ },
94847
+ "changes": {
94848
+ "type": "array",
94849
+ "items": {
94850
+ "type": "object",
94851
+ "properties": {
94852
+ "id": {
94853
+ "type": "number"
94854
+ },
94855
+ "managingCompanyId": {
94856
+ "type": "number"
94857
+ },
94858
+ "kind": {
94859
+ "type": "string",
94860
+ "enum": [
94861
+ "baseline",
94862
+ "setup",
94863
+ "change",
94864
+ "correction"
94865
+ ]
94866
+ },
94867
+ "reasonCode": {
94868
+ "type": "string",
94869
+ "enum": [
94870
+ "relocation",
94871
+ "tax_office_change",
94872
+ "tax_number_reassignment",
94873
+ "vat_id_assignment",
94874
+ "renaming",
94875
+ "umwg_conversion",
94876
+ "management_change",
94877
+ "register_change",
94878
+ "contact_update",
94879
+ "method_change",
94880
+ "entry_error",
94881
+ "new_legal_person",
94882
+ "initial_setup"
94883
+ ]
94884
+ },
94885
+ "effectiveFrom": {
94886
+ "anyOf": [
94887
+ {
94888
+ "type": "string"
94889
+ },
94890
+ {
94891
+ "type": "null"
94892
+ }
94893
+ ]
94894
+ },
94895
+ "changes": {
94896
+ "type": "array",
94897
+ "items": {
94898
+ "type": "object",
94899
+ "properties": {
94900
+ "field": {
94901
+ "type": "string"
94902
+ },
94903
+ "from": {
94904
+ "anyOf": [
94905
+ {
94906
+ "type": "string"
94907
+ },
94908
+ {
94909
+ "type": "null"
94910
+ }
94911
+ ]
94912
+ },
94913
+ "to": {
94914
+ "anyOf": [
94915
+ {
94916
+ "type": "string"
94917
+ },
94918
+ {
94919
+ "type": "null"
94920
+ }
94921
+ ]
94922
+ }
94923
+ },
94924
+ "required": [
94925
+ "field",
94926
+ "from",
94927
+ "to"
94928
+ ],
94929
+ "additionalProperties": false
94930
+ }
94931
+ },
94932
+ "evidence": {
94933
+ "anyOf": [
94934
+ {
94935
+ "type": "string"
94936
+ },
94937
+ {
94938
+ "type": "null"
94939
+ }
94940
+ ]
94941
+ },
94942
+ "status": {
94943
+ "type": "string",
94944
+ "enum": [
94945
+ "planned",
94946
+ "applied",
94947
+ "cancelled"
94948
+ ]
94949
+ },
94950
+ "baseRevision": {
94951
+ "type": "number"
94952
+ },
94953
+ "createdBy": {
94954
+ "anyOf": [
94955
+ {
94956
+ "type": "number"
94957
+ },
94958
+ {
94959
+ "type": "null"
94960
+ }
94961
+ ]
94962
+ },
94963
+ "createdAt": {
94964
+ "anyOf": [
94965
+ {
94966
+ "type": "string",
94967
+ "format": "date-time"
94968
+ },
94969
+ {
94970
+ "type": "string"
94971
+ }
94972
+ ]
94973
+ },
94974
+ "appliedAt": {
94975
+ "anyOf": [
94976
+ {
94977
+ "anyOf": [
94978
+ {
94979
+ "type": "string",
94980
+ "format": "date-time"
94981
+ },
94982
+ {
94983
+ "type": "string"
94984
+ }
94985
+ ]
94986
+ },
94987
+ {
94988
+ "type": "null"
94989
+ }
94990
+ ]
94991
+ },
94992
+ "cancelledBy": {
94993
+ "anyOf": [
94994
+ {
94995
+ "type": "number"
94996
+ },
94997
+ {
94998
+ "type": "null"
94999
+ }
95000
+ ]
95001
+ },
95002
+ "cancelledAt": {
95003
+ "anyOf": [
95004
+ {
95005
+ "anyOf": [
95006
+ {
95007
+ "type": "string",
95008
+ "format": "date-time"
95009
+ },
95010
+ {
95011
+ "type": "string"
95012
+ }
95013
+ ]
95014
+ },
95015
+ {
95016
+ "type": "null"
95017
+ }
95018
+ ]
95019
+ },
95020
+ "statusNote": {
95021
+ "anyOf": [
95022
+ {
95023
+ "type": "string"
95024
+ },
95025
+ {
95026
+ "type": "null"
95027
+ }
95028
+ ]
95029
+ },
95030
+ "actorName": {
95031
+ "type": "string"
95032
+ }
95033
+ },
95034
+ "required": [
95035
+ "id",
95036
+ "managingCompanyId",
95037
+ "kind",
95038
+ "reasonCode",
95039
+ "effectiveFrom",
95040
+ "changes",
95041
+ "evidence",
95042
+ "status",
95043
+ "baseRevision",
95044
+ "createdBy",
95045
+ "createdAt",
95046
+ "appliedAt",
95047
+ "cancelledBy",
95048
+ "cancelledAt",
95049
+ "statusNote",
95050
+ "actorName"
95051
+ ],
95052
+ "additionalProperties": false
95053
+ }
95054
+ }
95055
+ },
95056
+ "required": [
95057
+ "revision",
95058
+ "historySince",
95059
+ "today",
95060
+ "issuedInvoices",
95061
+ "values",
95062
+ "fields",
95063
+ "reasons",
95064
+ "changes"
95065
+ ],
95066
+ "additionalProperties": false
95067
+ },
95068
+ {
95069
+ "type": "null"
95070
+ }
95071
+ ]
95072
+ }
95073
+ },
95074
+ "required": [
95075
+ "success",
95076
+ "data"
95077
+ ],
95078
+ "additionalProperties": false
95079
+ }
95080
+ }
95081
+ }
95082
+ }
95083
+ },
95084
+ "parameters": [
95085
+ {
95086
+ "name": "companyId",
95087
+ "in": "path",
95088
+ "required": true,
95089
+ "schema": {
95090
+ "type": "integer",
95091
+ "exclusiveMinimum": 0
95092
+ }
95093
+ }
95094
+ ],
95095
+ "security": [
95096
+ {
95097
+ "frontendBearer": []
95098
+ }
95099
+ ],
95100
+ "x-transport": "http"
95101
+ },
95102
+ "post": {
95103
+ "operationId": "managing_companies_profile_change_create",
95104
+ "tags": [
95105
+ "managing-companies"
95106
+ ],
95107
+ "summary": "Geprüfte Stammdatenänderung idempotent speichern; Stichtag in der Zukunft wird als Plan gespeichert",
95108
+ "description": "Geprüfte Stammdatenänderung idempotent speichern; Stichtag in der Zukunft wird als Plan gespeichert",
95109
+ "responses": {
95110
+ "200": {
95111
+ "description": "JSON response",
95112
+ "content": {
95113
+ "application/json": {
95114
+ "schema": {
95115
+ "type": "object",
95116
+ "properties": {
95117
+ "success": {
95118
+ "type": "boolean"
95119
+ },
95120
+ "message": {
95121
+ "anyOf": [
95122
+ {
95123
+ "type": "string"
95124
+ },
95125
+ {
95126
+ "type": "null"
95127
+ }
95128
+ ]
95129
+ },
95130
+ "code": {
95131
+ "anyOf": [
95132
+ {
95133
+ "type": "string"
95134
+ },
95135
+ {
95136
+ "type": "null"
95137
+ }
95138
+ ]
95139
+ },
95140
+ "data": {
95141
+ "anyOf": [
95142
+ {
95143
+ "type": "object",
95144
+ "properties": {
95145
+ "id": {
95146
+ "type": "number"
95147
+ },
95148
+ "managingCompanyId": {
95149
+ "type": "number"
95150
+ },
95151
+ "kind": {
95152
+ "type": "string",
95153
+ "enum": [
95154
+ "baseline",
95155
+ "setup",
95156
+ "change",
95157
+ "correction"
95158
+ ]
95159
+ },
95160
+ "reasonCode": {
95161
+ "type": "string",
95162
+ "enum": [
95163
+ "relocation",
95164
+ "tax_office_change",
95165
+ "tax_number_reassignment",
95166
+ "vat_id_assignment",
95167
+ "renaming",
95168
+ "umwg_conversion",
95169
+ "management_change",
95170
+ "register_change",
95171
+ "contact_update",
95172
+ "method_change",
95173
+ "entry_error",
95174
+ "new_legal_person",
95175
+ "initial_setup"
95176
+ ]
95177
+ },
95178
+ "effectiveFrom": {
95179
+ "anyOf": [
95180
+ {
95181
+ "type": "string"
95182
+ },
95183
+ {
95184
+ "type": "null"
95185
+ }
95186
+ ]
95187
+ },
95188
+ "changes": {
95189
+ "type": "array",
95190
+ "items": {
95191
+ "type": "object",
95192
+ "properties": {
95193
+ "field": {
95194
+ "type": "string"
95195
+ },
95196
+ "from": {
95197
+ "anyOf": [
95198
+ {
95199
+ "type": "string"
95200
+ },
95201
+ {
95202
+ "type": "null"
95203
+ }
95204
+ ]
95205
+ },
95206
+ "to": {
95207
+ "anyOf": [
95208
+ {
95209
+ "type": "string"
95210
+ },
95211
+ {
95212
+ "type": "null"
95213
+ }
95214
+ ]
95215
+ }
95216
+ },
95217
+ "required": [
95218
+ "field",
95219
+ "from",
95220
+ "to"
95221
+ ],
95222
+ "additionalProperties": false
95223
+ }
95224
+ },
95225
+ "evidence": {
95226
+ "anyOf": [
95227
+ {
95228
+ "type": "string"
95229
+ },
95230
+ {
95231
+ "type": "null"
95232
+ }
95233
+ ]
95234
+ },
95235
+ "status": {
95236
+ "type": "string",
95237
+ "enum": [
95238
+ "planned",
95239
+ "applied",
95240
+ "cancelled"
95241
+ ]
95242
+ },
95243
+ "baseRevision": {
95244
+ "type": "number"
95245
+ },
95246
+ "createdBy": {
95247
+ "anyOf": [
95248
+ {
95249
+ "type": "number"
95250
+ },
95251
+ {
95252
+ "type": "null"
95253
+ }
95254
+ ]
95255
+ },
95256
+ "createdAt": {
95257
+ "anyOf": [
95258
+ {
95259
+ "type": "string",
95260
+ "format": "date-time"
95261
+ },
95262
+ {
95263
+ "type": "string"
95264
+ }
95265
+ ]
95266
+ },
95267
+ "appliedAt": {
95268
+ "anyOf": [
95269
+ {
95270
+ "anyOf": [
95271
+ {
95272
+ "type": "string",
95273
+ "format": "date-time"
95274
+ },
95275
+ {
95276
+ "type": "string"
95277
+ }
95278
+ ]
95279
+ },
95280
+ {
95281
+ "type": "null"
95282
+ }
95283
+ ]
95284
+ },
95285
+ "cancelledBy": {
95286
+ "anyOf": [
95287
+ {
95288
+ "type": "number"
95289
+ },
95290
+ {
95291
+ "type": "null"
95292
+ }
95293
+ ]
95294
+ },
95295
+ "cancelledAt": {
95296
+ "anyOf": [
95297
+ {
95298
+ "anyOf": [
95299
+ {
95300
+ "type": "string",
95301
+ "format": "date-time"
95302
+ },
95303
+ {
95304
+ "type": "string"
95305
+ }
95306
+ ]
95307
+ },
95308
+ {
95309
+ "type": "null"
95310
+ }
95311
+ ]
95312
+ },
95313
+ "statusNote": {
95314
+ "anyOf": [
95315
+ {
95316
+ "type": "string"
95317
+ },
95318
+ {
95319
+ "type": "null"
95320
+ }
95321
+ ]
95322
+ }
95323
+ },
95324
+ "required": [
95325
+ "id",
95326
+ "managingCompanyId",
95327
+ "kind",
95328
+ "reasonCode",
95329
+ "effectiveFrom",
95330
+ "changes",
95331
+ "evidence",
95332
+ "status",
95333
+ "baseRevision",
95334
+ "createdBy",
95335
+ "createdAt",
95336
+ "appliedAt",
95337
+ "cancelledBy",
95338
+ "cancelledAt",
95339
+ "statusNote"
95340
+ ],
95341
+ "additionalProperties": false
95342
+ },
95343
+ {
95344
+ "type": "null"
95345
+ }
95346
+ ]
95347
+ }
95348
+ },
95349
+ "required": [
95350
+ "success",
95351
+ "data"
95352
+ ],
95353
+ "additionalProperties": false
95354
+ }
95355
+ }
95356
+ }
95357
+ }
95358
+ },
95359
+ "parameters": [
95360
+ {
95361
+ "name": "companyId",
95362
+ "in": "path",
95363
+ "required": true,
95364
+ "schema": {
95365
+ "type": "integer",
95366
+ "exclusiveMinimum": 0
95367
+ }
95368
+ }
95369
+ ],
95370
+ "requestBody": {
95371
+ "required": true,
95372
+ "content": {
95373
+ "application/json": {
95374
+ "schema": {
95375
+ "type": "object",
95376
+ "properties": {
95377
+ "requestKey": {
95378
+ "type": "string"
95379
+ },
95380
+ "previewHash": {
95381
+ "type": "string",
95382
+ "pattern": "^[a-f0-9]{64}$"
95383
+ },
95384
+ "baseRevision": {
95385
+ "type": "integer",
95386
+ "minimum": 0
95387
+ },
95388
+ "change": {
95389
+ "type": "object",
95390
+ "properties": {
95391
+ "kind": {
95392
+ "type": "string",
95393
+ "enum": [
95394
+ "change",
95395
+ "correction"
95396
+ ]
95397
+ },
95398
+ "reasonCode": {
95399
+ "type": "string",
95400
+ "enum": [
95401
+ "relocation",
95402
+ "tax_office_change",
95403
+ "tax_number_reassignment",
95404
+ "vat_id_assignment",
95405
+ "renaming",
95406
+ "umwg_conversion",
95407
+ "management_change",
95408
+ "register_change",
95409
+ "contact_update",
95410
+ "method_change",
95411
+ "entry_error",
95412
+ "new_legal_person",
95413
+ "initial_setup"
95414
+ ]
95415
+ },
95416
+ "effectiveFrom": {
95417
+ "anyOf": [
95418
+ {
95419
+ "type": "string",
95420
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
95421
+ },
95422
+ {
95423
+ "type": "null"
95424
+ }
95425
+ ]
95426
+ },
95427
+ "values": {
95428
+ "type": "object",
95429
+ "properties": {
95430
+ "companyName": {
95431
+ "anyOf": [
95432
+ {
95433
+ "type": "string",
95434
+ "maxLength": 500
95435
+ },
95436
+ {
95437
+ "type": "null"
95438
+ }
95439
+ ]
95440
+ },
95441
+ "companyLegalForm": {
95442
+ "anyOf": [
95443
+ {
95444
+ "type": "string",
95445
+ "maxLength": 500
95446
+ },
95447
+ {
95448
+ "type": "null"
95449
+ }
95450
+ ]
95451
+ },
95452
+ "companyManagingDirector": {
95453
+ "anyOf": [
95454
+ {
95455
+ "type": "string",
95456
+ "maxLength": 500
95457
+ },
95458
+ {
95459
+ "type": "null"
95460
+ }
95461
+ ]
95462
+ },
95463
+ "companyStreet": {
95464
+ "anyOf": [
95465
+ {
95466
+ "type": "string",
95467
+ "maxLength": 500
95468
+ },
95469
+ {
95470
+ "type": "null"
95471
+ }
95472
+ ]
95473
+ },
95474
+ "companyStreetNr": {
95475
+ "anyOf": [
95476
+ {
95477
+ "type": "string",
95478
+ "maxLength": 500
95479
+ },
95480
+ {
95481
+ "type": "null"
95482
+ }
95483
+ ]
95484
+ },
95485
+ "companyZip": {
95486
+ "anyOf": [
95487
+ {
95488
+ "type": "string",
95489
+ "maxLength": 500
95490
+ },
95491
+ {
95492
+ "type": "null"
95493
+ }
95494
+ ]
95495
+ },
95496
+ "companyCity": {
95497
+ "anyOf": [
95498
+ {
95499
+ "type": "string",
95500
+ "maxLength": 500
95501
+ },
95502
+ {
95503
+ "type": "null"
95504
+ }
95505
+ ]
95506
+ },
95507
+ "companyCountry": {
95508
+ "anyOf": [
95509
+ {
95510
+ "type": "string",
95511
+ "maxLength": 500
95512
+ },
95513
+ {
95514
+ "type": "null"
95515
+ }
95516
+ ]
95517
+ },
95518
+ "companyEmail": {
95519
+ "anyOf": [
95520
+ {
95521
+ "type": "string",
95522
+ "maxLength": 500
95523
+ },
95524
+ {
95525
+ "type": "null"
95526
+ }
95527
+ ]
95528
+ },
95529
+ "companyPhone": {
95530
+ "anyOf": [
95531
+ {
95532
+ "type": "string",
95533
+ "maxLength": 500
95534
+ },
95535
+ {
95536
+ "type": "null"
95537
+ }
95538
+ ]
95539
+ },
95540
+ "companyWebsite": {
95541
+ "anyOf": [
95542
+ {
95543
+ "type": "string",
95544
+ "maxLength": 500
95545
+ },
95546
+ {
95547
+ "type": "null"
95548
+ }
95549
+ ]
95550
+ },
95551
+ "companyCommercialRegister": {
95552
+ "anyOf": [
95553
+ {
95554
+ "type": "string",
95555
+ "maxLength": 500
95556
+ },
95557
+ {
95558
+ "type": "null"
95559
+ }
95560
+ ]
95561
+ },
95562
+ "companyRegistrationCourt": {
95563
+ "anyOf": [
95564
+ {
95565
+ "type": "string",
95566
+ "maxLength": 500
95567
+ },
95568
+ {
95569
+ "type": "null"
95570
+ }
95571
+ ]
95572
+ },
95573
+ "companyTaxId": {
95574
+ "anyOf": [
95575
+ {
95576
+ "type": "string",
95577
+ "maxLength": 500
95578
+ },
95579
+ {
95580
+ "type": "null"
95581
+ }
95582
+ ]
95583
+ },
95584
+ "companyVatId": {
95585
+ "anyOf": [
95586
+ {
95587
+ "type": "string",
95588
+ "maxLength": 500
95589
+ },
95590
+ {
95591
+ "type": "null"
95592
+ }
95593
+ ]
95594
+ },
95595
+ "bookkeepingBasis": {
95596
+ "anyOf": [
95597
+ {
95598
+ "type": "string",
95599
+ "maxLength": 500
95600
+ },
95601
+ {
95602
+ "type": "null"
95603
+ }
95604
+ ]
95605
+ },
95606
+ "baseCurrency": {
95607
+ "anyOf": [
95608
+ {
95609
+ "type": "string",
95610
+ "maxLength": 500
95611
+ },
95612
+ {
95613
+ "type": "null"
95614
+ }
95615
+ ]
95616
+ }
95617
+ },
95618
+ "additionalProperties": false
95619
+ },
95620
+ "evidence": {
95621
+ "anyOf": [
95622
+ {
95623
+ "type": "string",
95624
+ "maxLength": 2000
95625
+ },
95626
+ {
95627
+ "type": "null"
95628
+ }
95629
+ ]
95630
+ }
95631
+ },
95632
+ "required": [
95633
+ "kind",
95634
+ "reasonCode",
95635
+ "effectiveFrom",
95636
+ "values"
95637
+ ],
95638
+ "additionalProperties": false
95639
+ }
95640
+ },
95641
+ "required": [
95642
+ "requestKey",
95643
+ "previewHash",
95644
+ "baseRevision",
95645
+ "change"
95646
+ ],
95647
+ "additionalProperties": false
95648
+ }
95649
+ }
95650
+ }
95651
+ },
95652
+ "security": [
95653
+ {
95654
+ "frontendBearer": []
95655
+ }
95656
+ ],
95657
+ "x-transport": "http"
95658
+ }
95659
+ },
95660
+ "/managing-companies/profile-changes/:companyId/preview": {
95661
+ "post": {
95662
+ "operationId": "managing_companies_profile_change_preview",
95663
+ "tags": [
95664
+ "managing-companies"
95665
+ ],
95666
+ "summary": "Auswirkungen einer Stammdatenänderung mit Stichtag vor dem Speichern prüfen",
95667
+ "description": "Auswirkungen einer Stammdatenänderung mit Stichtag vor dem Speichern prüfen",
95668
+ "responses": {
95669
+ "200": {
95670
+ "description": "JSON response",
95671
+ "content": {
95672
+ "application/json": {
95673
+ "schema": {
95674
+ "type": "object",
95675
+ "properties": {
95676
+ "success": {
95677
+ "type": "boolean"
95678
+ },
95679
+ "message": {
95680
+ "anyOf": [
95681
+ {
95682
+ "type": "string"
95683
+ },
95684
+ {
95685
+ "type": "null"
95686
+ }
95687
+ ]
95688
+ },
95689
+ "code": {
95690
+ "anyOf": [
95691
+ {
95692
+ "type": "string"
95693
+ },
95694
+ {
95695
+ "type": "null"
95696
+ }
95697
+ ]
95698
+ },
95699
+ "data": {
95700
+ "anyOf": [
95701
+ {
95702
+ "type": "object",
95703
+ "properties": {
95704
+ "revision": {
95705
+ "type": "number"
95706
+ },
95707
+ "today": {
95708
+ "type": "string"
95709
+ },
95710
+ "historySince": {
95711
+ "type": "string"
95712
+ },
95713
+ "impacts": {
95714
+ "type": "array",
95715
+ "items": {
95716
+ "type": "object",
95717
+ "properties": {
95718
+ "field": {
95719
+ "type": "string",
95720
+ "enum": [
95721
+ "companyName",
95722
+ "companyLegalForm",
95723
+ "companyManagingDirector",
95724
+ "companyStreet",
95725
+ "companyStreetNr",
95726
+ "companyZip",
95727
+ "companyCity",
95728
+ "companyCountry",
95729
+ "companyEmail",
95730
+ "companyPhone",
95731
+ "companyWebsite",
95732
+ "companyCommercialRegister",
95733
+ "companyRegistrationCourt",
95734
+ "companyTaxId",
95735
+ "companyVatId",
95736
+ "bookkeepingBasis",
95737
+ "baseCurrency"
95738
+ ]
95739
+ },
95740
+ "from": {
95741
+ "anyOf": [
95742
+ {
95743
+ "type": "string"
95744
+ },
95745
+ {
95746
+ "type": "null"
95747
+ }
95748
+ ]
95749
+ },
95750
+ "to": {
95751
+ "anyOf": [
95752
+ {
95753
+ "type": "string"
95754
+ },
95755
+ {
95756
+ "type": "null"
95757
+ }
95758
+ ]
95759
+ },
95760
+ "validUntil": {
95761
+ "anyOf": [
95762
+ {
95763
+ "type": "string"
95764
+ },
95765
+ {
95766
+ "type": "null"
95767
+ }
95768
+ ]
95769
+ },
95770
+ "drafts": {
95771
+ "type": "array",
95772
+ "items": {
95773
+ "type": "number"
95774
+ }
95775
+ },
95776
+ "publishedMismatch": {
95777
+ "type": "array",
95778
+ "items": {
95779
+ "type": "number"
95780
+ }
95781
+ },
95782
+ "publishedChains": {
95783
+ "type": "array",
95784
+ "items": {
95785
+ "type": "number"
95786
+ }
95787
+ },
95788
+ "publishedUnchanged": {
95789
+ "type": "number"
95790
+ },
95791
+ "publishedWithoutSnapshot": {
95792
+ "type": "array",
95793
+ "items": {
95794
+ "type": "number"
95795
+ }
95796
+ },
95797
+ "hiddenInvoices": {
95798
+ "type": "number"
95799
+ }
95800
+ },
95801
+ "required": [
95802
+ "field",
95803
+ "from",
95804
+ "to",
95805
+ "validUntil",
95806
+ "drafts",
95807
+ "publishedMismatch",
95808
+ "publishedChains",
95809
+ "publishedUnchanged",
95810
+ "publishedWithoutSnapshot",
95811
+ "hiddenInvoices"
95812
+ ],
95813
+ "additionalProperties": false
95814
+ }
95815
+ },
95816
+ "findings": {
95817
+ "type": "array",
95818
+ "items": {
95819
+ "type": "object",
95820
+ "properties": {
95821
+ "code": {
95822
+ "type": "string"
95823
+ },
95824
+ "severity": {
95825
+ "type": "string",
95826
+ "enum": [
95827
+ "block",
95828
+ "warn",
95829
+ "info"
95830
+ ]
95831
+ },
95832
+ "message": {
95833
+ "type": "string"
95834
+ },
95835
+ "field": {
95836
+ "type": "string",
95837
+ "enum": [
95838
+ "companyName",
95839
+ "companyLegalForm",
95840
+ "companyManagingDirector",
95841
+ "companyStreet",
95842
+ "companyStreetNr",
95843
+ "companyZip",
95844
+ "companyCity",
95845
+ "companyCountry",
95846
+ "companyEmail",
95847
+ "companyPhone",
95848
+ "companyWebsite",
95849
+ "companyCommercialRegister",
95850
+ "companyRegistrationCourt",
95851
+ "companyTaxId",
95852
+ "companyVatId",
95853
+ "bookkeepingBasis",
95854
+ "baseCurrency"
95855
+ ]
95856
+ },
95857
+ "invoiceIds": {
95858
+ "type": "array",
95859
+ "items": {
95860
+ "type": "number"
95861
+ }
95862
+ }
95863
+ },
95864
+ "required": [
95865
+ "code",
95866
+ "severity",
95867
+ "message"
95868
+ ],
95869
+ "additionalProperties": false
95870
+ }
95871
+ },
95872
+ "blocked": {
95873
+ "type": "boolean"
95874
+ },
95875
+ "applies": {
95876
+ "type": "string",
95877
+ "enum": [
95878
+ "now",
95879
+ "planned"
95880
+ ]
95881
+ },
95882
+ "previewHash": {
95883
+ "type": "string"
95884
+ }
95885
+ },
95886
+ "required": [
95887
+ "revision",
95888
+ "today",
95889
+ "historySince",
95890
+ "impacts",
95891
+ "findings",
95892
+ "blocked",
95893
+ "applies",
95894
+ "previewHash"
95895
+ ],
95896
+ "additionalProperties": false
95897
+ },
95898
+ {
95899
+ "type": "null"
95900
+ }
95901
+ ]
95902
+ }
95903
+ },
95904
+ "required": [
95905
+ "success",
95906
+ "data"
95907
+ ],
95908
+ "additionalProperties": false
95909
+ }
95910
+ }
95911
+ }
95912
+ }
95913
+ },
95914
+ "parameters": [
95915
+ {
95916
+ "name": "companyId",
95917
+ "in": "path",
95918
+ "required": true,
95919
+ "schema": {
95920
+ "type": "integer",
95921
+ "exclusiveMinimum": 0
95922
+ }
95923
+ }
95924
+ ],
95925
+ "requestBody": {
95926
+ "required": true,
95927
+ "content": {
95928
+ "application/json": {
95929
+ "schema": {
95930
+ "type": "object",
95931
+ "properties": {
95932
+ "kind": {
95933
+ "type": "string",
95934
+ "enum": [
95935
+ "change",
95936
+ "correction"
95937
+ ]
95938
+ },
95939
+ "reasonCode": {
95940
+ "type": "string",
95941
+ "enum": [
95942
+ "relocation",
95943
+ "tax_office_change",
95944
+ "tax_number_reassignment",
95945
+ "vat_id_assignment",
95946
+ "renaming",
95947
+ "umwg_conversion",
95948
+ "management_change",
95949
+ "register_change",
95950
+ "contact_update",
95951
+ "method_change",
95952
+ "entry_error",
95953
+ "new_legal_person",
95954
+ "initial_setup"
95955
+ ]
95956
+ },
95957
+ "effectiveFrom": {
95958
+ "anyOf": [
95959
+ {
95960
+ "type": "string",
95961
+ "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
95962
+ },
95963
+ {
95964
+ "type": "null"
95965
+ }
95966
+ ]
95967
+ },
95968
+ "values": {
95969
+ "type": "object",
95970
+ "properties": {
95971
+ "companyName": {
95972
+ "anyOf": [
95973
+ {
95974
+ "type": "string",
95975
+ "maxLength": 500
95976
+ },
95977
+ {
95978
+ "type": "null"
95979
+ }
95980
+ ]
95981
+ },
95982
+ "companyLegalForm": {
95983
+ "anyOf": [
95984
+ {
95985
+ "type": "string",
95986
+ "maxLength": 500
95987
+ },
95988
+ {
95989
+ "type": "null"
95990
+ }
95991
+ ]
95992
+ },
95993
+ "companyManagingDirector": {
95994
+ "anyOf": [
95995
+ {
95996
+ "type": "string",
95997
+ "maxLength": 500
95998
+ },
95999
+ {
96000
+ "type": "null"
96001
+ }
96002
+ ]
96003
+ },
96004
+ "companyStreet": {
96005
+ "anyOf": [
96006
+ {
96007
+ "type": "string",
96008
+ "maxLength": 500
96009
+ },
96010
+ {
96011
+ "type": "null"
96012
+ }
96013
+ ]
96014
+ },
96015
+ "companyStreetNr": {
96016
+ "anyOf": [
96017
+ {
96018
+ "type": "string",
96019
+ "maxLength": 500
96020
+ },
96021
+ {
96022
+ "type": "null"
96023
+ }
96024
+ ]
96025
+ },
96026
+ "companyZip": {
96027
+ "anyOf": [
96028
+ {
96029
+ "type": "string",
96030
+ "maxLength": 500
96031
+ },
96032
+ {
96033
+ "type": "null"
96034
+ }
96035
+ ]
96036
+ },
96037
+ "companyCity": {
96038
+ "anyOf": [
96039
+ {
96040
+ "type": "string",
96041
+ "maxLength": 500
96042
+ },
96043
+ {
96044
+ "type": "null"
96045
+ }
96046
+ ]
96047
+ },
96048
+ "companyCountry": {
96049
+ "anyOf": [
96050
+ {
96051
+ "type": "string",
96052
+ "maxLength": 500
96053
+ },
96054
+ {
96055
+ "type": "null"
96056
+ }
96057
+ ]
96058
+ },
96059
+ "companyEmail": {
96060
+ "anyOf": [
96061
+ {
96062
+ "type": "string",
96063
+ "maxLength": 500
96064
+ },
96065
+ {
96066
+ "type": "null"
96067
+ }
96068
+ ]
96069
+ },
96070
+ "companyPhone": {
96071
+ "anyOf": [
96072
+ {
96073
+ "type": "string",
96074
+ "maxLength": 500
96075
+ },
96076
+ {
96077
+ "type": "null"
96078
+ }
96079
+ ]
96080
+ },
96081
+ "companyWebsite": {
96082
+ "anyOf": [
96083
+ {
96084
+ "type": "string",
96085
+ "maxLength": 500
96086
+ },
96087
+ {
96088
+ "type": "null"
96089
+ }
96090
+ ]
96091
+ },
96092
+ "companyCommercialRegister": {
96093
+ "anyOf": [
96094
+ {
96095
+ "type": "string",
96096
+ "maxLength": 500
96097
+ },
96098
+ {
96099
+ "type": "null"
96100
+ }
96101
+ ]
96102
+ },
96103
+ "companyRegistrationCourt": {
96104
+ "anyOf": [
96105
+ {
96106
+ "type": "string",
96107
+ "maxLength": 500
96108
+ },
96109
+ {
96110
+ "type": "null"
96111
+ }
96112
+ ]
96113
+ },
96114
+ "companyTaxId": {
96115
+ "anyOf": [
96116
+ {
96117
+ "type": "string",
96118
+ "maxLength": 500
96119
+ },
96120
+ {
96121
+ "type": "null"
96122
+ }
96123
+ ]
96124
+ },
96125
+ "companyVatId": {
96126
+ "anyOf": [
96127
+ {
96128
+ "type": "string",
96129
+ "maxLength": 500
96130
+ },
96131
+ {
96132
+ "type": "null"
96133
+ }
96134
+ ]
96135
+ },
96136
+ "bookkeepingBasis": {
96137
+ "anyOf": [
96138
+ {
96139
+ "type": "string",
96140
+ "maxLength": 500
96141
+ },
96142
+ {
96143
+ "type": "null"
96144
+ }
96145
+ ]
96146
+ },
96147
+ "baseCurrency": {
96148
+ "anyOf": [
96149
+ {
96150
+ "type": "string",
96151
+ "maxLength": 500
96152
+ },
96153
+ {
96154
+ "type": "null"
96155
+ }
96156
+ ]
96157
+ }
96158
+ },
96159
+ "additionalProperties": false
96160
+ },
96161
+ "evidence": {
96162
+ "anyOf": [
96163
+ {
96164
+ "type": "string",
96165
+ "maxLength": 2000
96166
+ },
96167
+ {
96168
+ "type": "null"
96169
+ }
96170
+ ]
96171
+ }
96172
+ },
96173
+ "required": [
96174
+ "kind",
96175
+ "reasonCode",
96176
+ "effectiveFrom",
96177
+ "values"
96178
+ ],
96179
+ "additionalProperties": false
96180
+ }
96181
+ }
96182
+ }
96183
+ },
96184
+ "security": [
96185
+ {
96186
+ "frontendBearer": []
96187
+ }
96188
+ ],
96189
+ "x-transport": "http"
96190
+ }
96191
+ },
96192
+ "/managing-companies/profile-changes/:companyId/:changeId/cancel": {
96193
+ "post": {
96194
+ "operationId": "managing_companies_profile_change_cancel",
96195
+ "tags": [
96196
+ "managing-companies"
96197
+ ],
96198
+ "summary": "Geplante Stammdatenänderung vor ihrem Stichtag stornieren",
96199
+ "description": "Geplante Stammdatenänderung vor ihrem Stichtag stornieren",
96200
+ "responses": {
96201
+ "200": {
96202
+ "description": "JSON response",
96203
+ "content": {
96204
+ "application/json": {
96205
+ "schema": {
96206
+ "type": "object",
96207
+ "properties": {
96208
+ "success": {
96209
+ "type": "boolean"
96210
+ },
96211
+ "message": {
96212
+ "anyOf": [
96213
+ {
96214
+ "type": "string"
96215
+ },
96216
+ {
96217
+ "type": "null"
96218
+ }
96219
+ ]
96220
+ },
96221
+ "code": {
96222
+ "anyOf": [
96223
+ {
96224
+ "type": "string"
96225
+ },
96226
+ {
96227
+ "type": "null"
96228
+ }
96229
+ ]
96230
+ },
96231
+ "data": {
96232
+ "anyOf": [
96233
+ {
96234
+ "type": "object",
96235
+ "properties": {
96236
+ "id": {
96237
+ "type": "number"
96238
+ },
96239
+ "managingCompanyId": {
96240
+ "type": "number"
96241
+ },
96242
+ "kind": {
96243
+ "type": "string",
96244
+ "enum": [
96245
+ "baseline",
96246
+ "setup",
96247
+ "change",
96248
+ "correction"
96249
+ ]
96250
+ },
96251
+ "reasonCode": {
96252
+ "type": "string",
96253
+ "enum": [
96254
+ "relocation",
96255
+ "tax_office_change",
96256
+ "tax_number_reassignment",
96257
+ "vat_id_assignment",
96258
+ "renaming",
96259
+ "umwg_conversion",
96260
+ "management_change",
96261
+ "register_change",
96262
+ "contact_update",
96263
+ "method_change",
96264
+ "entry_error",
96265
+ "new_legal_person",
96266
+ "initial_setup"
96267
+ ]
96268
+ },
96269
+ "effectiveFrom": {
96270
+ "anyOf": [
96271
+ {
96272
+ "type": "string"
96273
+ },
96274
+ {
96275
+ "type": "null"
96276
+ }
96277
+ ]
96278
+ },
96279
+ "changes": {
96280
+ "type": "array",
96281
+ "items": {
96282
+ "type": "object",
96283
+ "properties": {
96284
+ "field": {
96285
+ "type": "string"
96286
+ },
96287
+ "from": {
96288
+ "anyOf": [
96289
+ {
96290
+ "type": "string"
96291
+ },
96292
+ {
96293
+ "type": "null"
96294
+ }
96295
+ ]
96296
+ },
96297
+ "to": {
96298
+ "anyOf": [
96299
+ {
96300
+ "type": "string"
96301
+ },
96302
+ {
96303
+ "type": "null"
96304
+ }
96305
+ ]
96306
+ }
96307
+ },
96308
+ "required": [
96309
+ "field",
96310
+ "from",
96311
+ "to"
96312
+ ],
96313
+ "additionalProperties": false
96314
+ }
96315
+ },
96316
+ "evidence": {
96317
+ "anyOf": [
96318
+ {
96319
+ "type": "string"
96320
+ },
96321
+ {
96322
+ "type": "null"
96323
+ }
96324
+ ]
96325
+ },
96326
+ "status": {
96327
+ "type": "string",
96328
+ "enum": [
96329
+ "planned",
96330
+ "applied",
96331
+ "cancelled"
96332
+ ]
96333
+ },
96334
+ "baseRevision": {
96335
+ "type": "number"
96336
+ },
96337
+ "createdBy": {
96338
+ "anyOf": [
96339
+ {
96340
+ "type": "number"
96341
+ },
96342
+ {
96343
+ "type": "null"
96344
+ }
96345
+ ]
96346
+ },
96347
+ "createdAt": {
96348
+ "anyOf": [
96349
+ {
96350
+ "type": "string",
96351
+ "format": "date-time"
96352
+ },
96353
+ {
96354
+ "type": "string"
96355
+ }
96356
+ ]
96357
+ },
96358
+ "appliedAt": {
96359
+ "anyOf": [
96360
+ {
96361
+ "anyOf": [
96362
+ {
96363
+ "type": "string",
96364
+ "format": "date-time"
96365
+ },
96366
+ {
96367
+ "type": "string"
96368
+ }
96369
+ ]
96370
+ },
96371
+ {
96372
+ "type": "null"
96373
+ }
96374
+ ]
96375
+ },
96376
+ "cancelledBy": {
96377
+ "anyOf": [
96378
+ {
96379
+ "type": "number"
96380
+ },
96381
+ {
96382
+ "type": "null"
96383
+ }
96384
+ ]
96385
+ },
96386
+ "cancelledAt": {
96387
+ "anyOf": [
96388
+ {
96389
+ "anyOf": [
96390
+ {
96391
+ "type": "string",
96392
+ "format": "date-time"
96393
+ },
96394
+ {
96395
+ "type": "string"
96396
+ }
96397
+ ]
96398
+ },
96399
+ {
96400
+ "type": "null"
96401
+ }
96402
+ ]
96403
+ },
96404
+ "statusNote": {
96405
+ "anyOf": [
96406
+ {
96407
+ "type": "string"
96408
+ },
96409
+ {
96410
+ "type": "null"
96411
+ }
96412
+ ]
96413
+ }
96414
+ },
96415
+ "required": [
96416
+ "id",
96417
+ "managingCompanyId",
96418
+ "kind",
96419
+ "reasonCode",
96420
+ "effectiveFrom",
96421
+ "changes",
96422
+ "evidence",
96423
+ "status",
96424
+ "baseRevision",
96425
+ "createdBy",
96426
+ "createdAt",
96427
+ "appliedAt",
96428
+ "cancelledBy",
96429
+ "cancelledAt",
96430
+ "statusNote"
96431
+ ],
96432
+ "additionalProperties": false
96433
+ },
96434
+ {
96435
+ "type": "null"
96436
+ }
96437
+ ]
96438
+ }
96439
+ },
96440
+ "required": [
96441
+ "success",
96442
+ "data"
96443
+ ],
96444
+ "additionalProperties": false
96445
+ }
96446
+ }
96447
+ }
96448
+ }
96449
+ },
96450
+ "parameters": [
96451
+ {
96452
+ "name": "companyId",
96453
+ "in": "path",
96454
+ "required": true,
96455
+ "schema": {
96456
+ "type": "integer",
96457
+ "exclusiveMinimum": 0
96458
+ }
96459
+ },
96460
+ {
96461
+ "name": "changeId",
96462
+ "in": "path",
96463
+ "required": true,
96464
+ "schema": {
96465
+ "type": "integer",
96466
+ "exclusiveMinimum": 0
96467
+ }
96468
+ }
96469
+ ],
96470
+ "requestBody": {
96471
+ "required": true,
96472
+ "content": {
96473
+ "application/json": {
96474
+ "schema": {
96475
+ "type": "object",
96476
+ "properties": {
96477
+ "reason": {
96478
+ "type": "string",
96479
+ "minLength": 5,
96480
+ "maxLength": 1000
96481
+ }
96482
+ },
96483
+ "required": [
96484
+ "reason"
96485
+ ],
96486
+ "additionalProperties": false
96487
+ }
96488
+ }
96489
+ }
96490
+ },
96491
+ "security": [
96492
+ {
96493
+ "frontendBearer": []
96494
+ }
96495
+ ],
96496
+ "x-transport": "http"
96497
+ }
96498
+ },
94674
96499
  "/managing-companies": {
94675
96500
  "post": {
94676
96501
  "operationId": "managing_companies_create",