Storing Deals in the Wallet

Deals are redeemable offers that the user can save to the Wallet and later present to a vendor for redemption.

To add a deal to the Wallet, create a new Deal object and call its SaveAsync method, as demonstrated:

Deal deal = new Deal(coupon.Id)    {        DisplayName = "10% off!",        Description = "Get 10% any item purchased.",        IssuerName = "Unleashed",        IssuerWebsite = new Uri("http://example.com"),        IsUsed = false,        MerchantName = "Unleashed",        TermsAndConditions = "Valid at participating locations only.",        Code = "123454321",        ExpirationDate = DateTime.Now.AddMonths(3)    };await deal.SaveAsync();

Note

The DisplayName property must be ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.