Record Class EbicsDownloadParams
With a serviceName set, the request is sent as AdminOrderType=BTD with a
BTDOrderParams/Service block. With serviceName left null, only the
optional date range is applied and the legacy EBICS 2.x order type is kept, so existing
callers keep their behaviour.
The report period is a pair of calendar days (LocalDate), not instants: EBICS sends
it as xs:date, and a timezone in that position only creates off-by-one-day bugs.
The constructor rejects a partial or reversed range. Both would otherwise travel silently: a half range is dropped when the request is built, and a reversed one is schema-valid and comes back as "no data available", which is indistinguishable from a period that really was empty. This is the single place every caller passes through, so the check lives here rather than in each caller.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontainerTyperecord component.static EbicsDownloadParamsdateRangeOnly(LocalDate startDate, LocalDate endDate) Date-range-only parameters for the legacy (non-BTD) download path.endDate()Returns the value of theendDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisBtd()Whether these parameters describe an EBICS 3.0 BTD business transaction format order.Returns the value of themessageNamerecord component.Returns the value of themessageVersionrecord component.option()Returns the value of theoptionrecord component.scope()Returns the value of thescoperecord component.Returns the value of theserviceNamerecord component.Returns the value of thestartDaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EbicsDownloadParams
public EbicsDownloadParams(String serviceName, String scope, String option, String messageName, String messageVersion, String containerType, LocalDate startDate, LocalDate endDate) Creates an instance of aEbicsDownloadParamsrecord class.- Parameters:
serviceName- the value for theserviceNamerecord componentscope- the value for thescoperecord componentoption- the value for theoptionrecord componentmessageName- the value for themessageNamerecord componentmessageVersion- the value for themessageVersionrecord componentcontainerType- the value for thecontainerTyperecord componentstartDate- the value for thestartDaterecord componentendDate- the value for theendDaterecord component
-
-
Method Details
-
dateRangeOnly
Date-range-only parameters for the legacy (non-BTD) download path. -
isBtd
public boolean isBtd()Whether these parameters describe an EBICS 3.0 BTD business transaction format order. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
serviceName
Returns the value of theserviceNamerecord component.- Returns:
- the value of the
serviceNamerecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
option
Returns the value of theoptionrecord component.- Returns:
- the value of the
optionrecord component
-
messageName
Returns the value of themessageNamerecord component.- Returns:
- the value of the
messageNamerecord component
-
messageVersion
Returns the value of themessageVersionrecord component.- Returns:
- the value of the
messageVersionrecord component
-
containerType
Returns the value of thecontainerTyperecord component.- Returns:
- the value of the
containerTyperecord component
-
startDate
Returns the value of thestartDaterecord component.- Returns:
- the value of the
startDaterecord component
-
endDate
Returns the value of theendDaterecord component.- Returns:
- the value of the
endDaterecord component
-