Validate Zuora subscription name and ID when creating licenses
Problem
As mentioned in #3379 (closed), we have instances where licenses have been manually created with a typo in the zuora_subscription_name
field. For example, it might include a leading or trailing whitespace by mistake. This is a problem because this field is commonly used as a lookup to find the subscription associated with the licenses (e.g. Seat Link Service) but with the typo, the association is not found.
This was only found in about 13 licenses as of 2021-07-23 in LicenseDot production so it's a small problem but does lead to some noisy Sentry errors. You can find the list of licenses in this comment.
Proposal
Add a validation to CustomersDot when licenses are created to verify the zuora_subscription_name
and zuora_subscription_id
are valid by querying Zuora. It's probably not worth adding this same validation to LicenseDot given it's a very small problem and would be more effort to connect to Zuora for validation in that application.