public async Task <OrderCalculateResponse> CalculateOrder([FromBody] HSOrderCalculatePayload orderCalculatePayload) { var orderCalculationResponse = await _checkoutIntegrationCommand.CalculateOrder(orderCalculatePayload); return(orderCalculationResponse); }
[OrderCloudWebhookAuth] // Security feature to verifiy request came from Ordercloud. public async Task <OrderCalculateResponse> CalculateOrder([FromBody] OrderCalculatePayload <CheckoutConfig> payload) { return(await _checkoutIntegrationCommand.CalculateOrder(payload)); }
public async Task <OrderCalculateResponse> CalculateOrder(string orderID) { var orderCalculationResponse = await _checkoutIntegrationCommand.CalculateOrder(orderID, UserContext); return(orderCalculationResponse); }