@orvello/sdk 0.7.5 → 0.7.6

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
@@ -12711,6 +12711,9 @@
12711
12711
  "type": "string",
12712
12712
  "maxLength": 500
12713
12713
  },
12714
+ "acknowledgeSection14cLiability": {
12715
+ "type": "boolean"
12716
+ },
12714
12717
  "lineItems": {
12715
12718
  "type": "array",
12716
12719
  "items": {
@@ -14067,6 +14070,9 @@
14067
14070
  "type": "string",
14068
14071
  "maxLength": 500
14069
14072
  },
14073
+ "acknowledgeSection14cLiability": {
14074
+ "type": "boolean"
14075
+ },
14070
14076
  "lineItems": {
14071
14077
  "type": "array",
14072
14078
  "items": {
@@ -15210,6 +15216,9 @@
15210
15216
  "type": "string",
15211
15217
  "maxLength": 500
15212
15218
  },
15219
+ "acknowledgeSection14cLiability": {
15220
+ "type": "boolean"
15221
+ },
15213
15222
  "lineItems": {
15214
15223
  "type": "array",
15215
15224
  "items": {
@@ -15330,7 +15339,7 @@
15330
15339
  "invoices-external"
15331
15340
  ],
15332
15341
  "summary": "Update invoice status (external API)",
15333
- "description": "Changes invoice status (e.g., mark as paid). State machine rules are enforced server-side. GoBD-safe: issued invoices cannot be cancelled directly; use credit note/cancellation endpoints instead.",
15342
+ "description": "Changes invoice status (e.g., mark as paid). State machine rules are enforced server-side. GoBD-safe: issued invoices cannot be cancelled directly; use credit note/cancellation endpoints instead. A paid status set here is stored with paidSource \"external\"; the optional source (api, sync, webhook) is kept in the audit log only.",
15334
15343
  "responses": {
15335
15344
  "200": {
15336
15345
  "description": "JSON response",
@@ -15786,6 +15795,11 @@
15786
15795
  "cancellation"
15787
15796
  ]
15788
15797
  },
15798
+ "idempotencyKey": {
15799
+ "type": "string",
15800
+ "minLength": 1,
15801
+ "maxLength": 200
15802
+ },
15789
15803
  "lineItems": {
15790
15804
  "type": "array",
15791
15805
  "items": {
@@ -15870,7 +15884,7 @@
15870
15884
  "invoices-external"
15871
15885
  ],
15872
15886
  "summary": "Issue credit note (external API)",
15873
- "description": "Issues a GoBD-compliant credit note or cancellation invoice. Generates PDF and creates an immutable document. Returns the new correction invoice.",
15887
+ "description": "Issues a GoBD-compliant credit note or cancellation invoice. Generates PDF and creates an immutable document. Returns the new correction invoice. Optional idempotencyKey (max 200, e.g. the refund id): a retry with the same key on the same invoice returns the correction already issued (201, replayed: true) instead of booking a second one; the same key with a different body returns 409 IDEMPOTENCY_CONFLICT. Keys do not expire.",
15874
15888
  "responses": {
15875
15889
  "201": {
15876
15890
  "description": "JSON response",
@@ -15962,6 +15976,11 @@
15962
15976
  "cancellation"
15963
15977
  ]
15964
15978
  },
15979
+ "idempotencyKey": {
15980
+ "type": "string",
15981
+ "minLength": 1,
15982
+ "maxLength": 200
15983
+ },
15965
15984
  "lineItems": {
15966
15985
  "type": "array",
15967
15986
  "items": {
@@ -16545,6 +16564,9 @@
16545
16564
  "type": "string",
16546
16565
  "maxLength": 500
16547
16566
  },
16567
+ "acknowledgeSection14cLiability": {
16568
+ "type": "boolean"
16569
+ },
16548
16570
  "lineItems": {
16549
16571
  "type": "array",
16550
16572
  "items": {
@@ -17403,6 +17425,11 @@
17403
17425
  "cancellation"
17404
17426
  ]
17405
17427
  },
17428
+ "idempotencyKey": {
17429
+ "type": "string",
17430
+ "minLength": 1,
17431
+ "maxLength": 200
17432
+ },
17406
17433
  "lineItems": {
17407
17434
  "type": "array",
17408
17435
  "items": {
@@ -17571,6 +17598,11 @@
17571
17598
  "cancellation"
17572
17599
  ]
17573
17600
  },
17601
+ "idempotencyKey": {
17602
+ "type": "string",
17603
+ "minLength": 1,
17604
+ "maxLength": 200
17605
+ },
17574
17606
  "lineItems": {
17575
17607
  "type": "array",
17576
17608
  "items": {
@@ -30940,7 +30972,8 @@
30940
30972
  "bank",
30941
30973
  "cash",
30942
30974
  "paypal",
30943
- "sumup"
30975
+ "sumup",
30976
+ "stripe"
30944
30977
  ]
30945
30978
  },
30946
30979
  "name": {
@@ -31231,7 +31264,8 @@
31231
31264
  "bank",
31232
31265
  "cash",
31233
31266
  "paypal",
31234
- "sumup"
31267
+ "sumup",
31268
+ "stripe"
31235
31269
  ]
31236
31270
  },
31237
31271
  "name": {
@@ -56309,6 +56343,9 @@
56309
56343
  "type": "string",
56310
56344
  "maxLength": 500
56311
56345
  },
56346
+ "acknowledgeSection14cLiability": {
56347
+ "type": "boolean"
56348
+ },
56312
56349
  "lineItems": {
56313
56350
  "type": "array",
56314
56351
  "items": {
@@ -60762,6 +60799,136 @@
60762
60799
  ]
60763
60800
  }
60764
60801
  },
60802
+ "/managing-companies/:id/owner": {
60803
+ "put": {
60804
+ "operationId": "managing_companies_transfer_owner",
60805
+ "tags": [
60806
+ "managing-companies"
60807
+ ],
60808
+ "summary": "Besitz einer Firma uebergeben",
60809
+ "description": "Uebergibt den Besitz einer Managing Company an einen anderen Admin. Die Firma zaehlt nur gegen den Plan ihres Besitzers (Firmenzahl, Rechnungen je Monat, Speicher). Nur der jetzige Besitzer (oder ein Plattform-Admin) darf uebergeben; der neue Besitzer muss unbefristeter Admin sein und Platz in seinem Plan haben (sonst 403 PLAN_LIMIT_REACHED). Fehler: 403 COMPANY_OWNERSHIP_FORBIDDEN, 404 COMPANY_NOT_FOUND, 422 COMPANY_OWNER_MUST_BE_ADMIN. Erfordert `bookkeeping_access`.",
60810
+ "responses": {
60811
+ "200": {
60812
+ "description": "JSON response",
60813
+ "content": {
60814
+ "application/json": {
60815
+ "schema": {
60816
+ "type": "object",
60817
+ "properties": {
60818
+ "success": {
60819
+ "type": "boolean"
60820
+ },
60821
+ "message": {
60822
+ "anyOf": [
60823
+ {
60824
+ "type": "string"
60825
+ },
60826
+ {
60827
+ "type": "null"
60828
+ }
60829
+ ]
60830
+ },
60831
+ "code": {
60832
+ "anyOf": [
60833
+ {
60834
+ "type": "string"
60835
+ },
60836
+ {
60837
+ "type": "null"
60838
+ }
60839
+ ]
60840
+ },
60841
+ "data": {
60842
+ "anyOf": [
60843
+ {
60844
+ "type": "object",
60845
+ "properties": {
60846
+ "managingCompanyId": {
60847
+ "type": "integer"
60848
+ },
60849
+ "previousOwnerUserId": {
60850
+ "anyOf": [
60851
+ {
60852
+ "type": "integer"
60853
+ },
60854
+ {
60855
+ "type": "null"
60856
+ }
60857
+ ]
60858
+ },
60859
+ "ownerUserId": {
60860
+ "type": "integer"
60861
+ },
60862
+ "changed": {
60863
+ "type": "boolean"
60864
+ }
60865
+ },
60866
+ "required": [
60867
+ "managingCompanyId",
60868
+ "previousOwnerUserId",
60869
+ "ownerUserId",
60870
+ "changed"
60871
+ ],
60872
+ "additionalProperties": false
60873
+ },
60874
+ {
60875
+ "type": "null"
60876
+ }
60877
+ ]
60878
+ }
60879
+ },
60880
+ "required": [
60881
+ "success",
60882
+ "data"
60883
+ ],
60884
+ "additionalProperties": false
60885
+ }
60886
+ }
60887
+ }
60888
+ }
60889
+ },
60890
+ "parameters": [
60891
+ {
60892
+ "name": "id",
60893
+ "in": "path",
60894
+ "required": true,
60895
+ "schema": {
60896
+ "type": "integer",
60897
+ "exclusiveMinimum": 0
60898
+ }
60899
+ }
60900
+ ],
60901
+ "requestBody": {
60902
+ "required": true,
60903
+ "content": {
60904
+ "application/json": {
60905
+ "schema": {
60906
+ "type": "object",
60907
+ "properties": {
60908
+ "userId": {
60909
+ "type": "integer",
60910
+ "exclusiveMinimum": 0
60911
+ }
60912
+ },
60913
+ "required": [
60914
+ "userId"
60915
+ ],
60916
+ "additionalProperties": false
60917
+ }
60918
+ }
60919
+ }
60920
+ },
60921
+ "security": [
60922
+ {
60923
+ "frontendBearer": []
60924
+ }
60925
+ ],
60926
+ "x-transport": "http",
60927
+ "x-permissions": [
60928
+ "bookkeeping_access"
60929
+ ]
60930
+ }
60931
+ },
60765
60932
  "/admin/vat/system-settings": {
60766
60933
  "get": {
60767
60934
  "operationId": "admin_vat_get_system_settings",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orvello/sdk",
3
- "version": "0.7.5",
3
+ "version": "0.7.6",
4
4
  "description": "Typed, zero-dependency SDK for integrating Node and Next.js applications with orvello - the accounting & invoicing platform. Sends the credential each route demands, and can prove a call would work without making it.",
5
5
  "keywords": [
6
6
  "orvello",