import { Injectable } from '@angular/core';
import { OrderItemListItemDTO, StatusValues } from '@generated/swagger/oms-api';
import { ChangeOrderItemStatusBaseActionHandler } from './change-order-item-status-base.action-handler';
import { DomainOmsService } from '../oms.service';
import { OrderItemsContext } from './order-items.context';

@Injectable()
export class DispatchedActionHandler extends ChangeOrderItemStatusBaseActionHandler {
  constructor(domainOmsService: DomainOmsService) {
    super(domainOmsService, 'DISPATCHED');
  }

  getStatusValues(orderItem: OrderItemListItemDTO, context: OrderItemsContext): StatusValues {
    return {
      processingStatus: 64,
    };
  }
}
