Hello

I don't know if there is a way to do this but i couldn't find it :/

I have set at the discount the Customer Role as requirement. I need to use it in my code but i can't get the value of the Customer role ID that i choosed at the discount.

I have found this at the settings: discounreq.mustbeassignedtocustomerrole-id but can't use it in the code :/

Any directions???

THank you