To introduce my question I would like to give an example. Suppose a customer wants to join a gym. A transaction is sent and contains: