Skip to main content

Module pay_client

Module pay_client 

Source
Expand description

MIT settlement/tariff protocol surface.

This is a license-preserving re-export of hyprstream-pay; the AGPL settlement service remains in hyprstream::services::pay and is not a dependency of this SDK crate.

Modules§

attestation
The settlement attestation: a canonical, self-contained, content-addressed record (PAY-ARCH-01 guard-rail).
capability
Capability model for the settlement/tariff protocol (#1399).
types
Shared types for the settlement/tariff protocol (#1399).

Structs§

IssueRequest
A request to issue credits from a verified settlement (#1399, PAY-06).
IssueResponse
The response from an issuance request.
SettlementAttestation
A settlement attestation: the signed, self-contained claim that a specific settlement committed, and therefore that a specific issuance is owed.
TariffQuote
A server-owned priced quote with a finite maximum quantum.
TariffRequest
A tariff quote request — the product asks “what does this cost?” and the server owns the price, catalog, and ceiling (#1399, PAY-00 #3).
UnitRef
A resource unit reference — the unit names its issuer (INV-1 from the ledger crate). Carried in the protocol so a tariff quote can name the exact credit unit that will be issued.

Enums§

PayError
Errors from the settlement/tariff protocol.

Constants§

ALL_SCOPES
All settlement/tariff scopes, for registration with the scope registry.
ATTESTATION_V1_TAG
Domain-separation and version tag. Changing the body shape means minting a new tag, never reinterpreting this one.

Traits§

SettlementIssuer
The settlement-issuer contract: only a verified, server-revalidated settlement can cause purchased-credit issuance.
TariffProvider
The tariff-provider contract: resource → priced quote.