Class BzstDipClient
WebClient to send BzstDipMessages to the BZST DIP API.-
Constructor Summary
ConstructorsConstructorDescriptionBzstDipClient(BzstDipConfiguration configuration) BzstDipClient(BzstDipConfiguration configuration, MdEinreichenProviderApi mdEinreichenProviderApi) BzstDipClient(BzstDipConfiguration configuration, ApiClient apiClient) BzstDipClient(BzstDipConfiguration configuration, WebClient webClient) -
Method Summary
Modifier and TypeMethodDescriptionQueries for a DIP result.sendDipAndQueryResult(String csvData) Sends the message and queries a result.sendDipAndQueryResult(List<CorrectableReportableSellerType> correctableReportableSellerTypes) Sends the message and queries a result.sendDipAndQueryResult(List<CorrectableReportableSellerType> correctableReportableSellerTypes, CorrectablePlatformOperatorType correctablePlatformOperatorType) Sends the message and queries a result.sendDipAndQueryResult(BzstDipMessage message) Sends the message and queries a result.sendDipAndQueryResult(PaymentDataBodyType paymentDataBodyType) sendDipOnly(String csvData) Sends the message without querying for a response.sendDipOnly(List<CorrectableReportableSellerType> correctableReportableSellerTypes) Sends the message without querying for a response.sendDipOnly(List<CorrectableReportableSellerType> correctableReportableSellerTypes, CorrectablePlatformOperatorType correctablePlatformOperatorType) Sends the message without querying for a response.sendDipOnly(BzstDipMessage message) Sends the message without querying for a response.
-
Constructor Details
-
BzstDipClient
-
BzstDipClient
-
BzstDipClient
public BzstDipClient(BzstDipConfiguration configuration, MdEinreichenProviderApi mdEinreichenProviderApi) -
BzstDipClient
-
-
Method Details
-
sendDipOnly
Sends the message without querying for a response. We recommend using thesendDipAndQueryResult(BzstDipMessage)counterpart and suggest only using this method, if specifically needed.- Parameters:
message- with the data for the BZST DIP API.- Returns:
- the result which only contains the dataTransferNumber
-
sendDipOnly
Sends the message without querying for a response. We recommend using thesendDipAndQueryResult(String)counterpart and suggest only using this method, if specifically needed.- Parameters:
csvData- which will be parsed by theReportableSellerCsvFileParser.- Returns:
- the result which only contains the dataTransferNumber
- Throws:
IOException
-
sendDipOnly
public BzstDipSendingResult sendDipOnly(List<CorrectableReportableSellerType> correctableReportableSellerTypes) Sends the message without querying for a response. We recommend using thesendDipAndQueryResult(List)counterpart and suggest only using this method, if specifically needed.- Parameters:
correctableReportableSellerTypes- with the data for the BZST DIP API.- Returns:
- the result which only contains the dataTransferNumber
-
sendDipOnly
public BzstDipSendingResult sendDipOnly(List<CorrectableReportableSellerType> correctableReportableSellerTypes, CorrectablePlatformOperatorType correctablePlatformOperatorType) Sends the message without querying for a response. We recommend using thesendDipAndQueryResult(List, CorrectablePlatformOperatorType)counterpart and suggest only using this method, if specifically needed.- Parameters:
correctableReportableSellerTypes- with the data for the BZST DIP API.correctablePlatformOperatorType- with the information about the platform operator.- Returns:
- the result which only contains the dataTransferNumber
-
sendDipAndQueryResult
public BzstDipCompleteResult sendDipAndQueryResult(BzstDipMessage message) throws InterruptedException, IOException Sends the message and queries a result.Querying the result might take a few seconds and is configured in
BzstDipConfiguration.getQueryResultConfiguration().In special cases
sendDipOnly(BzstDipMessage)can be used, if the result is not needed, or the results should be queried in some other way.- Parameters:
message- with the data for the BZST DIP API.- Returns:
- the result which contains the dataTransferNumber and all found responses in the API.
- Throws:
InterruptedExceptionIOException
-
sendDipAndQueryResult
public BzstDipCompleteResult sendDipAndQueryResult(BzstCesopPaymentDataBody message) throws InterruptedException, IOException, DatatypeConfigurationException -
sendDipAndQueryResult
public BzstDipCompleteResult sendDipAndQueryResult(String csvData) throws InterruptedException, IOException Sends the message and queries a result.Querying the result might take a few seconds and is configured in
BzstDipConfiguration.getQueryResultConfiguration().In special cases
sendDipOnly(String)can be used, if the result is not needed, or the results should be queried in some other way.- Parameters:
csvData- which will be parsed by theReportableSellerCsvFileParser.- Returns:
- the result which contains the dataTransferNumber and all found responses in the API.
- Throws:
InterruptedExceptionIOException
-
sendDipAndQueryResult
public BzstDipCompleteResult sendDipAndQueryResult(List<CorrectableReportableSellerType> correctableReportableSellerTypes) throws InterruptedException, IOException Sends the message and queries a result.Querying the result might take a few seconds and is configured in
BzstDipConfiguration.getQueryResultConfiguration().In special cases
sendDipOnly(List)can be used, if the result is not needed, or the results should be queried in some other way.- Parameters:
correctableReportableSellerTypes- with the data for the BZST DIP API.- Returns:
- the result which contains the dataTransferNumber and all found responses in the API.
- Throws:
InterruptedExceptionIOException
-
sendDipAndQueryResult
public BzstDipCompleteResult sendDipAndQueryResult(List<CorrectableReportableSellerType> correctableReportableSellerTypes, CorrectablePlatformOperatorType correctablePlatformOperatorType) throws InterruptedException, IOException Sends the message and queries a result.Querying the result might take a few seconds and is configured in
BzstDipConfiguration.getQueryResultConfiguration().In special cases
sendDipOnly(List, CorrectablePlatformOperatorType)can be used, if the result is not needed, or the results should be queried in some other way.- Parameters:
correctableReportableSellerTypes- with the data for the BZST DIP API.correctablePlatformOperatorType- with the information about the platform operator.- Returns:
- the result which contains the dataTransferNumber and all found responses in the API.
- Throws:
InterruptedExceptionIOException
-
sendDipAndQueryResult
public BzstDipCompleteResult sendDipAndQueryResult(PaymentDataBodyType paymentDataBodyType) throws InterruptedException, IOException - Throws:
InterruptedExceptionIOException
-
queryDipResult
Queries for a DIP result. We recommend using thesendDipAndQueryResult(BzstDipMessage)counterpart and suggest only using this method, if specifically needed.- Returns:
- all found
BzstDipSingleTransferResults - Throws:
IOException
-