Class BankManager
Class to manage everything about Bank
Inheritance
System.Object
BankManager
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.PlugIn.SAC.Contact
Assembly: Simplic.PlugIn.SAC.dll
Syntax
public class BankManager
Methods
| Improve this Doc View SourceDeleteBank(Bank)
Remove a Bank
Declaration
public void DeleteBank(Bank obj)
Parameters
Type | Name | Description |
---|---|---|
Bank | obj | Object to delete |
DeleteBank(Guid)
Remove a Bank
Declaration
public void DeleteBank(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
DeleteBankAccount(BankAccount)
Remove a BankAccount
Declaration
public void DeleteBankAccount(BankAccount obj)
Parameters
Type | Name | Description |
---|---|---|
BankAccount | obj | Object to delete |
DeleteBankAccount(Guid)
Remove a BankAccount
Declaration
public void DeleteBankAccount(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
GetAllBank()
Get all Bank
Declaration
public IEnumerable<Bank> GetAllBank()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Bank> | IEnumerable of Bank |
GetAllBankAccount()
Get all BankAccount
Declaration
public IEnumerable<BankAccount> GetAllBankAccount()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BankAccount> | IEnumerable of BankAccount |
GetBank(Guid)
Get a single Bank
Declaration
public Bank GetBank(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
Bank | Bank instance, else null |
GetBankAccount(Guid)
Get a single BankAccount
Declaration
public BankAccount GetBankAccount(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | Id value |
Returns
Type | Description |
---|---|
BankAccount | BankAccount instance, else null |
GetBankAccounts(Int64)
Gets all bank-accounts assigned to a contact
Declaration
public IEnumerable<BankAccount> GetBankAccounts(long contactId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | contactId | Contact id |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BankAccount> |
GetIBAN(String, String, String, Boolean)
Builds an IBAN from banknumber and bank account number (German format). Beware, just a bank is able to give a 100% correct IBAN, this just builds the IBAN the way it is builded under all known information
Declaration
public static string GetIBAN(string bankNumber, string bankAccountNumber, string countryCode = "DE", bool standartIbanFormat = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | bankNumber | |
System.String | bankAccountNumber | |
System.String | countryCode | |
System.Boolean | standartIbanFormat |
Returns
Type | Description |
---|---|
System.String | IBAN as string (optional) in standart format with a whitespace after every 4th character |
SaveBank(Bank)
Save a Bank
Declaration
public void SaveBank(Bank obj)
Parameters
Type | Name | Description |
---|---|---|
Bank | obj | Object to save |
SaveBankAccount(BankAccount)
Save a BankAccount
Declaration
public void SaveBankAccount(BankAccount obj)
Parameters
Type | Name | Description |
---|---|---|
BankAccount | obj | Object to save |