Search found 24 matches

by jakob.schumann
Sat Jun 12, 2021 9:43 am
Forum: Bug - problem reporting
Topic: serious trouble with actions on custom operations
Replies: 6
Views: 78

Re: serious trouble with actions on custom operations

Hello Luis, thanks for the suggestion! Are there any more code examples for wizards than the paypal integration in the documentation? I could not figure out if the following is possible, I assume not: Step 1: ask for user input -> works Step 2: show some html output like it's possible in the final c...
by jakob.schumann
Thu May 27, 2021 9:26 am
Forum: Bug - problem reporting
Topic: Error when using documentation search
Replies: 1
Views: 62

Error when using documentation search

Hello! When using the search box in the top right corner of the API docs (https://documentation.cyclos.org/4.14/ws-api-docs/) and selecting a search result from the drop down, the following redirect does not work, in most cases it leads to an URL like this: https://documentation.cyclos.org/4.14/ws-a...
by jakob.schumann
Thu May 20, 2021 6:26 am
Forum: Scripting & Webservices issues
Topic: How can i write log entries by a script?
Replies: 6
Views: 2944

Re: How can i write log entries by a script?

Hello Luis, thanks, I got it working with errorLogService.create("PaymentService.preview", '{"params"}', "test message", sessionData.channel, sessionData.loggedBasicUser) The current Cyclos version (4.14) wants 5 parameters (https://documentation.cyclos.org/current/scri...
by jakob.schumann
Thu May 20, 2021 6:12 am
Forum: Scripting & Webservices issues
Topic: How to access account balance & transactions
Replies: 3
Views: 2683

Re: How to access account balance & transactions

Hello rleon, thanks for confirming what I found out (linked Gist above)! I could not reproduce my problem with the 32 datapoints so this should be good now. Also that weeks are returned when the period exceeds 61 days and they then include weeks were the balance did not change seems ok/intentional. ...
by jakob.schumann
Fri Apr 16, 2021 10:25 am
Forum: Cyclos 4 Communities
Topic: Request for feedback: Edit API with PHP for a specific purpose. (Details below)
Replies: 3
Views: 315

Re: Request for feedback: Edit API with PHP for a specific purpose. (Details below)

Hello Xpek, you can take a look at https://github.com/bueffelsoft/cyclos-rest-api as an example of an API client in PHP. This is a quite complex construct, using the src/ApiWrapper.php as base class to send requests and receive the answers. The src/CyclosWrapper.php then uses this base class to make...
by jakob.schumann
Sun Apr 11, 2021 5:15 am
Forum: Scripting & Webservices issues
Topic: Revoke / Terminate agreements
Replies: 1
Views: 311

Re: Revoke / Terminate agreements

To answer myself (partly): Agreements can be revoked by using the user's setAcceptedAgreements() method: import org.cyclos.entities.access.Agreement def sepaAgreement = entityManagerHandler.find(Agreement, scriptParameters.agreementName) // get the user's agreements, we need them all to set them aga...
by jakob.schumann
Sat Apr 10, 2021 8:18 am
Forum: Scripting & Webservices issues
Topic: Revoke / Terminate agreements
Replies: 1
Views: 311

Revoke / Terminate agreements

Hello! How can I revoke an accepted agreement for an user via script? (e.g. when the agreement or some data changed) a) for optional agreements, e.g. reset the SEPA mandate agreement when a new IBAN is entered I found https://documentation.cyclos.org/current/ws-api-docs/org/cyclos/services/access/Ag...
by jakob.schumann
Wed Mar 24, 2021 4:53 am
Forum: Scripting & Webservices issues
Topic: Result for users search - missing fields
Replies: 5
Views: 644

Result for users search - missing fields

Hello, when using the endpoint GET /​users I have two problems: 1) is it somehow possible to return the status of the users? It is already possible to filter by more than one status but without the user status being in the resulting fields it is not possible to differentiate them. 2) What do I have ...
by jakob.schumann
Wed Mar 24, 2021 4:44 am
Forum: Scripting & Webservices issues
Topic: error with PUT users
Replies: 3
Views: 711

Re: error with PUT users

In https://forum.cyclos.org/viewtopic.php?t=2376 it says for "staleEntity": "MOBILE.GENERAL.error.staleEntity": "The data you are saving has been modified by another user or process. Please, reload the page and try again.", Maybe this can give you a hint on what is goin...
by jakob.schumann
Thu Jul 16, 2020 2:13 pm
Forum: Scripting & Webservices issues
Topic: How can i write log entries by a script?
Replies: 6
Views: 2944

Re: How can i write log entries by a script?

Thanks for the hint, but using errorLogService.create("PaymentService.preview", "test message", sessionData.channel, sessionData.loggedBasicUser) in a custom field validator causes There was an error while accessing the database to be displayed instead of the validators error mes...
by jakob.schumann
Thu Jul 16, 2020 1:39 pm
Forum: Scripting & Webservices issues
Topic: How can a script translate text?
Replies: 5
Views: 2421

Re: How can a script translate text?

Thanks, both variants are working! Just to be sure: So there is no way to translate e.g. a custom error message for a custom field validator via the translation files? Aren't there any multi-language cyclos installations that use scripts that generate messages? The only way would be to include all t...
by jakob.schumann
Fri Jul 10, 2020 6:36 am
Forum: Bug - problem reporting
Topic: Cyclos 4.13 error for POST /{user}/orders
Replies: 6
Views: 2596

Re: Cyclos 4.13 error for POST /{user}/orders

Ok, understood, it is not possible to use this endpoint for us. Still it is a bug: Expected result: 403 Access denied, with a permission error message Current result: an exception is thrown, user receives a 404 with response "{"entityType":"Order","key":"-2467...
by jakob.schumann
Fri Jul 03, 2020 11:22 am
Forum: Bug - problem reporting
Topic: Cyclos 4.13 error for POST /{user}/orders
Replies: 6
Views: 2596

Re: Cyclos 4.13 error for POST /{user}/orders

Thanks for your reply, here are the details: Are you submitting the request logged as the seller? No, not as buyer or seller but as third party. Does the seller has the permission 'Enable web shop ads'? Yes Does the buyer has the permission 'View web shop'? Yes Seller and buyer are visible to each o...
by jakob.schumann
Thu Jul 02, 2020 10:45 am
Forum: Bug - problem reporting
Topic: Cyclos 4.13 error for POST /{user}/orders
Replies: 6
Views: 2596

Cyclos 4.13 error for POST /{user}/orders

POSTing to the new REST endpoint /{user}/orders fails with the following exception: 2020-07-02T15:34:02.058+02:00 ERROR Webdienste <<IP>> Website <<domain>> OrderService submitToBuyer {"deliveryMethodName":"kein Versand nötig","seller":"klima_projekt_2","...
by jakob.schumann
Tue Jun 30, 2020 1:15 pm
Forum: Scripting & Webservices issues
Topic: How to access account balance & transactions
Replies: 3
Views: 2683

Re: How to access account balance & transactions

I figured the main part out using the accountService (running this code in Eclipse: https://gist.github.com/j-schumann/66f8529fc447146a88d5ccc995252b09) What I find curious is the behaviour of getAccountBalanceHistory (https://documentation.cyclos.org/4.13/scripting-api-docs/org/cyclos/services/bank...