2323import org .slf4j .Logger ;
2424import org .slf4j .LoggerFactory ;
2525
26- import com .opencsv .exceptions .CsvValidationException ;
27-
2826import software .xdev .bzst .dip .client .generated .api .MdEinreichenProviderApi ;
2927import software .xdev .bzst .dip .client .generated .client .ApiClient ;
3028import software .xdev .bzst .dip .client .model .configuration .BzstDipConfiguration ;
@@ -91,14 +89,14 @@ public BzstDipSendingResult sendDipOnly(final BzstDipMessage message)
9189 }
9290
9391 /**
94- * Sends the message without querying for a response. We recommend using the
95- * {@link #sendDipAndQueryResult(String)} counterpart and
96- * suggest only using this method, if specifically needed.
92+ * Sends the message without querying for a response. We recommend using the {@link #sendDipAndQueryResult(String)}
93+ * counterpart and suggest only using this method, if specifically needed.
94+ *
9795 * @param csvData which will be parsed by the {@link ReportableSellerCsvFileParser}.
9896 * @return the result which only contains the dataTransferNumber
9997 */
10098 public BzstDipSendingResult sendDipOnly (final String csvData )
101- throws HttpStatusCodeNotExceptedException , CsvValidationException , IOException
99+ throws IOException
102100 {
103101 return this .sendDipOnly (new ReportableSellerCsvFileParser (this .configuration ).parseCsvData (csvData ));
104102 }
@@ -138,13 +136,14 @@ public BzstDipSendingResult sendDipOnly(
138136 /**
139137 * Sends the message and queries a result.
140138 * <p>
141- * Querying the result might take a few seconds and is configured in
142- * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
139+ * Querying the result might take a few seconds and is configured in
140+ * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
143141 * </p>
144142 * <p>
145- * In special cases {@link #sendDipOnly(BzstDipMessage)} can be used, if the result is not needed,
146- * or the results should be queried in some other way.
143+ * In special cases {@link #sendDipOnly(BzstDipMessage)} can be used, if the result is not needed, or the results
144+ * should be queried in some other way.
147145 * </p>
146+ *
148147 * @param message with the data for the BZST DIP API.
149148 * @return the result which contains the dataTransferNumber and all found responses in the API.
150149 */
@@ -155,21 +154,22 @@ public BzstDipCompleteResult sendDipAndQueryResult(final BzstDipMessage message)
155154 }
156155
157156 public BzstDipCompleteResult sendDipAndQueryResult (final BzstCesopPaymentDataBody message )
158- throws HttpStatusCodeNotExceptedException , InterruptedException , IOException , DatatypeConfigurationException
157+ throws InterruptedException , IOException , DatatypeConfigurationException
159158 {
160159 return this .sendDipAndQueryResult (message .toXmlType ());
161160 }
162161
163162 /**
164163 * Sends the message and queries a result.
165164 * <p>
166- * Querying the result might take a few seconds and is configured in
167- * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
165+ * Querying the result might take a few seconds and is configured in
166+ * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
168167 * </p>
169168 * <p>
170- * In special cases {@link #sendDipOnly(String)} can be used, if the result is not needed,
171- * or the results should be queried in some other way.
169+ * In special cases {@link #sendDipOnly(String)} can be used, if the result is not needed, or the results should be
170+ * queried in some other way.
172171 * </p>
172+ *
173173 * @param csvData which will be parsed by the {@link ReportableSellerCsvFileParser}.
174174 * @return the result which contains the dataTransferNumber and all found responses in the API.
175175 */
@@ -182,13 +182,14 @@ public BzstDipCompleteResult sendDipAndQueryResult(final String csvData)
182182 /**
183183 * Sends the message and queries a result.
184184 * <p>
185- * Querying the result might take a few seconds and is configured in
186- * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
185+ * Querying the result might take a few seconds and is configured in
186+ * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
187187 * </p>
188188 * <p>
189- * In special cases {@link #sendDipOnly(List)} can be used, if the result is not needed,
190- * or the results should be queried in some other way.
189+ * In special cases {@link #sendDipOnly(List)} can be used, if the result is not needed, or the results should be
190+ * queried in some other way.
191191 * </p>
192+ *
192193 * @param correctableReportableSellerTypes with the data for the BZST DIP API.
193194 * @return the result which contains the dataTransferNumber and all found responses in the API.
194195 */
@@ -206,16 +207,16 @@ public BzstDipCompleteResult sendDipAndQueryResult(
206207 /**
207208 * Sends the message and queries a result.
208209 * <p>
209- * Querying the result might take a few seconds and is configured in
210- * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
210+ * Querying the result might take a few seconds and is configured in
211+ * {@link BzstDipConfiguration#getQueryResultConfiguration()}.
211212 * </p>
212213 * <p>
213- * In special cases {@link #sendDipOnly(List, CorrectablePlatformOperatorType)} can be used, if the result is
214- * not needed,
215- * or the results should be queried in some other way.
214+ * In special cases {@link #sendDipOnly(List, CorrectablePlatformOperatorType)} can be used, if the result is not
215+ * needed, or the results should be queried in some other way.
216216 * </p>
217+ *
217218 * @param correctableReportableSellerTypes with the data for the BZST DIP API.
218- * @param correctablePlatformOperatorType with the information about the platform operator.
219+ * @param correctablePlatformOperatorType with the information about the platform operator.
219220 * @return the result which contains the dataTransferNumber and all found responses in the API.
220221 */
221222 public BzstDipCompleteResult sendDipAndQueryResult (
@@ -224,38 +225,35 @@ public BzstDipCompleteResult sendDipAndQueryResult(
224225 )
225226 throws InterruptedException , IOException
226227 {
227- final BzstDipSendingResult sendingResult =
228- this .sendDipOnlyInternal (correctableReportableSellerTypes , correctablePlatformOperatorType );
229-
230- Thread .sleep (this .configuration .getQueryResultConfiguration ().delayBeforeCheckingResults ().toMillis ());
228+ final BzstDipSendingResult sendingResult =
229+ this .sendDipOnlyInternal (correctableReportableSellerTypes , correctablePlatformOperatorType );
230+
231+ Thread .sleep (this .configuration .getQueryResultConfiguration ().delayBeforeCheckingResults ().toMillis ());
231232
232233 final BzstDipRequestStatusResult requestStatusResult = this .queryDipResultWithRetry (sendingResult );
233-
234- return BzstDipCompleteResult .fromResult (sendingResult , requestStatusResult );
234+
235+ return BzstDipCompleteResult .fromResult (sendingResult , requestStatusResult );
235236 }
236237
237238 public BzstDipCompleteResult sendDipAndQueryResult (
238239 final PaymentDataBodyType paymentDataBodyType
239240 )
240- throws HttpStatusCodeNotExceptedException , InterruptedException , IOException
241+ throws InterruptedException , IOException
241242 {
242- try (final WebClient client = new WebClient (this .configuration ))
243- {
244- final BzstDipSendingResult sendingResult =
245- this .sendDipOnlyInternal (paymentDataBodyType , client );
246-
247- Thread .sleep (this .configuration .getQueryResultConfiguration ().delayBeforeCheckingResults ().toMillis ());
248-
249- final BzstDipRequestStatusResult requestStatusResult = this .queryDipResultWithRetry (client , sendingResult );
250-
251- return BzstDipCompleteResult .fromResult (sendingResult , requestStatusResult );
252- }
243+ final WebClient client = new WebClient (this .configuration );
244+ final BzstDipSendingResult sendingResult = this .sendDipOnlyInternal (paymentDataBodyType , client );
245+
246+ Thread .sleep (this .configuration .getQueryResultConfiguration ().delayBeforeCheckingResults ().toMillis ());
247+
248+ final BzstDipRequestStatusResult requestStatusResult = this .queryDipResultWithRetry (sendingResult );
249+
250+ return BzstDipCompleteResult .fromResult (sendingResult , requestStatusResult );
253251 }
254252
255253 /**
256- * Queries for a DIP result. We recommend using the
257- * {@link #sendDipAndQueryResult(BzstDipMessage)} counterpart and
254+ * Queries for a DIP result. We recommend using the {@link #sendDipAndQueryResult(BzstDipMessage)} counterpart and
258255 * suggest only using this method, if specifically needed.
256+ *
259257 * @return all found {@link BzstDipSingleTransferResult}s
260258 */
261259 public BzstDipRequestStatusResult queryDipResult () throws IOException
@@ -292,7 +290,7 @@ private BzstDipSendingResult sendDipOnlyInternal(
292290 private BzstDipSendingResult sendDipOnlyInternal (
293291 final PaymentDataBodyType paymentDataBodyType ,
294292 final WebClient client
295- ) throws HttpStatusCodeNotExceptedException
293+ )
296294 {
297295 final XMLDocumentCreator xmlDocumentCreator = new XMLDocumentCreator (this .configuration );
298296 final String signedXML =
0 commit comments