/** @since Available in iOS 7.0 and later. */ public boolean isExpired() { if (data.containsKey(IsExpiredKey())) { NSNumber val = (NSNumber) data.get(IsExpiredKey()); return val.booleanValue(); } return false; }
/** @since Available in iOS 7.0 and later. */ public boolean isVolumePurchase() { if (data.containsKey(IsVolumePurchaseKey())) { NSNumber val = (NSNumber) data.get(IsVolumePurchaseKey()); return val.booleanValue(); } return false; }
@Override public String toString() { if (data != null) return data.toString(); return super.toString(); }
/** @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setVolumePurchase(boolean volumePurchase) { data.put(IsVolumePurchaseKey(), NSNumber.valueOf(volumePurchase)); return this; }
/** @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setRevoked(boolean revoked) { data.put(IsRevokedKey(), NSNumber.valueOf(revoked)); return this; }
/** @since Available in iOS 7.0 and later. */ public SKReceiptRefreshRequestOptions setExpired(boolean expired) { data.put(IsExpiredKey(), NSNumber.valueOf(expired)); return this; }