package cz.moneta.test.dsl.ib.accountsandtransactions.directdebitorder;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.TypeInto;

public interface DirectDebitChangePage extends IbPageFlow<DirectDebitCreatePage>{
    String CONTINUE_BUTTON = "//img[@alt='Pokračovat']";
    String USER_NOTE = "//input[@id='userNote']";
    String DIRECT_DEBIT_LIMIT = "//input[@id='amount']";
    String END_DATE = "//input[@id='endDate']";

    @Click(CONTINUE_BUTTON)
    DirectDebitAuthorizePage clickContinueButton();

    @TypeInto(value = USER_NOTE, clear = true)
    DirectDebitChangePage fillUserNote(String userNote);

    @TypeInto(value = DIRECT_DEBIT_LIMIT, clear = true)
    DirectDebitChangePage fillDirectDebitLimit(String incassoLimit);

    @TypeInto(value = END_DATE, clear = true)
    DirectDebitChangePage fillEndDate(String endDate);
}