in ChatBot/SemanticKernel/Plugin/OrderManagementPlugin.cs [18:42]
public OrderManagementPlugin()
{
// Sample Data
// The data is currently hardcoded in this class for demonstration purposes.
// In a real-world scenario, Contoso can choose their preferred data source
// (e.g., CRM, CosmosDB, File System) and implement the appropriate data access
// logic in the corresponding methods.
_orders = new List<Order>
{
new Order { UserId = 110, OrderId = "ORD001", ProductName = "Laptop", Status = "The order has left the warehouse and is on its way to the customer", ShippedDate = "2024-12-01", EstimatedDeliveryDate = "2024-12-10" },
new Order { UserId = 110, OrderId = "ORD002", ProductName = "Bluetooth Earphones", Status = "The order has been placed but not yet processed", ShippedDate = "", EstimatedDeliveryDate = "" },
new Order { UserId = 110, OrderId = "ORD003", ProductName = "Power Bank", Status = "The order has been delivered to the customer.", ShippedDate = "2025-02-01", EstimatedDeliveryDate = "2025-02-07" }
};
_returns = new List<ReturnCase>
{
new ReturnCase { UserId = 110, ReturnId = "RET001", OrderId = "ORD003", ReturnReason = "Defective product", Status = "The return request has been submitted but not reviewed yet", ProcessedDate = null }
};
_payments = new List<PaymentTransaction>
{
new PaymentTransaction { UserId = 110, TransactionId = "TXN001", OrderId = "ORD002", PaymentStatus = "Failed", RefundStatus = "Not Initiated", PaymentDate = "2024-11-30", Amount = 799.99M }
};
}