Manza::Client
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.
Instance methods
accounts
Sourcebeneficiaries
Sourcecheckout_sessions
Sourcecustomers
Sourceentity
Sourceinvoices
Sourcepayee_trust_requests
Sourcepayment_links
Sourcepayments
Sourcerequest(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.
transfer_authorizer
Sourcetransfer_drafts
Deprecated alias of #payments, kept for all of 1.x: returns the
same resource, which calls /api/payments.
webhook_endpoints
Source