Register Mandate
Path Parameters
User ID
Response
Mandate registration initiated
Debit frequency for a mandate. Mirrors Juspay's wire enum.
AS_PRESENTED, DAILY, WEEKLY, MONTHLY, BIMONTHLY, QUARTERLY, HALF_YEARLY, YEARLY, ONE_TIME Internal mandate lifecycle status — coarse-grained view derived from the raw Juspay status string. Starts at INITIATED the moment a registration row is created (before/while the Juspay session is opened) and advances to PENDING/ACTIVE/etc. as Juspay reports progress.
INITIATED, PENDING, CREATED, ACTIVE, LIVE, PAUSED, EXTERNALLY_PAUSED, FAILED, CANCELLED, COMPLETED, OTHER A validated 12-digit numeric user identifier.
Every external entry point validates:
- JSON
Deserializeruns [UserId::parse] (outer whitespace trimmed, length and digit-only enforced) via#[serde(try_from = "String")]. - DB
FromSqlruns [UserId::parse] on every row read.
Display / Deref<Target = str> / AsRef<str> / Into<String> are
derived via derive_more — the inner String is pass-through for
every read-only borrow, display, and move-out.
"012345678901"