Skip to main content

Services

Order Service

create_order_service

Creates a new order in the database using provided CreateOrderInput and order_info_dict. Returns a Response with status 200 OK.

process_and_store_input_order_service

Processes and stores order input data (CreateOrderUserInput). Checks file type, payment status, and user ID. Sends an email to the client upon successful creation.

list_of_orders_service

Retrieves a list of orders by user ID, org ID, and order type. Takes a ListOfOrdersInput and returns a list of orders.

share_email_service

Sends an email to recipients with a link to download the order file. Uses ShareEmailInput and generates a presigned S3 URL.

update_file_service

Updates order files. Accepts UpdateFileInput, validates file type, uploads to S3, and updates the DB.

admin_list_orders_service

Retrieves all orders for an organization using AdminListInput. Returns a list with status 200 OK.

admin_update_order_service

Updates the status of an order (org ID + order ID). Accepts AdminUpdateInput. Sends a status update email to the client.

search_cam_dashboard_service

Searches for orders using SearchCAMDashboardInput. Returns list of matching orders.

analyze_input_file

Analyzes input file structure. Identifies relevant columns, checks for invalid/duplicate records, and returns analysis results in a dictionary.


Price Service

update_order_price_expiration

Updates the price expiration status for an order. Takes CreateOrderUserInput and count_of_vendors. Updates is_price_expired field accordingly.

check_order_price_expiration

Checks if order price is expired. Returns boolean result based on provided CreateOrderUserInput and vendor count.


Sales Service

Contact_sales_service

Handles sales contact requests. Validates input, fetches user/org data, emails sales team, and creates DB entry.

Update_order_price_service

Async function that updates an order's price and emails the client and sales team.

Check_order_price_service

Checks latest order price based on user/org/type/sub-type. Returns latest price or 204 if not found or expired.

List_of_contact_sales_for_price_service_llel

Fetches and processes a list of contact sales requests in parallel. Returns success or 500 error with details.


Share Service

Check_user_order_service

Async function that verifies if a user has MSME, GST, or STRUCK_OFF orders using UserIdOrgIdInput. Returns result or raises error.