You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Retrieves orders filtered by transaction amount using flexible comparison operators. Allows filtering orders above, below, or at specific amount thresholds within a specified time range. Results are grouped by payment method type showing order counts and success volumes. Useful for analyzing high-value transactions, small purchases, or specific spending patterns.
530
+
"""
531
+
logger.info(f"Fetching orders filtered by amount with params: {params.arguments}")
Creates discount offers, cashbacks, and other promotional offers in the platform. IMPORTANT: Before calling this function, you MUST first present all the offer details to the user in a clear, formatted way and explicitly ask for their confirmation. Only proceed with calling this function after the user has explicitly confirmed they want to create the offer. Do not call this function without explicit user confirmation. To set the offer's active period, always use the get_current_time() tool for accurate start and end times in IST.
description="Get comprehensive refund analytics from the dedicated refund domain including total refund volume, successful refunds, manual review counts, and breakdown by payment gateway and method within a specified time range. Provides insights into refund processing efficiency and patterns.",
1953
+
properties={
1954
+
**time_input_schema["properties"],
1955
+
"dimension": {
1956
+
"type": "string",
1957
+
"description": "The dimension to group the analytics by. If provided, the results will be grouped by this dimension. Can be empty. How to slice the data: 'payment_gateway' for each gateway (Stripe, Razorpay), 'payment_method_type' for UPI, Cards, NB, etc., currency for different currencies (INR, USD) and banks for each bank (HDFC, SBI) ",
1958
+
"enum": [
1959
+
"currency",
1960
+
"payment_gateway",
1961
+
"payment_method_type",
1962
+
"bank",
1963
+
],
1964
+
},
1965
+
},
1966
+
required=time_input_schema["required"],
1967
+
)
1968
+
1969
+
get_orders_by_amount_function=FunctionSchema(
1970
+
name="get_orders_by_amount",
1971
+
description="Retrieves orders filtered by transaction amount using flexible comparison operators. Allows filtering orders above, below, or at specific amount thresholds within a specified time range. Results are grouped by payment method type showing order counts and success volumes. Useful for analyzing high-value transactions, small purchases, or specific spending patterns.",
1972
+
properties={
1973
+
**time_input_schema["properties"],
1974
+
"operator": {
1975
+
"type": "string",
1976
+
"description": "The comparison operator to apply against the ticket size. 'Greater' finds orders above the amount, 'GreaterThanEqual' includes the exact amount and above, 'Less' finds orders below the amount, 'LessThanEqual' includes the exact amount and below.",
"description": "The monetary threshold value in the base currency (typically INR) to compare against order ticket sizes. This value will be used with the specified operator to filter transactions.",
0 commit comments