Reference / @getenginex/sdk/extension / money
money()
money():
ZodMiniType<number>
Money in minor units (a safe integer, Number.isSafeInteger). Strict even in 'warn' mode: outside the format, the whole response rejects with VALIDATION_ERROR. For SDK packages (via @getenginex/sdk/extension), not for apps.
Returns
ZodMiniType<number>
Example
ts
wire({ amount: money(), currency: currencyCode() }) // { amount: 1500, currency: 'BRL' }Throws
Nothing: the schema does not throw; the failure becomes VALIDATION_ERROR in the transport.