Enhance banking transaction data structure and validation
Playwright Tests / test (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
- Increased the length of the NameOfPayer field from NVARCHAR(60) to NVARCHAR(140) in the banking transactions function, table, temporary table, and user-defined type to accommodate longer names. - Expanded the SepaRemittanceInformation field from VARCHAR(150) to VARCHAR(200) in the banking transactions function for more detailed remittance information. - Modified the stored procedure fds__setBankingtransaction_done to return additional transaction data (ValueDate and Amount) along with the success flag for improved notification messaging. - Added validation in MFRClientConfig constructor to ensure the provided URL is not null or empty, enhancing error handling for configuration settings.
This commit is contained in:
@@ -25,6 +25,9 @@ public class MFRClientConfig
|
||||
|
||||
public MFRClientConfig(string url)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(url))
|
||||
throw new ArgumentException("MFR host must not be null or empty (check the 'Fds:MFR_host' configuration entry).", nameof(url));
|
||||
|
||||
BaseUrl = url.StartsWith("http") ? url : $"https://{url.Trim()}/odata/";
|
||||
if (!BaseUrl.EndsWith("/")) BaseUrl += "/";
|
||||
// Derive the REST root (/mfr/) from the same scheme+host as the OData root.
|
||||
|
||||
Reference in New Issue
Block a user