For automations that send discount coupons for giftcards, the coupon must be sent the number of times a customer buys.
For example: If two products are purchased for the same price in the same transaction, have the automation send two codes for each giftcard, and not one for both.