You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
With this SRD, any transaction object returned will contain just the VID, merchantTransactionId, amount, currency, and timestamp, and two complex subitems: transactionItems and statusLog. The transactionItems will be limited to sku, name, price, quantity, and taxType, and statusLog will be complete.
I thought we were actually gonna need this so I was gonna do it, but now it looks like we don't, so I'm not going to.
But a tip for the future: AbstractRequest::sendData blanks out the srd field, so that will need to be changed in order to set srd in the *Request::getData methods.
From the Vindicia API:
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.
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:
The text was updated successfully, but these errors were encountered: