Exemple #1
0
        public AqTransaction(SWIGTYPE_p_AB_TRANSACTION aqTransactionHandle)
        {
            this.aqTransaction = aqTransactionHandle;
            var val = AB.AB_Transaction_GetValue(aqTransaction);

            this.Amount   = (float)AB.AB_Value_GetValueAsDouble(val);
            this.Currency = AB.AB_Value_GetCurrency(val);

            this.ValutaDate = AqHelper.fromGwenTimeToDateTime(AB.AB_Transaction_GetValutaDate(aqTransaction));
            this.Date       = AqHelper.fromGwenTimeToDateTime(AB.AB_Transaction_GetDate(aqTransaction));

            // populate ToAccount
            this.AqToAccount = new AqBankAccount();
            // AccountNumber & IBAN
            this.AqToAccount.IBAN          = AB.AB_Transaction_GetRemoteIban(aqTransaction);
            this.AqToAccount.AccountNumber = AB.AB_Transaction_GetRemoteAccountNumber(aqTransaction);
            // BankCode & BIC
            this.AqToAccount.BLZ       = AB.AB_Transaction_GetRemoteBankCode(aqTransaction);
            this.AqToAccount.BIC       = AB.AB_Transaction_GetRemoteBic(aqTransaction);
            this.AqToAccount.OwnerName = AqHelper.fromGwenStringList(AB.AB_Transaction_GetRemoteName(aqTransaction));
            this.AqToAccount.BankName  = AB.AB_Transaction_GetRemoteBankName(aqTransaction);

            // populate FromAccount
            this.AqFromAccount = new AqBankAccount();
            this.AqFromAccount.AccountNumber     = AB.AB_Transaction_GetLocalAccountNumber(aqTransaction);
            this.AqFromAccount.IBAN              = AB.AB_Transaction_GetLocalIban(aqTransaction);
            this.AqFromAccount.BLZ               = AB.AB_Transaction_GetLocalBankCode(aqTransaction);
            this.AqFromAccount.BIC               = AB.AB_Transaction_GetLocalBic(aqTransaction);
            this.AqFromAccount.AccountIdentifier = AB.AB_Transaction_GetLocalAccountNumber(aqTransaction);
            this.AqFromAccount.OwnerName         = new List <string> ();
            this.AqFromAccount.OwnerName.Add(AB.AB_Transaction_GetLocalName(aqTransaction));

            this.Purposes = AqHelper.fromGwenStringList(AB.AB_Transaction_GetPurpose(aqTransaction));
        }
Exemple #2
0
 public AqGetTransactionsJob(AqBankAccount account, SWIGTYPE_p_AB_BANKING abHandle)
     : base(account, abHandle)
 {
     this.AqJobHandle = AB.AB_JobGetTransactions_new (Account.AccHandle);
 }
Exemple #3
0
 public AqGetBalanceJob(AqBankAccount account, SWIGTYPE_p_AB_BANKING abHandle)
     : base(account, abHandle)
 {
     this.AqJobHandle = AB.AB_JobGetBalance_new (Account.AccHandle);
 }
Exemple #4
0
 public AqJob(AqBankAccount account, SWIGTYPE_p_AB_BANKING abHandle)
 {
     this.Account = account;
     this.abHandle = abHandle;
 }
Exemple #5
0
 public AqGetTransactionsJob(AqBankAccount account, SWIGTYPE_p_AB_BANKING abHandle) : base(account, abHandle)
 {
     this.AqJobHandle = AB.AB_JobGetTransactions_new(Account.AccHandle);
 }
Exemple #6
0
 public AqGetBalanceJob(AqBankAccount account, SWIGTYPE_p_AB_BANKING abHandle) : base(account, abHandle)
 {
     this.AqJobHandle = AB.AB_JobGetBalance_new(Account.AccHandle);
 }
Exemple #7
0
 public AqJob(AqBankAccount account, SWIGTYPE_p_AB_BANKING abHandle)
 {
     this.Account  = account;
     this.abHandle = abHandle;
 }
Exemple #8
0
        public AqTransaction(SWIGTYPE_p_AB_TRANSACTION aqTransactionHandle)
        {
            this.aqTransaction = aqTransactionHandle;
            var val = AB.AB_Transaction_GetValue (aqTransaction);

            this.Amount = (float)AB.AB_Value_GetValueAsDouble (val);
            this.Currency = AB.AB_Value_GetCurrency (val);

            this.ValutaDate = AqHelper.fromGwenTimeToDateTime (AB.AB_Transaction_GetValutaDate (aqTransaction));
            this.Date = AqHelper.fromGwenTimeToDateTime (AB.AB_Transaction_GetDate (aqTransaction));

            // populate ToAccount
            this.AqToAccount = new AqBankAccount ();
            // AccountNumber & IBAN
            this.AqToAccount.IBAN = AB.AB_Transaction_GetRemoteIban (aqTransaction);
            this.AqToAccount.AccountNumber = AB.AB_Transaction_GetRemoteAccountNumber (aqTransaction);
            // BankCode & BIC
            this.AqToAccount.BLZ = AB.AB_Transaction_GetRemoteBankCode (aqTransaction);
            this.AqToAccount.BIC = AB.AB_Transaction_GetRemoteBic (aqTransaction);
            this.AqToAccount.OwnerName = AqHelper.fromGwenStringList (AB.AB_Transaction_GetRemoteName (aqTransaction));
            this.AqToAccount.BankName = AB.AB_Transaction_GetRemoteBankName (aqTransaction);

            // populate FromAccount
            this.AqFromAccount = new AqBankAccount ();
            this.AqFromAccount.AccountNumber = AB.AB_Transaction_GetLocalAccountNumber (aqTransaction);
            this.AqFromAccount.IBAN = AB.AB_Transaction_GetLocalIban (aqTransaction);
            this.AqFromAccount.BLZ = AB.AB_Transaction_GetLocalBankCode (aqTransaction);
            this.AqFromAccount.BIC = AB.AB_Transaction_GetLocalBic (aqTransaction);
            this.AqFromAccount.AccountIdentifier = AB.AB_Transaction_GetLocalAccountNumber (aqTransaction);
            this.AqFromAccount.OwnerName = new List<string> ();
            this.AqFromAccount.OwnerName.Add (AB.AB_Transaction_GetLocalName (aqTransaction));

            this.Purposes = AqHelper.fromGwenStringList (AB.AB_Transaction_GetPurpose (aqTransaction));
        }