Class FinSepaDirectDebitRejectBuilder
public class FinSepaDirectDebitRejectBuilder : FinOrderBuilder
- Inheritance
-
FinSepaDirectDebitRejectBuilder
- Inherited Members
Constructors
FinSepaDirectDebitRejectBuilder(FinContact)
public FinSepaDirectDebitRejectBuilder(FinContact aContact)
Parameters
aContact
FinContact
Fields
REASON_MD01
Reject because there is no such direct debit mandate.
public const string REASON_MD01 = "MD01"
Field Value
REASON_MD06
Rejecting an authorized direct debit for other reasons.
public const string REASON_MD06 = "MD06"
Field Value
Properties
OrderDataRequired
Indicates whether the direct debit order details must be included in the reject request.
public bool OrderDataRequired { get; }
Property Value
Remarks
If this is true, then at least the following fields must be specified in the FinSepaDirectDebitIndication: CustAcct, EntryDate, EntryTime, Amount, CreditorAcct, CreditorName.
PriceForReject
The price that the bank charges for rejecting a direct debit.
public SwiftAmt PriceForReject { get; }
Property Value
Remarks
This is an optional parameter and may be NullAmt to indicate that no price was specified. As banks are not allowed to charge for this service, this parameter should always be NullAmt or a zero amount value.
Methods
Build(FinSepaDirectDebitIndication, string)
public FinOrder Build(FinSepaDirectDebitIndication aDirDebInd, string sReason)
Parameters
aDirDebInd
FinSepaDirectDebitIndicationContains all information required to reject the direct debit. Must not be
null
. If the property OrderDataRequired isfalse
, then only the OrderID is required and everything else can be null. If OrderDataRequired istrue
, then at least the fields documented for OrderDataRequired must be specified.sReason
stringOptional reason for rejecting the indicated direct debit. Set to
null
if you do not want to specify a reason. Documented reason values are REASON_MD01 and REASON_MD06. Other value may be possible.
Returns
- FinOrder
Returns the fully constructed order, ready to be sent. Returns never
null
.
Exceptions
- ArgumentNullException
The parameter
aDirDebInd
wasnull
.- ArgumentException
The parameter
sReason
was given and was not a string of exactly four characters length.
Build(string, string)
Convenience method for rejects where only an order ID is needed.
public FinOrder Build(string sOrderID, string sReason)
Parameters
sOrderID
stringThe order ID of the direct debit that shall be rejected. This must not be
null
or an empty string.sReason
stringOptional reason for rejecting the indicated direct debit. See Build(FinSepaDirectDebitIndication, string) for more information.
Returns
- FinOrder
Returns the fully constructed order, ready to be sent. Returns never
null
.
Exceptions
- ArgumentNullException
The parameter
sOrderID
wasnull
.- ArgumentException
The parameter
sOrderID
was an empty string, or a string longer than 99 characters.- or -
The parameter
sReason
was given and was not a string of exactly four characters length.
- or -
The parameter