Page 1 of 1

Setting payment fields on transfer types via API

Posted: Mon Oct 28, 2019 5:16 pm
by Joel.Wegman
screenshot.png (104.02 KiB) Viewed 153 times
I need to be able to add/remove these via the API from an external application (i.e. not a script). In all other cases I've run into so far, this is just a matter of finding the correct DTO and Service, modifying the DTO, and passing it to the method. Unfortunately, TransferTypeDTO and all of its subclasses are missing properties corresponding to payment fields.

EditTransferTypeData does have the RELATED_CUSTOM_FIELDS property, which has this information, so I can at least read this from the API. I can even modify that with EditTransferTypeData.setRelatedCustomFields(), but I don't see any way to save that back to the Cyclos server, since only takes TransferTypeDTOs.

Is there an API call that saves EditTransferTypeDatas? Is there some other way to do this?

Re: Setting payment fields on transfer types via API

Posted: Wed Oct 30, 2019 6:12 pm
by Joel.Wegman
This is also a problem with custom operations. CustomOperationData has a FORM_PARAMETERS property, but CustomOperationDTO doesn't.