package cz.moneta.test.dsl.ib.payment.foreign;

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

public interface ForeignPaymentOrderAuthorizePage extends IbPageFlow<ForeignPaymentOrderAuthorizePage>, MainMenu, AccountsAndTransactionsSubmenu {

    String SIGN_BUTTON = "//a[@id='sendToSign']";
    String SEND_BUTTON = "//a[@id='sendBtn']";
    String SMS_CODE_IPUT = "//input[@id='SMSCode']";

    @Click(SIGN_BUTTON)
    ForeignPaymentOrderAuthorizePage clickSign();

    @TypeInto(SMS_CODE_IPUT)
    ForeignPaymentOrderAuthorizePage typeSmsCode(String smsCode);

    @Click(SEND_BUTTON)
    ForeignPaymentOrderConfirmationPage clickSend();
}
