@encatch/schema 1.2.0-beta.15 → 1.2.0-beta.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js
CHANGED
|
@@ -1675,8 +1675,11 @@ var PaymentsUpiAnswerSchema = z3.object({
|
|
|
1675
1675
|
encatchPaymentReference: z3.string().describe(
|
|
1676
1676
|
"Opaque Encatch-generated reconciliation reference included in the UPI intent"
|
|
1677
1677
|
),
|
|
1678
|
-
amount: z3.
|
|
1679
|
-
|
|
1678
|
+
amount: z3.string().trim().refine((s) => {
|
|
1679
|
+
const n = Number(s);
|
|
1680
|
+
return Number.isFinite(n) && n > 0;
|
|
1681
|
+
}, { message: "Amount must be a positive numeric value" }).describe(
|
|
1682
|
+
"INR amount shown to the respondent when the payment instruction was generated, as a decimal string (legacy numeric values are accepted when parsing)"
|
|
1680
1683
|
),
|
|
1681
1684
|
currency: z3.literal("INR").describe("Currency for UPI payments"),
|
|
1682
1685
|
payeeVpa: z3.string().describe("UPI VPA shown to the respondent"),
|