@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/CONTRACT_SHA256 +1 -1
- package/README.md +10 -0
- package/dist/contract.cjs +13 -0
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +75 -1
- package/dist/contract.d.ts +75 -1
- package/dist/contract.js +13 -0
- package/dist/contract.js.map +1 -1
- package/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +10 -3
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +315 -0
- package/package.json +1 -1
package/CONTRACT_SHA256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
02a65db9ad216d195f560a2e4f7cdd7a19a38814362b4c89551188796b017768
|
package/README.md
CHANGED
|
@@ -426,3 +426,13 @@ reference and recipient. The amount is a decimal string. Existing invoices witho
|
|
|
426
426
|
snapshot return HTTP 409; the SDK does not invent instructions. This read is not payment
|
|
427
427
|
evidence and must not trigger provisioning. Use `getPaymentEvidence` for bank coverage.
|
|
428
428
|
The matching Bills endpoint and schema must be deployed before using this operation.
|
|
429
|
+
|
|
430
|
+
### Replay bank payment evidence events
|
|
431
|
+
|
|
432
|
+
`client.invoices.getPaymentEvents(invoiceId, { afterVersion: 0, limit: 50 })`
|
|
433
|
+
returns durable events ordered by per-invoice `version`, plus `nextVersion` and
|
|
434
|
+
`hasMore`. Store the cursor atomically with inbox processing, deduplicate by event
|
|
435
|
+
UUID and reject unknown schema versions. Replay does not acknowledge/delete events.
|
|
436
|
+
Re-read `getPaymentEvidence(invoiceId)` before acting on historical coverage.
|
|
437
|
+
A later event can revoke it. Invoices without frozen instructions are not enrolled.
|
|
438
|
+
Available with Bills payment-event journal migration 0041 and the matching API deployment.
|
package/dist/contract.cjs
CHANGED
|
@@ -3876,6 +3876,19 @@ var apiRoutes_invoices = {
|
|
|
3876
3876
|
|
|
3877
3877
|
// src/generated/api/features/routes.invoices_external.ts
|
|
3878
3878
|
var apiRoutes_invoices_external = {
|
|
3879
|
+
// Contract source: explicit
|
|
3880
|
+
"invoices_payment_events_external": {
|
|
3881
|
+
method: "GET",
|
|
3882
|
+
path: "/invoices/external/:invoiceId/payment-events",
|
|
3883
|
+
auth: { "type": "unified_bearer", "allowUserSession": false, "allowOAuth2": true, "allowApiKey": true, "requireRole": "viewer", "scopes": ["invoices:read"] },
|
|
3884
|
+
meta: {
|
|
3885
|
+
tags: ["invoices-external"],
|
|
3886
|
+
summary: "Replay durable bank payment evidence events",
|
|
3887
|
+
description: "Per-invoice ordered journal, afterVersion exclusive. Replay does not acknowledge or delete events. Consumers persist their cursor atomically with processing and re-read current payment evidence before commerce actions. Historical invoices without frozen instructions are not enrolled. No global cursor or delivery-order promise across invoices.",
|
|
3888
|
+
validated: { "params": true, "query": true, "body": false }
|
|
3889
|
+
},
|
|
3890
|
+
types: null
|
|
3891
|
+
},
|
|
3879
3892
|
// Contract source: explicit
|
|
3880
3893
|
"invoices_payment_evidence_external": {
|
|
3881
3894
|
method: "GET",
|