Manager to access coupons.
String = "MASKREDEMPTIONS_SITE_NOT_FOUND"
Indicates that an error occurred because a valid data domain cannot be found for given siteID.
All coupons in the current site in no specific order.
This class does not have a constructor, so you cannot create it directly.
Returns list of CouponRedemptions for the specified coupon and coupon code, sorted by redemption date descending (i.e.
Returns the coupon with the specified ID.
the coupon identifier.
Coupon with specified ID or null
Tries to find a coupon for the given coupon code. The method first
searches for a coupon with a fixed code matching the passed value. If no
such fixed coupon is found, it searches for a coupon with a
system-generated code matching the passed value. If found, the coupon is
returned. Otherwise, the method returns null.
The coupon code to get the coupon for.
The coupon with the matching coupon code or null if no coupon was found.
Returns all coupons in the current site in no specific order.
Coupons in current site
Returns list of CouponRedemptions for the specified coupon and coupon code,
sorted by redemption date descending (i.e. last redemption first).
Usually, there should only either be 0 or 1 redemption. But if a coupon and code
is removed and recreated and re-issued later, there might be multiple such redemption records.
Returns an empty list if no redemption record exists in system for the specified coupon and code.
The coupon id to find redemption for.
The coupon code to find redemption for.
A sorted list of CouponRedemptions for the specified coupon and coupon code or an empty list if no redemption record exists.
Mask customer email address in coupon redemptions for the given siteID and email address
the site ID
the customer email address
The status of the masking result
© Copyright 2000-2023, salesforce.com inc. All rights reserved. Various trademarks held by their respective owners.