voucherifyio/voucherify-java-sdk

Null values in response DTOs

farasadiq opened this issue · 2 comments

The following values in io.voucherify.client.model.validation are null when we hit the Voucher Validation API:

  1. discount.unitType
  2. discount.unitOff
  3. voucherType

@farasadiq
I checked and:

  • discount.unitOff is properly returned.
  • discount.unitType is currently not possible to specify via SDK when creating voucher, thus not available when validating voucher - will be fixed in next release.
  • VoucherType is not and won't be returned - this field will also be removed with the next release.

Hi why did you close the ticket ?
discount.unitOff does not return over validate and redeem call. Kindly recheck
we are using the 6.0.1 SDK.
unitType to display. Kindly fix it soon

VoucherType is not and won't be returned? Why
We need to process voucher type whether discount voucher or gift voucher.