Open mknauff2 opened 2 years ago
The GUID should only be set on the creation of a new customer and should only be set by the customer service. Getting a customer by the reference ID is the canonical method. External clients will know customers by their customer ID. Both resource IDs and Customer IDs should uniquely identify a customer. They are alternate IDs for the same customer.
Change the customer resource id from db generated to guid managed by the customer service. Make sure that duplicate customers based upon resource id and customer id cannot be added.