Class EbicsServiceMap
Catalog of well known EBICS services. This is required for conversion between an EBICS Service element and an EBICS OrderType.
Inheritance
Inherited Members
Namespace: Subsembly.EBICS
Assembly: Subsembly.EBICS.Core.dll
Syntax
public class EbicsServiceMap
Constructors
EbicsServiceMap()
Creates an empty EbicsServiceMap.
Declaration
public EbicsServiceMap()
EbicsServiceMap(EbicsServiceMapRecord[])
Creates a EbicsServiceMap that initially contains the given records.
Declaration
public EbicsServiceMap(EbicsServiceMapRecord[] vRecords)
Parameters
Type | Name | Description |
---|---|---|
EbicsServiceMapRecord[] | vRecords |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | |
System.ArgumentException | The given array of records did contain a duplicate entry for the same OrderType or, one of the records in the array was not correctly initialized. |
Properties
Default
Declaration
public static EbicsServiceMap Default { get; }
Property Value
Type | Description |
---|---|
EbicsServiceMap |
Methods
AddRecord(EbicsServiceMapRecord, Boolean)
Add or replace a EbicsServiceMapRecord in this map.
Declaration
public bool AddRecord(EbicsServiceMapRecord aRecord, bool fReplace = false)
Parameters
Type | Name | Description |
---|---|---|
EbicsServiceMapRecord | aRecord | |
System.Boolean | fReplace | If |
Returns
Type | Description |
---|---|
System.Boolean | If the given record was actually added as a new entry, then |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | |
System.ArgumentException |
CreateService(String)
Declaration
public EbicsService CreateService(string sOrderType)
Parameters
Type | Name | Description |
---|---|---|
System.String | sOrderType | The classic order type for which a corresponding EBICS 3.0 Service shall be
created. May be |
Returns
Type | Description |
---|---|
EbicsService | If the given |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The parameter |
CreateServiceMap(String)
Creates a new instance of a EbicsServiceMap, initialized with the well known entries for a given country.
Declaration
public static EbicsServiceMap CreateServiceMap(string sCountryCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | sCountryCode | The ISO country code of the country to get a EbicsServiceMap for.
Must not be |
Returns
Type | Description |
---|---|
EbicsServiceMap | If there is a well known EbicsServiceMap for the requested country,
then it is returned. If no service map is known for that country, then |
Remarks
Currently there are well known service maps for Germany (DE), Switzerland (CH),
and Austria (AT). For any other country codes the value null
will be
returned.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | |
System.ArgumentException | The parameter |
FindByOrderType(String)
Tries to find a service mapping for a given order type.
Declaration
public EbicsServiceMapRecord FindByOrderType(string sOrderType)
Parameters
Type | Name | Description |
---|---|---|
System.String | sOrderType |
Returns
Type | Description |
---|---|
EbicsServiceMapRecord | If a mapping was found, then it is returned. If there is no mapping known for the
given order type, then |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter |
System.ArgumentException | The parameter |
FindByService(EbicsService)
Tries to find the EbicsServiceMapRecord for a EbicsService instance.
Declaration
public EbicsServiceMapRecord FindByService(EbicsService aService)
Parameters
Type | Name | Description |
---|---|---|
EbicsService | aService |
Returns
Type | Description |
---|---|
EbicsServiceMapRecord | If a mapping was found, then it is returned. If there is no mapping known for the
given service, then |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter |
GetOrderType(EbicsService)
Tries to get the order type for a BTD or BTU service.
Declaration
public string GetOrderType(EbicsService aService)
Parameters
Type | Name | Description |
---|---|---|
EbicsService | aService | The EbicsService for which to determine the order type. This may be
|
Returns
Type | Description |
---|---|
System.String | Returns the classic order type that matches the given service, or |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The parameter |
GetOrderType(String, EbicsService)
Tries to get the order type for an AdminOrderType and Service.
Declaration
public string GetOrderType(string sAdminOrderType, EbicsService aService)
Parameters
Type | Name | Description |
---|---|---|
System.String | sAdminOrderType | The AdminOrderType associated with the optional |
EbicsService | aService | If the |
Returns
Type | Description |
---|---|
System.String |