import { BookingBillingPeriodList } from '@/portal/modules/booking/components/BookingBillingPeriodList';
import { BookingCreateUnitTypeBilling } from '@/portal/modules/booking/booking-types';
import { BaseComponent } from '@/shared/base/BaseComponent';

export class BookingBillingPeriodSection extends BaseComponent {
  private readonly billingPeriodList = new BookingBillingPeriodList(this.host.getByTestId('billing-period-list'));

  select(billingPeriod: BookingCreateUnitTypeBilling): Promise<void> {
    return this.billingPeriodList.select(billingPeriod);
  }
}
