public void setFeeForCreditCardType(A_setBankCreditcardFee I) { Bank b = new Bank(I.bankId); accounting.classes.enums.ccCardType cccardType = accounting.classes.enums.ccCardType.MASTERCARD; switch (I.ccCardTypeId) { case 1: cccardType = accounting.classes.enums.ccCardType.MASTERCARD; break; case 2: cccardType = accounting.classes.enums.ccCardType.VISACARD; break; } b.setFeeForCreditCardType(cccardType, I.amount, I.description); }
public void payInvoiceByCC(A_payInvoiceCredit I) { accounting.classes.enums.ccCardType cccardType = accounting.classes.enums.ccCardType.MASTERCARD; switch (I.ccCardTypeId) { case 1: cccardType = accounting.classes.enums.ccCardType.MASTERCARD; break; case 2: cccardType = accounting.classes.enums.ccCardType.VISACARD; break; } Invoice inv = new Invoice(I.invoiceId); inv.doCCExtPayment(I.amount, I.cardId, cccardType); }