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
aOrderInfoEbicsOrderInfo
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
aOrderInfowasnull.
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
aOrderInfoEbicsOrderInfo
Returns
- VopStatusCode
If the first description text contains a valid VopStatusCode, then it is returned. Otherwise zero is returned.
Exceptions
- ArgumentNullException
The parameter
aOrderInfowasnull.
SetVopStatusCode(EbicsOrderInfo, VopStatusCode, string)
public static void SetVopStatusCode(this EbicsOrderInfo aOrderInfo, VopStatusCode nStatusCode, string sCloseMatchName = null)
Parameters
aOrderInfoEbicsOrderInfonStatusCodeVopStatusCodesCloseMatchNamestringOptionally a close match name may be set together with the
nStatusCodeCloseMatch. If asCloseMatchNameis provided with another status, then an exception will be thrown.
Exceptions
- ArgumentNullException
The parameter
aOrderInfowasnull.- ArgumentException