class

Manza::Client

Inherits Reference < Object

The SDK entry point. Resources hang off it as getters.

client = Manza::Client.new(api_key: "sk_live_...")
page = client.accounts.list

Constants

DEFAULT_BASE_URL = "https://ma.manza.finance"
DEFAULT_TIMEOUT = 30.seconds

Constructors

new(api_key : String | Nil = nil, base_url : String | Nil = nil, api_version : String | Nil = nil, timeout : Time::Span = DEFAULT_TIMEOUT)

Builds a client. An API key is required — pass api_key or set MANZA_API_KEY. base_url defaults to MANZA_BASE_URL or https://ma.manza.finance (Morocco; South Africa is https://za.manza.finance); api_version pins the Manza-Version request header (default: MANZA_API_VERSION). The pre-1.0 ZAZU_* names still work but warn once.

Source

Instance methods

accounts
Source
beneficiaries
Source
checkout_sessions
Source
customers
Source
entity
Source
invoices
Source
payee_trust_requests
Source
payments
Source
request(method : String, path : String, params : URI::Params | Nil = nil, body : String | Nil = nil) : Response

Performs an HTTP request against the API. Non-2xx responses raise Manza::Error; transport failures raise Manza::ConnectionError. body (when non-nil) must already be JSON-encoded.

Source
transfer_authorizer
Source
transfer_drafts

Deprecated alias of #payments, kept for all of 1.x: returns the same resource, which calls /api/payments.

Source
webhook_endpoints
Source