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

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

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