package cz.moneta.test.dsl.greenscreen.ARCL;

import cz.moneta.test.dsl.greenscreen.ARQE.ARQE02_AccountEmbossingScreen;
import cz.moneta.test.harness.support.greenscreen.*;

import static cz.moneta.test.dsl.greenscreen.AZXI.AZXI01_CustomerViewSelectScreen.ACCOUNT_NUMBER_KEY;
import static cz.moneta.test.dsl.greenscreen.AZXI.AZXI01_CustomerViewSelectScreen.CARD_NUMBER_KEY;

@CheckScreenContains(row = 1, column = 2, text = "ARCL")
@CheckScreenContains(row = 1, column = 58, text = "PAGE 02")
@CheckScreenContains(row = 2, column = 31, text = "CUSTOMER NAME DETAIL")
public interface ARCL02_CustomerDetailScreen extends GreenScreenFlow<ARCL02_CustomerDetailScreen> {

    @CheckScreenContains(row = 9, column = 51)
    ARCL02_CustomerDetailScreen checkCardAccountNumber(String accountNumber);

    @CheckScreenContains(row = 10, column = 51)
    ARCL02_CustomerDetailScreen checkCardNumber(String cardNumber);

    @CheckScreenContains(row = 9, column = 47)
    @CheckScreenContains(row = 10, column = 47)
    ARCL02_CustomerDetailScreen checkOrgValueForAccountAndCard(String accountOrg, String cardOrg);

    @CheckScreenContains(row = 7, column = 28, text = "NEXT TRANS  (      )")
    @Type(row = 7, column = 42, text = "ARQE")
    @Type(row = 9, column = 5, text = "x")
    @KeyPress(Key.ENTER)
    ARQE02_AccountEmbossingScreen openAccountDetail();

    @StoreContent(row = 10, column = 51, length = 19, storeKey = CARD_NUMBER_KEY)
    ARCL02_CustomerDetailScreen storeCardId();

    @StoreContent(row = 9, column = 51, length = 19, storeKey = ACCOUNT_NUMBER_KEY)
    ARCL02_CustomerDetailScreen storeAccountId();
}
