import { inject, Injectable } from '@angular/core';
import { ShoppingCartService } from '../services';
import { RewardSelectionItem } from '../models';

@Injectable()
export class RewardSelectionFacade {
  #shoppingCartService = inject(ShoppingCartService);

  completeRewardSelection({
    tabId,
    rewardSelectionItems,
  }: {
    tabId: number;
    rewardSelectionItems: RewardSelectionItem[];
  }) {
    return this.#shoppingCartService.completeRewardSelection({
      tabId,
      rewardSelectionItems,
    });
  }
}
