protected abstract void GetOrderItem(List <OrderItemContext <TComponents> > orderItemContexts, StoreBookingFlowContext flowContext, TStateContext stateContext);
protected abstract void LeaseOrderItem(Lease lease, List <OrderItemContext <TComponents> > orderItemContexts, StoreBookingFlowContext flowContext, TStateContext stateContext, TDatabaseTransaction databaseTransactionContext);
public void UpdateOrder(Order responseOrder, StoreBookingFlowContext flowContext, IStateContext stateContext, IDatabaseTransaction dbTransaction) { UpdateOrder(responseOrder, flowContext, (TStateContext)stateContext, (TDatabaseTransaction)dbTransaction); }
public void BookOrderItems(List <IOrderItemContext> orderItemContexts, StoreBookingFlowContext flowContext, IStateContext stateContext, IDatabaseTransaction databaseTransactionContext) { // TODO: Include validation on the OrderItem created, to ensure it includes all the required fields BookOrderItem(ConvertToSpecificComponents(orderItemContexts), flowContext, (TStateContext)stateContext, (TDatabaseTransaction)databaseTransactionContext); }
public Lease CreateLease(OrderQuote responseOrderQuote, StoreBookingFlowContext flowContext, IStateContext stateContext, IDatabaseTransaction dbTransaction) { return(CreateLease(responseOrderQuote, flowContext, (TStateContext)stateContext, (TDatabaseTransaction)dbTransaction)); }
public IStateContext InitialiseFlow(StoreBookingFlowContext flowContext) { return(Initialise(flowContext)); }
public abstract TStateContext Initialise(StoreBookingFlowContext flowContext);
public abstract void UpdateOrder(Order responseOrder, StoreBookingFlowContext flowContext, TStateContext stateContext, TDatabaseTransaction dbTransaction);
public abstract Lease CreateLease(OrderQuote responseOrderQuote, StoreBookingFlowContext flowContext, TStateContext stateContext, TDatabaseTransaction databaseTransaction);
protected virtual ValueTask CleanupOrderItems(Lease lease, List <OrderItemContext <TComponents> > orderItemContexts, StoreBookingFlowContext flowContext, TStateContext stateContext, TDatabaseTransaction databaseTransactionContext) { // No-op if not implemented, as CleanupOrderItems is optional return(new ValueTask()); }
Task IOpportunityStore.GetOrderItems(List <IOrderItemContext> orderItemContexts, StoreBookingFlowContext flowContext, IStateContext stateContext) { // TODO: Include validation on the OrderItem created, to ensure it includes all the required fields return(GetOrderItems(ConvertToSpecificComponents(orderItemContexts), flowContext, (TStateContext)stateContext)); }
public ValueTask ProposeOrderItems(List <IOrderItemContext> orderItemContexts, StoreBookingFlowContext flowContext, IStateContext stateContext, IDatabaseTransaction databaseTransactionContext) { return(ProposeOrderItems(ConvertToSpecificComponents(orderItemContexts), flowContext, (TStateContext)stateContext, (TDatabaseTransaction)databaseTransactionContext)); }
protected abstract ValueTask ProposeOrderItems(List <OrderItemContext <TComponents> > orderItemContexts, StoreBookingFlowContext flowContext, TStateContext stateContext, TDatabaseTransaction databaseTransactionContext);