Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control OrderIDs #29

Open
acekorg opened this issue Mar 4, 2022 · 3 comments
Open

Control OrderIDs #29

acekorg opened this issue Mar 4, 2022 · 3 comments

Comments

@acekorg
Copy link

acekorg commented Mar 4, 2022

Hi Uwe

I'm trying to use your code as a dependancy and fully automate execution of EBICS orders in a batch process...
I wonder if there is possibility to control OrderIDs generated in Partner.java. Bank requires unique ID for each order but each time I instantiate new EbicsClient() the value orderId starts over from "A001" which leads to orders being rejected by the bank as duplicates.
Possible solution is to create bean EbicsClient and let it live as much as possible so it generates new OrderIDs successfully... but eventually the java container might be restarted and the value to start again over "A001" so this doesn't look like the safest solution.

Am I maybe missing something or this functionality isn't there yet ?

@acekorg acekorg changed the title Control over OrderIDs Control OrderIDs Mar 4, 2022
@uwemaurer
Copy link
Collaborator

There is a quit() method on the EbicsClient. When you call this method it will persist the state and this includes the orderId. So the best is to create the EbicsClient, then do the orders and then call quit(), to persist the state.

@jkirste
Copy link

jkirste commented Jun 20, 2022

There is a problem with more userId within the same partnerId. The first userId can be initialized, HIA, HPB, the other userId get error EBICS_ORDER_ID_ALREADY_EXISTS. How can the start value of orderId individually set for each userId?

@cyrilfr
Copy link

cyrilfr commented Sep 26, 2022

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants