Search by

3neti / settlement-envelope-aui

3neti

Standalone demonstration-only AUI workflow transport for Settlement Envelope.

Package info

github.com/3neti/settlement-envelope-aui

pkg:composer/3neti/settlement-envelope-aui

Statistics

Installs: 22

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-09-25 12:09 UTC

This package is auto-updated.

Last update: 2026-09-25 12:10:52 UTC


README

3neti/settlement-envelope-aui provides the demonstration-only aui.personal-accident.provisional-cover@1.0.0 integration. It depends on generic 3neti/settlement-envelope contracts, not x-change. The ^1.4 dependency uses the published driver source registry and workflow integration contracts. Install normally through Composer; no local path repository or host-specific override is required.

Public classes live under ThreeNeti\SettlementEnvelopeAui:

  • Data\AuiPolicySubmission(array $payload) validates the allowlisted request contract and implements WorkflowSubmission; payload() returns its snapshot.
  • Data\AuiPolicyResult implements WorkflowIntegrationResult, exposes typed policy reference, product code, and immutable coverage timestamps, and preserves the existing demonstration response wire format through toArray().
  • Services\ParseAuiPolicyResponse::handle() validates the exact response keys, constants, reference, explicit RFC3339 timestamps, and authoritative coverage instants. Invalid responses raise sanitized DomainException errors.
  • Services\AuiPolicyTransport takes an HTTP client factory and response parser; submit($submission, $endpoint, $token, $connectTimeout, $timeout) makes one allowlisted JSON POST with bearer authentication and idempotency/fingerprint headers.
  • AuiResources::driverPath() and requestSchemaPath() expose passive resources.

Transport permits only HTTPS pipedream.net endpoints and their subdomains, without userinfo, query strings, or fragments. It validates credentials, bounds timeouts to 1–120 seconds, disables redirects, and never retries. Failed HTTP responses and connection errors expose generic messages without raw provider payloads or chained exceptions. Idempotency headers are not a durable ledger.

Laravel automatically discovers SettlementEnvelopeAuiServiceProvider, which registers the bundled driver source and a lazy concrete AuiPolicyTransport binding using the settlement-envelope 1.4 source registry.

Installation makes the workflow discoverable, but does not activate it, register routes, publish configuration, send notifications, or contact a service. The transport is not a generic workflow adapter and is not tagged as one. Hosts still provide their existing orchestration wrapper, credentials, endpoint and timeouts. x-change retains accepted-disposition checks, authorization, payment and evidence handling, persistence, orchestration, and outcome recording. This package does not issue real insurance or authorize any economic action; use synthetic demonstration data only.

Run composer test after installing development dependencies. Tests fake HTTP; they do not call a provider.

To test against an unreleased generic package checkout without modifying vendor, run SETTLEMENT_ENVELOPE_SOURCE=/absolute/path/to/settlement-envelope composer test.