pub struct PrefixSetup {
pub user_name: String,
pub prefix: String,
pub currency: String,
pub base_url: String,
pub name_enquiry_uri: String,
pub trans_notify_uri: String,
pub auth_type: String,
pub auth_key: String,
pub settle_account: String,
pub is_active: bool,
}Expand description
Configuration for a virtual-account prefix — the unit Wema actually
registers (server type: PrefixSetup).
One prefix governs an entire range of virtual account numbers and routes all of their inflows to a single settlement account, while delegating name resolution and credit notification to your webhooks.
Fields§
§user_name: StringA label for the prefix owner (your channel/merchant name).
prefix: StringThe leading digits shared by every virtual account in this range
(e.g. "9988"). All numbers you mint must start with this.
currency: StringAccount currency (e.g. "NGN").
base_url: StringBase URL of your webhook host; the enquiry/notify URIs are resolved against it.
name_enquiry_uri: StringPath/URL of your name-enquiry webhook (Wema → you). Receives
AccountLookupRequest.
trans_notify_uri: StringPath/URL of your transaction-notify webhook (Wema → you). Receives
TransNotifyRequest.
auth_type: StringHow Wema authenticates to your webhooks (scheme agreed with Wema).
auth_key: StringThe credential Wema presents to your webhooks under auth_type.
settle_account: StringThe real, debitable Wema account that all inflows to this prefix are credited into. This is the “central account” you later pay out from.
is_active: boolWhether the prefix is active (inflows are only routed while true).
Trait Implementations§
Source§impl Clone for PrefixSetup
impl Clone for PrefixSetup
Source§fn clone(&self) -> PrefixSetup
fn clone(&self) -> PrefixSetup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more