@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/CONTRACT_SHA256 CHANGED
@@ -1 +1 @@
1
- 29bbbf64365d404e54e1596605e4d1c7fe1b86ed99797a52f04d40053b721a0e
1
+ ae8f34552ee65c7e2759d53f5e72cde237d9ffdf9d9027e7c17eba42fbef3989
package/dist/contract.cjs CHANGED
@@ -4431,7 +4431,7 @@ var apiRoutes_invoices_external = {
4431
4431
  meta: {
4432
4432
  tags: ["invoices-external"],
4433
4433
  summary: "Update invoice status (external API)",
4434
- 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.",
4434
+ 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.',
4435
4435
  validated: { "params": true, "query": false, "body": true }
4436
4436
  },
4437
4437
  types: null
@@ -4457,7 +4457,7 @@ var apiRoutes_invoices_external = {
4457
4457
  meta: {
4458
4458
  tags: ["invoices-external"],
4459
4459
  summary: "Issue credit note (external API)",
4460
- description: "Issues a GoBD-compliant credit note or cancellation invoice. Generates PDF and creates an immutable document. Returns the new correction invoice.",
4460
+ 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.",
4461
4461
  validated: { "params": true, "query": false, "body": true }
4462
4462
  },
4463
4463
  types: null
@@ -5298,6 +5298,19 @@ var apiRoutes_managing_companies = {
5298
5298
  types: null
5299
5299
  },
5300
5300
  // Contract source: explicit
5301
+ "managing_companies_transfer_owner": {
5302
+ method: "PUT",
5303
+ path: "/managing-companies/:id/owner",
5304
+ auth: { "type": "frontend_permission_http", "permission": "bookkeeping_access" },
5305
+ meta: {
5306
+ tags: ["managing-companies"],
5307
+ summary: "Besitz einer Firma uebergeben",
5308
+ 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`.",
5309
+ validated: { "params": true, "query": false, "body": true }
5310
+ },
5311
+ types: null
5312
+ },
5313
+ // Contract source: explicit
5301
5314
  "managing_companies_delete": {
5302
5315
  method: "DELETE",
5303
5316
  path: "/managing-companies/:id",