-
Notifications
You must be signed in to change notification settings - Fork 9
Description
From the Vindicia API:
The Sparse Response Description (SRD) parameter enables the calling system to constrain a method call to return only components you specify. This gives you greater control over returned content, and improves response time within the Vindicia platform by reducing the processing needed for the call.
Speeding up the response could be worthwhile. They certainly return a ton of stuff that we don't need. If I recall correctly the default SOAP library does not make use of the SRD.
Although, with the initial release of 13.0.0 software, CashBox supports SRD only for the Transaction and TransactionItem objects, implementation is ongoing for all SOAP objects. Therefore, if you specify an SRD on a field or object that has not been implemented, you will receive a normal return. Contact Vindicia Technical Support for updates on SRD implementation for this release.
You'd think they could have updated that in the version 18 API...
This will be a bit of work because some of the response parsing code might need to change and the responses used in the unit tests definitely will need to change.
Downsides:
- It might make things a little harder to debug if you're using this Omnipay library because you won't see the full response unless you get rid of the SRD.
- You would have to call a fetch function to get the full object, you wouldn't be able to get it off a different request.