Skip to main content

Crate paymos

Crate paymos 

Source
Expand description

Official async Rust SDK for the Paymos Merchant API.

Amounts are always dot-decimal strings. API secrets belong only on trusted servers. The client signs every request and provides a separate raw-body verifier for webhook signatures.

Modules§

signing
Low-level helpers for deterministic request signing and RFC 3986 encoding.

Structs§

ApiError
Structured RFC 9457 error returned by the Merchant API.
Balance
Merchant balance for one currency.
Balances
Balance operations.
ClientBuilder
Builder for PaymosClient.
CreateInvoiceRequest
Input for creating an invoice. Monetary amounts stay decimal strings.
CreateWithdrawalRequest
Input for creating a withdrawal. Monetary amounts stay decimal strings.
CursorPage
A page returned from a cursor list endpoint.
Invoice
Full invoice contract returned by the Merchant API.
InvoiceListItem
Compact invoice returned from the list endpoint.
InvoiceListParams
Filters accepted by the invoice list endpoint.
InvoicePager
Bounded asynchronous invoice cursor traversal.
Invoices
Invoice operations.
Order
Merchant order embedded in an invoice.
Payment
Payment details selected for an invoice.
PaymosClient
Async client for the Paymos Merchant API.
ProblemError
A field-level validation error returned by the Merchant API.
ServerTime
Server clock response.
System
System operations.
Transfer
Blockchain transfer contributing to an invoice.
WebhookEvent
A typed webhook event after signature and timestamp verification.
WebhookVerifier
Verifies Paymos webhook signatures over the exact raw request bytes.
Withdrawal
Full withdrawal contract returned by the Merchant API.
WithdrawalListParams
Filters accepted by the withdrawal list endpoint.
WithdrawalPager
Bounded asynchronous withdrawal cursor traversal.
Withdrawals
Withdrawal operations.

Enums§

ApiErrorKind
Stable category derived from an HTTP error status.
Error
Errors produced by the Paymos client.
InvoiceSimulationStage
Invoice sandbox simulation stage.
InvoiceStatus
A forward-compatible InvoiceStatus value.
WebhookError
Webhook verification or decoding error.
WithdrawalStatus
A forward-compatible WithdrawalStatus value.

Constants§

SDK_VERSION
Version embedded in the SDK user agent and release artifact.