Skip to content

Commit 874fe71

Browse files
fix: descriptions (#24)
1 parent b113e72 commit 874fe71

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/razorpay/payment_links.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func CreatePaymentLink(
2121
mcpgo.Description("Amount to be paid using the link in smallest "+
2222
"currency unit(e.g., ₹300, use 30000)"),
2323
mcpgo.Required(),
24+
mcpgo.Min(100), // Minimum amount is 100 (1.00 in currency)
2425
),
2526
mcpgo.WithString(
2627
"currency",
@@ -155,6 +156,7 @@ func CreateUpiPaymentLink(
155156
"amount",
156157
mcpgo.Description("Amount to be paid using the link in smallest currency unit(e.g., ₹300, use 30000), Only accepted currency is INR"), // nolint:lll
157158
mcpgo.Required(),
159+
mcpgo.Min(100), // Minimum amount is 100 (1.00 in currency)
158160
),
159161
mcpgo.WithString(
160162
"currency",

pkg/razorpay/refunds.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ func CreateRefund(
2626
"amount",
2727
mcpgo.Description("Payment amount in the smallest currency unit "+
2828
"(e.g., for ₹295, use 29500)"),
29+
mcpgo.Required(),
30+
mcpgo.Min(100), // Minimum amount is 100 (1.00 in currency)
2931
),
3032
mcpgo.WithString(
3133
"speed",

0 commit comments

Comments
 (0)