Class SepaEbicsPartyIdentificationExtensions
Extensions for EBICS specific usage of the SepaPartyIdentification element.
public static class SepaEbicsPartyIdentificationExtensions
- Inheritance
-
SepaEbicsPartyIdentificationExtensions
- Inherited Members
Methods
GetEbicsPartnerId(SepaPartyIdentification)
Get the EBICS Partner ID of a party.
public static string GetEbicsPartnerId(this SepaPartyIdentification aPty)
Parameters
Returns
- string
If a SepaOtherId with Issuer
EBICSis found, then its Identification value is returned. Otherwisenullis returned.
Remarks
The EBICS Partner ID is only used when the party identification is used for a MessageRecipient element.
Exceptions
GetEbicsServiceCenterId(SepaPartyIdentification)
Get the EBICS Service Center ID of a party.
public static string GetEbicsServiceCenterId(this SepaPartyIdentification aPty)
Parameters
Returns
- string
If a SepaOtherId with Issuer
DK, and SchemeNameProprietarySRZis found, then its Identification value is returned. Otherwisenullis returned.The returned string is trimmed from leading and trailing white-space.
Remarks
The EBICS Service Center ID is only used on the InitiatingParty in a SRZ message container.
Exceptions
SetEbicsHostId(SepaPartyIdentification, string)
Set the EBICS Host ID for a HAC protocol InitiatingParty.
public static void SetEbicsHostId(this SepaPartyIdentification aPty, string sHostId)
Parameters
aPtySepaPartyIdentificationsHostIdstringThe EBICS Host ID to set, or
nullto clear the EBICS Host ID.
Remarks
Setting the EBICS Host ID with a non-null value will implicitly set the PartyChoice to OrgId.
Exceptions
- ArgumentNullException
- ArgumentException
The parameter
sHostIddoes not contain a valid Identification value.
SetEbicsPartnerId(SepaPartyIdentification, string)
Set the EBICS Partner ID of a party.
public static void SetEbicsPartnerId(this SepaPartyIdentification aPty, string sPartnerId)
Parameters
aPtySepaPartyIdentificationsPartnerIdstringThe EBICS Partner ID to set, or
nullto clear the EBICS Partner ID.
Remarks
Setting the EBICS Partner ID with a non-null value will implicitly set the PartyChoice to OrgId.
Exceptions
- ArgumentNullException
- ArgumentException
The parameter
sPartnerIddoes not contain a valid Identification value.
SetEbicsProtocolEntry(SepaPartyIdentification, string, string)
Set the EBICS Protocol Entry for a HAC protocol.
public static void SetEbicsProtocolEntry(this SepaPartyIdentification aPty, string sTag, string sValue)
Parameters
aPtySepaPartyIdentificationsTagstringThe tag for the EBICS Protocol Entry. This must not be
nullor an empty string.sValuestringThe value to set for the
sTag. If this isnull, then the Protocol Entry with thesTagwill be removed.
Remarks
Setting a EBICS Protocol Entry with a non-null value will implicitly set the PartyChoice to OrgId.
Exceptions
SetEbicsServiceCenterId(SepaPartyIdentification, string)
Set the EBICS Service Center ID of a party.
public static void SetEbicsServiceCenterId(this SepaPartyIdentification aPty, string sServiceCenterId)
Parameters
aPtySepaPartyIdentificationsServiceCenterIdstringThe EBICS Service Center ID to set, or
nullto clear the EBICS Service Center ID.
Remarks
Setting the EBICS Service Center ID with a non-null value will implicitly set the PartyChoice to OrgId.
Exceptions
- ArgumentNullException
- ArgumentException
The parameter
sServiceCenterIddoes not contain a valid Identification value.