This week, the two corporate coffee-shop giants exchanged a few figurative punches in their nationwide loyalty programs.

According to Nation's Restaurant News', Dunkin' Donuts waited until Monday night -- the eve of Starbucks' rollout of its new loyalty program -- to unveil its new mobile app and a "DD Perks Rewards" promotion to help customers get a free drink faster.

The latest version of the Dunkin’ Donuts app allows users to pay with a virtual DD Card using Apple Pay at participating locations, as well as to earn loyalty offers and rewards and give gift cards, according to NRN.com.

New DD Perks members receive a free beverage and 125 points if they enroll in the program by April 21 plus 125 points on their second and third store visits when they pay with their enrolled DD cards.

Dunkin' explained the new rewards in a news release:

"With the DD Perks Rewards program, guests earn five points for every dollar they spend on qualifying purchases at Dunkin’ Donuts when they pay using an enrolled Dunkin’ Donuts Card, either plastic or via the Dunkin’ mobile app. Once a member accrues 200 points, he or she receives a coupon for a free any-size beverage of their choice, redeemable at participating Dunkin’ Donuts restaurants. DD Perks members also receive a coupon for a free, any-size beverage upon enrollment and on their birthday. Additionally, throughout the year DD Perks members receive exclusive, personalized, special offers to earn bonus points for specific food and beverage purchases."

Starbucks launched a new loyalty program on Tuesday in which loyalty members will earn two stars for every dollar they spend, rather than earning one star per visit, as they did under the previous rewards program.

>> Starbucks customers are not happy about the company's new rewards program

The new program allows members to redeem a free item after accumulating 125 stars, which can be earned after spending more than $60.

Starbucks also upgraded its mobile app to include more personalized features.