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.
- Client
Builder - Builder for
PaymosClient. - Create
Invoice Request - Input for creating an invoice. Monetary amounts stay decimal strings.
- Create
Withdrawal Request - Input for creating a withdrawal. Monetary amounts stay decimal strings.
- Cursor
Page - A page returned from a cursor list endpoint.
- Invoice
- Full invoice contract returned by the Merchant API.
- Invoice
List Item - Compact invoice returned from the list endpoint.
- Invoice
List Params - Filters accepted by the invoice list endpoint.
- Invoice
Pager - Bounded asynchronous invoice cursor traversal.
- Invoices
- Invoice operations.
- Order
- Merchant order embedded in an invoice.
- Payment
- Payment details selected for an invoice.
- Paymos
Client - Async client for the Paymos Merchant API.
- Problem
Error - A field-level validation error returned by the Merchant API.
- Server
Time - Server clock response.
- System
- System operations.
- Transfer
- Blockchain transfer contributing to an invoice.
- Webhook
Event - A typed webhook event after signature and timestamp verification.
- Webhook
Verifier - Verifies Paymos webhook signatures over the exact raw request bytes.
- Withdrawal
- Full withdrawal contract returned by the Merchant API.
- Withdrawal
List Params - Filters accepted by the withdrawal list endpoint.
- Withdrawal
Pager - Bounded asynchronous withdrawal cursor traversal.
- Withdrawals
- Withdrawal operations.
Enums§
- ApiError
Kind - Stable category derived from an HTTP error status.
- Error
- Errors produced by the Paymos client.
- Invoice
Simulation Stage - Invoice sandbox simulation stage.
- Invoice
Status - A forward-compatible
InvoiceStatusvalue. - Webhook
Error - Webhook verification or decoding error.
- Withdrawal
Status - A forward-compatible
WithdrawalStatusvalue.
Constants§
- SDK_
VERSION - Version embedded in the SDK user agent and release artifact.