Search found 184 matches

by luis
Thu Oct 26, 2017 10:43 am
Forum: Bug - problem reporting
Topic: System request to change password for running API
Replies: 2
Views: 687

Re: System request to change password for running API

On the password type there is a setting for password expiration.
Probably that is the case.
by luis
Thu Oct 26, 2017 10:37 am
Forum: Bug - problem reporting
Topic: [API] PasswordService->change not working
Replies: 1
Views: 600

Re: [API] PasswordService->change not working

The locator inside the user seems to be the problem. try to pass as user parameter just an object like {"principal": "username"}, not an object with a locator inside. Also, you don't need to fill in all those fields. Actually, if you set the user to just a string is should work as well, same for typ...
by luis
Tue Oct 24, 2017 7:48 am
Forum: Bug - problem reporting
Topic: Swagger json do not load on swagger editor online
Replies: 1
Views: 647

Re: Swagger json do not load on swagger editor online

For me the cyclos-swagger.json is too big to fit the swagger online editor. It hangs the browser. I suggest using the swagger online generator instead: https://generator.swagger.io/ It is itself a swagger frontend, where you should first POST to either /gen/clients/{framework} or /gen/servers/{frame...
by luis
Fri Jun 02, 2017 9:37 am
Forum: Bug - problem reporting
Topic: Imported payments cannot be accessed via the API
Replies: 1
Views: 561

Re: Imported payments cannot be accessed via the API

Thanks for the report.
Will be fixed in 4.8, which we expect to be released early next week.
by luis
Thu Apr 27, 2017 3:07 pm
Forum: Scripting & Webservices issues
Topic: Paypal intergration script
Replies: 13
Views: 5903

Re: Paypal intergration script

I have another quick question regarding Cyclos payment: If there are 2 users and user 1 buys units from PayPal and sends them to user 2, how can user 2 physically cash or receive the money from Cyclos? Does user 2 also need to be linked to PayPal? Thank you in advance for your thought and considera...
by luis
Wed Apr 19, 2017 12:57 pm
Forum: Scripting & Webservices issues
Topic: Retrieval and Updation of Custom Values in a payment
Replies: 4
Views: 1179

Re: Retrieval and Updation of Custom Values in a payment

You cannot hook custom entities in the EntityManager because it is initialized on application startup. You could either manually create a table in the database and implement the CRUD using plain SQL. For example, you can use Groovy's Sql support with: import org.springframework.jdbc.core.JdbcTemplat...
by luis
Tue Apr 18, 2017 9:29 am
Forum: Scripting & Webservices issues
Topic: Retrieval and Updation of Custom Values in a payment
Replies: 4
Views: 1179

Re: Retrieval and Updation of Custom Values in a payment

Hi. Is there a place where I can find detailed document explaining scenarios of retrieving custom fields and saving it back after encryption/masking within same script?org.cyclos.model.banking.transactions.PerformTransactionDTO doesn't directly gives access to the custom fields. PerformTransactionDT...
by luis
Mon Mar 20, 2017 3:10 pm
Forum: Scripting & Webservices issues
Topic: Paypal intergration script
Replies: 13
Views: 5903

Re: Paypal intergration script

Following your stack trace, it states a ClassCastException in the line 60 of the script. First: are you sure you are using the latest version of all scripts from http://documentation.cyclos.org/4.7/cyclos-reference/ch04s03.html#d0e3701 ? The source line is near to the loading of the system record ty...
by luis
Fri Mar 17, 2017 4:15 pm
Forum: Scripting & Webservices issues
Topic: How do you populate CustomValues in the new REST API
Replies: 3
Views: 1293

Re: How do you populate CustomValues in the new REST API

Sorry, I mean, the first option. On the new REST API you can post a JSON just like you were doing: { "subject": "toUser", "amount": "100.56", "customValues:" { "field1": "value1", "field2": "value2" } } Now I think I understand your question. With the new REST api, the CustomFieldValueDTOs always ha...
by luis
Fri Mar 17, 2017 10:01 am
Forum: Scripting & Webservices issues
Topic: How do you populate CustomValues in the new REST API
Replies: 3
Views: 1293

Re: How do you populate CustomValues in the new REST API

The way you're doing seems correct. Keep in mind that the result from the same call is just a simplified view of the payment, and doesn't include custom field values. If you want to query the full transaction, run a GET request to /transactions/{id-or-transaction-number}. Also if you specify a payme...
by luis
Fri Mar 17, 2017 9:47 am
Forum: Scripting & Webservices issues
Topic: Failed to access User record types when fields are shared
Replies: 10
Views: 1789

Re: Failed to access User record types when fields are share

Unfortunately there's a bug that prevents returning wrapped custom field values for this particular case: DTOs of records.
Hence, setting fields via wrapped.fieldName = 'value' works, but retrieving them back doesn't.
This will be fixed in Cyclos 4.8.
by luis
Thu Mar 16, 2017 1:42 pm
Forum: Scripting & Webservices issues
Topic: Failed to access User record types when fields are shared
Replies: 10
Views: 1789

Re: Failed to access User record types when fields are share

Hi martin.rueegg, good catch. Actually, the getRecordTypeSharedFields is there by mistake, it was probably renamed to getSharedFields , but the previous method was left there. Assuming the getRecordTypeSharedFields shouldn't be there, we have the case that RecordType is an entity, and we have to ind...
by luis
Thu Mar 16, 2017 1:23 pm
Forum: Scripting & Webservices issues
Topic: Paypal intergration script
Replies: 13
Views: 5903

Re: Paypal intergration script

Please, provide the full stack trace from the error log, which can be found in the Reports menu.
by luis
Wed Mar 15, 2017 8:55 am
Forum: Scripting & Webservices issues
Topic: Paypal intergration script
Replies: 13
Views: 5903

Re: Paypal intergration script

I followed the steps for PayPal integration and the integration didn't work. When I took a look at the script, I discovered that the baseUrl < 'https://api.sandbox.paypal.com' : 'https://api.paypal.com > is out of date and doesn't work. Can someone please advise? Does anyone know if this one is sti...
by luis
Tue Mar 14, 2017 11:33 am
Forum: Scripting & Webservices issues
Topic: Failed to access User record types when fields are shared
Replies: 10
Views: 1789

Re: Failed to access User record types when fields are share

Well, glad you found the problem. The wrap() function tries to figure out which fields are available if none are given. All tests I did I was wrapping an entity, not a DTO, and without the second parameter. On the first look I couldn't spot the recordType.fields, because, yes, it doesn't include the...