package cz.moneta.test.dsl.hypos.pages.hypokalkulacka;

import cz.moneta.test.dsl.hypos.pages.HyposPageFlow;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.TypeInto;

public interface HypokalkulackaClientIncomeBusinessDetailPage extends HyposPageFlow<HypokalkulackaClientIncomeBusinessDetailPage> {
    String INCOME_BUSINESS_DIV = "//div[@id='income-business-detailed']";
    String SAVE_INCOME_DETAIL_BUTTON = INCOME_BUSINESS_DIV + "//input[@value='Uložit']";
    String PAID_TO_MMB_CHECKBOX = INCOME_BUSINESS_DIV + "//input[@id='b-paid-to-mmb-n']";
    String PAID_TAX_INPUT = INCOME_BUSINESS_DIV + "//input[@id='b-paid-tax']";
    String CORP_PHONE_INPUT = INCOME_BUSINESS_DIV + "//input[@id='corp_phone']";

    @Click(SAVE_INCOME_DETAIL_BUTTON)
    HypokalkulackaClientIncomePage clickSaveIncomeBusinessDetail();

    @Click(PAID_TO_MMB_CHECKBOX)
    HypokalkulackaClientIncomeBusinessDetailPage clickBusinessPaidToMmb();

    @TypeInto(value = PAID_TAX_INPUT, clear = true)
    HypokalkulackaClientIncomeBusinessDetailPage fillPaidTax(int paidTax);

    @TypeInto(value = CORP_PHONE_INPUT, clear = true)
    HypokalkulackaClientIncomeBusinessDetailPage fillCorpPhone(String corpPhone);
}