Contains methods relating to Fulfillment entities.
(ctx: RequestContext, orders: Order[], lines: OrderLineInput[], handler: ConfigurableOperationInput) => Promise<Fulfillment | InvalidFulfillmentHandlerError | CreateFulfillmentError>Creates a new Fulfillment for the given Orders and OrderItems, using the specified FulfillmentHandler.
(ctx: RequestContext, id: ID) => Promise<FulfillmentLine[]>(ctx: RequestContext, orderLineId: ID, relations: RelationPaths<FulfillmentLine> = []) => Promise<FulfillmentLine[]>(ctx: RequestContext, fulfillmentId: ID, state: FulfillmentState) => Promise< | { fulfillment: Fulfillment; orders: Order[]; fromState: FulfillmentState; toState: FulfillmentState; } | FulfillmentStateTransitionError >Transitions the specified Fulfillment to a new state and upon successful transition publishes a FulfillmentStateTransitionEvent.
(fulfillment: Fulfillment) => readonly FulfillmentState[]Returns an array of the next valid states for the Fulfillment.