@orvello/sdk 0.2.4 → 0.3.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.
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  // src/contract-hash.ts
4
- var CONTRACT_SHA256 = "bfd85f17c2aa38bf82c759d02eefaecde34d402f7704d074e5fcdc8cb35c3990";
4
+ var CONTRACT_SHA256 = "eb64699e8b371644f2a18619fdd4c65055683b270c6c92577cf8e0df8716d2ca";
5
5
 
6
6
  // src/diagnose.ts
7
- var SDK_VERSION = "0.2.4" ;
7
+ var SDK_VERSION = "0.3.0" ;
8
8
  function normalizeBaseUrl(raw) {
9
9
  const trimmed = raw.trim();
10
10
  if (!trimmed) throw new Error("Base URL cannot be empty");
@@ -399,6 +399,7 @@ var ROUTE_INDEX = {
399
399
  "invoices_list_overdue": ["GET", "/invoices/overdue", "b", "frontend_permission_http", 2],
400
400
  "invoices_list_pending": ["GET", "/invoices/pending", "b", "frontend_permission_http", 2],
401
401
  "invoices_overdue_external": ["GET", "/invoices/external/overdue", "b", "unified_bearer", 2, ["invoices:read"]],
402
+ "invoices_payment_evidence_external": ["GET", "/invoices/external/:invoiceId/payment-evidence", "b", "unified_bearer", 1, ["invoices:read"]],
402
403
  "invoices_payment_reconciliation": ["GET", "/invoices/:invoiceId/payment-reconciliation", "b", "frontend_permission_http", 1],
403
404
  "invoices_pending_external": ["GET", "/invoices/external/pending", "b", "unified_bearer", 2, ["invoices:read"]],
404
405
  "invoices_repair_pdf": ["POST", "/invoices/:invoiceId/repair-pdf", "b", "frontend_bearer_http", 1],
@@ -720,7 +721,7 @@ function buildPath(operationId, params) {
720
721
  }
721
722
 
722
723
  // src/capabilities.ts
723
- var SDK_VERSION2 = "0.2.4" ;
724
+ var SDK_VERSION2 = "0.3.0" ;
724
725
  var CLIENT_MANAGEMENT_OPS = [
725
726
  "oauth2_external_clients_list",
726
727
  "oauth2_external_clients_get",
@@ -1496,6 +1497,11 @@ var OrvelloClient = class _OrvelloClient {
1496
1497
  }
1497
1498
  // ── Invoices ─────────────────────────────────────────────────────────────
1498
1499
  invoices = {
1500
+ /** Bank evidence, distinct from accounting status; this never initiates a bank call. */
1501
+ getPaymentEvidence: (id, options) => this.request(`/invoices/external/${id}/payment-evidence`, {
1502
+ method: "GET",
1503
+ ...options
1504
+ }),
1499
1505
  search: (query, options) => this.request("/invoices/external", {
1500
1506
  method: "GET",
1501
1507
  query,