apple / app-store-server-library-java

MIT License
166 stars 38 forks source link

ConsumptionRequest model does not match the documentation #99

Closed nicoleSv closed 5 months ago

nicoleSv commented 5 months ago

The documentation for the Send Consumption Information endpoint says the following:

The ConsumptionRequest response body requires that you set the appAccountToken value to a valid value of either a UUID or an empty string.

However, in the implementation of this library the appAccountToken is defined as an UUID object which cannot be serialized to an emptry string as it is not a valid UUID. This makes it impossible to use the model and send a ConsumptionRequest if we do not have an appAccountToken which is a valid case.

alexanderjordanbaker commented 5 months ago

Hello @nicoleSv, thank you for reaching out. You are right, a null UUID should be serialized as an empty string, I will work on correcting that