package cz.moneta.test.dsl.ufo.operations.ufoOperations;

import cz.moneta.test.dsl.ufo.operations.client.clientDetail.STS701_S002_ClientDetailPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.ufo.operations.ufoOperations.BUF709_S002_TransferPage.OK_BUTTON;

@Wait(value = OK_BUTTON, until = Until.VISIBLE)
public interface BUF709_S002_TransferPage extends WebFlow<BUF709_S002_TransferPage> {
    String CANCEL_DATE_INPUT = "BUF709_S002_E005";
    String CASHLESS_RADIO = "BUF709_S002_R001_2";

    String OK_BUTTON = "BUF709_S002_B001";
    String ACCOUNT_NUMBER_INPUT = "BUF709_S002_E006";
    String BANK_CODE_INPUT = "BUF709_S002_E007";
    String PRINT_BUTTON = "HLA701_S001_B004";

    @TypeInto(CANCEL_DATE_INPUT)
    BUF709_S002_TransferPage fillDate(String date);

    @Click(value = CASHLESS_RADIO, jsClick = true)
    BUF709_S002_TransferPage clickOnCashless();

    @Click(OK_BUTTON)
    STS701_S002_ClientDetailPage clickOk();

    @TypeInto(ACCOUNT_NUMBER_INPUT)
    BUF709_S002_TransferPage fillAccountNumber(String date);

    @TypeInto(BANK_CODE_INPUT)
    BUF709_S002_TransferPage fillBankCode(String date);

    @Click(PRINT_BUTTON)
    PSP701_S004_PrintTemplatePage printDocument();

}
