@orvello/sdk 0.4.0 → 0.5.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 = "c3f121a094268542856384510d880bbd65a13b5b242c38e017ad5f622e3b30e2";
4
+ var CONTRACT_SHA256 = "02a65db9ad216d195f560a2e4f7cdd7a19a38814362b4c89551188796b017768";
5
5
 
6
6
  // src/diagnose.ts
7
- var SDK_VERSION = "0.4.0" ;
7
+ var SDK_VERSION = "0.5.0" ;
8
8
  function normalizeBaseUrl(raw) {
9
9
  const trimmed = raw.trim();
10
10
  if (!trimmed) throw new Error("Base URL cannot be empty");
@@ -412,6 +412,7 @@ var ROUTE_INDEX = {
412
412
  "invoices_list_overdue": ["GET", "/invoices/overdue", "b", "frontend_permission_http", 2],
413
413
  "invoices_list_pending": ["GET", "/invoices/pending", "b", "frontend_permission_http", 2],
414
414
  "invoices_overdue_external": ["GET", "/invoices/external/overdue", "b", "unified_bearer", 2, ["invoices:read"]],
415
+ "invoices_payment_events_external": ["GET", "/invoices/external/:invoiceId/payment-events", "b", "unified_bearer", 3, ["invoices:read"]],
415
416
  "invoices_payment_evidence_external": ["GET", "/invoices/external/:invoiceId/payment-evidence", "b", "unified_bearer", 1, ["invoices:read"]],
416
417
  "invoices_payment_instructions_external": ["GET", "/invoices/external/:invoiceId/payment-instructions", "b", "unified_bearer", 1, ["invoices:read"]],
417
418
  "invoices_payment_reconciliation": ["GET", "/invoices/:invoiceId/payment-reconciliation", "b", "frontend_permission_http", 1],
@@ -735,7 +736,7 @@ function buildPath(operationId, params) {
735
736
  }
736
737
 
737
738
  // src/capabilities.ts
738
- var SDK_VERSION2 = "0.4.0" ;
739
+ var SDK_VERSION2 = "0.5.0" ;
739
740
  var CLIENT_MANAGEMENT_OPS = [
740
741
  "oauth2_external_clients_list",
741
742
  "oauth2_external_clients_get",
@@ -1511,6 +1512,12 @@ var OrvelloClient = class _OrvelloClient {
1511
1512
  }
1512
1513
  // ── Invoices ─────────────────────────────────────────────────────────────
1513
1514
  invoices = {
1515
+ /** Durable per-invoice replay. Commit the cursor with processing; re-read evidence before commerce actions. */
1516
+ getPaymentEvents: (id, query, options) => this.request(`/invoices/external/${id}/payment-events`, {
1517
+ method: "GET",
1518
+ query,
1519
+ ...options
1520
+ }),
1514
1521
  /** Frozen recipient and reference; historical invoices without a snapshot return 409. */
1515
1522
  getPaymentInstructions: (id, options) => this.request(`/invoices/external/${id}/payment-instructions`, {
1516
1523
  method: "GET",