package cz.moneta.test.dsl.ufo.banka.pages.cards.debit;

import cz.moneta.test.dsl.ufo.banka.pages.fon.DMS070_S001_ScanDocumentsPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.banka.pages.cards.debit.MBC004_S001_ComplementaryBusinessDataPage.*;

@Wait(value = MBC004_S001_PAGE_LABEL_XPATH, by = Lookup.XPATH, waitSecondsForElement = 120)
public interface MBC004_S001_ComplementaryBusinessDataPage extends WebFlow<MBC004_S001_ComplementaryBusinessDataPage> {
    String MBC004_S001_PAGE_LABEL_XPATH = "//div[text()='MBC004_S001']";

    String CONTINUE_BUTTON = "MBC004_S001_B001";

    String APPROXIMATE_TURNOVER_INPUT = "MBC004_S001_E001";
    String NETTO_INCOME_INPUT = "MBC004_S001_E002";
    String HOUSEHOLD_NETTO_INCOME_INPUT = "MBC004_S001_E003";
    String NUMBER_OF_EMPLOYEES_INPUT = "MBC004_S001_E004";

    String PEP_NO_RADIO = "MBC004_S001_R001_0";
    String CASHLESS_DOMESTIC_RADIO = "MBC004_S001_R004_2";
    String CZECH_TAX_RESIDENCY_YES_RADIO = "MBC004_S001_R005_1";
    String ESTABLISHMENT_ABROAD_NO_RADIO = "MBC004_S001_R006_0";
    String SILENT_COMPANION_NO_RADIO = "MBC004_S001_R007_0";

    @Click(value = CZECH_TAX_RESIDENCY_YES_RADIO, jsClick = true)
    MBC004_S001_ComplementaryBusinessDataPage clickCzechTaxResidencyOnly();

    @Click(value = ESTABLISHMENT_ABROAD_NO_RADIO, jsClick = true)
    MBC004_S001_ComplementaryBusinessDataPage clickNoEstablishmentAbroad();

    @Click(value = SILENT_COMPANION_NO_RADIO, jsClick = true)
    MBC004_S001_ComplementaryBusinessDataPage clickNoSilentCompanion();

    @TypeInto(APPROXIMATE_TURNOVER_INPUT)
    MBC004_S001_ComplementaryBusinessDataPage fillApproximateTurnover(String approxTurnover);

    @TypeInto(NETTO_INCOME_INPUT)
    MBC004_S001_ComplementaryBusinessDataPage fillNettoIncome(String nettoIncome);

    @TypeInto(HOUSEHOLD_NETTO_INCOME_INPUT)
    MBC004_S001_ComplementaryBusinessDataPage fillHouseholdNettoIncome(String householdNetto);

    @TypeInto(NUMBER_OF_EMPLOYEES_INPUT)
    MBC004_S001_ComplementaryBusinessDataPage fillNumberOfEmployees(String numOfEmployees);

    @Click(value = CASHLESS_DOMESTIC_RADIO, jsClick = true)
    MBC004_S001_ComplementaryBusinessDataPage clickCashlessDomesticTransactions();

    @Click(value = PEP_NO_RADIO, jsClick = true)
    MBC004_S001_ComplementaryBusinessDataPage clickNoPep();

    @Click(CONTINUE_BUTTON)
    DMS070_S001_ScanDocumentsPage clickContinueToScanDocumentsPage();
}
