Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Payment type
- if chosenFrequency != "One Time" { //standing order
- if (accountNumber is valid laskaris account number) OR (accountNumber is iban AND contains "LASK")
- paymentMehtod = "AC"
- } else { //MUST HAVE name, iban AND swift for this
- paymentMehtod = "OT"
- }
- }
- else { //payment order
- if accountNumber is own account number {
- paymentOrderProductID = "ACTRF"
- }
- if (accountNumber is a Laskaris account) OR (iban contains "LASK") {
- paymentOrderProductID = "ACOTHER"
- }
- else {
- paymentOrderProductID = "INATIONAL"
- }
- }
- // New endpoint fields:
- orderingCustomerID : String // "100147"
- debitAccount : String // "10000197"
- creditAccount : String // "10000866" || "MT11VALL22013000000040023609419"
- amount : Double // 10.0
- currencyID : String // "EUR"
- chosenFrequency : String // "20200206 e0Y e0M e0W e1D e0F" || "One Time"
- beneficiaryName : String // "Alice Smith"
- swift : String // "VALLMTMTXXX"
- message : String // "test test"
- date : String // "2020-02-12"
Add Comment
Please, Sign In to add comment