Class EbicsVopOrderInfo
Extensions for EbicsOrderInfo in order to support the Verification of Payee implementation.
public static class EbicsVopOrderInfo
- Inheritance
-
EbicsVopOrderInfo
- Inherited Members
Methods
GetVopCloseMatchName(EbicsOrderInfo)
In case of a VoP status code RVMC, this provides the correct name of the account owner.
public static string GetVopCloseMatchName(this EbicsOrderInfo aOrderInfo)
Parameters
aOrderInfo
EbicsOrderInfo
Returns
- string
If the VoP status code is not CloseMatch, then this method returns
null
. Otherwise an attempt is made to extract to correct name from TypedDescriptions[1].
Exceptions
- ArgumentNullException
The parameter
aOrderInfo
wasnull
.
GetVopStatusCode(EbicsOrderInfo)
Attempts to derive the VoP Status Code for this order from the first entry in the TypedDescriptions.
public static VopStatusCode GetVopStatusCode(this EbicsOrderInfo aOrderInfo)
Parameters
aOrderInfo
EbicsOrderInfo
Returns
- VopStatusCode
If the first description text contains a valid VopStatusCode, then it is returned. Otherwise zero is returned.
Exceptions
- ArgumentNullException
The parameter
aOrderInfo
wasnull
.
SetVopStatusCode(EbicsOrderInfo, VopStatusCode, string)
public static void SetVopStatusCode(this EbicsOrderInfo aOrderInfo, VopStatusCode nStatusCode, string sCloseMatchName = null)
Parameters
aOrderInfo
EbicsOrderInfonStatusCode
VopStatusCodesCloseMatchName
stringOptionally a close match name may be set together with the
nStatusCode
CloseMatch. If asCloseMatchName
is provided with another status, then an exception will be thrown.
Exceptions
- ArgumentNullException
The parameter
aOrderInfo
wasnull
.- ArgumentException