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
I'm actually working using the cybersource rest client java and I'm working with ReportSubscriptionsApi to retrieve the Report subscriptions.
Right now I'm facing up with an issue that happens when I'm calling the rest endpoint in order to get that info. The object which should have the reports information is coming as null. I've been debugging directly the response and it is successful and as well, it matches with the response given on the documentation page using my API key and secret.
Digging into the code and doing some research, I'm looking that it may be for the GSON anotation inside that class and the response given by the webservice, seems that there is a mismatch between them.
Please check it up the info below, as you can see the object is coming as Subscriptions "_embedded": { "Subscriptions": [ { "_links": { "self": { "href": "https://apitest.cybersource.com/reporting/v3/report-subscriptions/..." } },
And, this is on your code, inside the ReportingV3ReportSubscriptionsGet200Response class.
public class ReportingV3ReportSubscriptionsGet200Response { @SerializedName("subscriptions") private List<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions> subscriptions = null;
At a glance, it seems that you're waiting for a property called "subscriptions" instead of "Subscriptions". Hence, seems that this would be a potential reason why I'm getting the report info inside of the object as null even when the call to the webservice is successful and the response is coming with data that would be parsed without issues.
Can you please reproduce and confirm if this is an issue?
Kind regards!
The text was updated successfully, but these errors were encountered:
Hi,
I'm actually working using the cybersource rest client java and I'm working with ReportSubscriptionsApi to retrieve the Report subscriptions.
Right now I'm facing up with an issue that happens when I'm calling the rest endpoint in order to get that info. The object which should have the reports information is coming as null. I've been debugging directly the response and it is successful and as well, it matches with the response given on the documentation page using my API key and secret.
Digging into the code and doing some research, I'm looking that it may be for the GSON anotation inside that class and the response given by the webservice, seems that there is a mismatch between them.
Please check it up the info below, as you can see the object is coming as Subscriptions
"_embedded": { "Subscriptions": [ { "_links": { "self": { "href": "https://apitest.cybersource.com/reporting/v3/report-subscriptions/..." } },
And, this is on your code, inside the ReportingV3ReportSubscriptionsGet200Response class.
public class ReportingV3ReportSubscriptionsGet200Response { @SerializedName("subscriptions") private List<ReportingV3ReportSubscriptionsGet200ResponseSubscriptions> subscriptions = null;
At a glance, it seems that you're waiting for a property called "subscriptions" instead of "Subscriptions". Hence, seems that this would be a potential reason why I'm getting the report info inside of the object as null even when the call to the webservice is successful and the response is coming with data that would be parsed without issues.
Can you please reproduce and confirm if this is an issue?
Kind regards!
The text was updated successfully, but these errors were encountered: