Examples of CzechBankAccount


Examples of org.spayd.model.account.CzechBankAccount

    public void testComputeIBANFromBankAccount() {
        System.out.println("computeIBANFromBankAccount");
        String prefix = "19";
        String number = "2000145399";
        String bank = "0800";
        CzechBankAccount account = new CzechBankAccount(prefix, number, bank);
        String expResult = "CZ6508000000192000145399";
        String result = IBANUtilities.computeIBANFromCzechBankAccount(account);
        assertEquals(expResult, result);
    }
View Full Code Here

Examples of org.spayd.model.account.CzechBankAccount

    public void testComputeIBANFromBankAccount2() {
        System.out.println("computeIBANFromBankAccount2");
        String prefix = "178124";
        String number = "4159";
        String bank = "0710";
        CzechBankAccount account = new CzechBankAccount(prefix, number, bank);
        String expResult = "CZ6907101781240000004159";
        String result = IBANUtilities.computeIBANFromCzechBankAccount(account);
        assertEquals(expResult, result);
    }
View Full Code Here

Examples of org.spayd.model.account.CzechBankAccount

     */
    @Test
    public void testPaymentStringFromAccount() throws UnsupportedEncodingException {
        System.out.println("paymentStringFromAccount");
        SpaydPaymentAttributes parameters = new SpaydPaymentAttributes();
        parameters.setBankAccount(new CzechBankAccount("19", "123", "0800"));
        SpaydExtendedPaymentAttributeMap extendedParameters = null;
        boolean transliterateParams = false;
        String expResult = "SPD*1.0*ACC:CZ2408000000190000000123";
        String result = SpaydPayment.paymentStringFromAccount(parameters, extendedParameters, transliterateParams);
        assertEquals(expResult, result);
View Full Code Here

Examples of org.spayd.model.account.CzechBankAccount

     */
    @Test
    public void testPaymentStringFromAccountAmountAndAlternateAccounts() throws UnsupportedEncodingException {
        System.out.println("paymentStringFromAccount");
        SpaydPaymentAttributes parameters = new SpaydPaymentAttributes();
        parameters.setBankAccount(new CzechBankAccount("19", "123", "0800"));
        List<BankAccount> alternateAccounts = new LinkedList<BankAccount>();
        alternateAccounts.add(new CzechBankAccount(null, "19", "5500"));
        alternateAccounts.add(new CzechBankAccount(null, "19", "0100"));
        parameters.setAlternateAccounts(alternateAccounts);
        parameters.setAmount(100.5);
        SpaydExtendedPaymentAttributeMap extendedParameters = null;
        boolean transliterateParams = false;
        String expResult = "SPD*1.0*ACC:CZ2408000000190000000123*ALT-ACC:CZ9755000000000000000019,CZ7301000000000000000019*AM:100.5";
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.