PLYEventPropertyRedemption class
What a Web2App redemption reports. REDEMPTION_CONSUMED carries token,
receipt, subscriptions and purchase_context. REDEMPTION_FAILED
carries token and error_code, with the reason in the top-level
PLYEventProperties.error_message.
The masked email hint of an expired link never reaches this event, on either
platform: both native SDKs drop it when they build REDEMPTION_FAILED. The
hint goes to the web redemption listener only — see
Purchasely.addWebRedemptionListener, and do not log it.
Every field is optional: the SDK omits a key it has no value for.
Constructors
-
PLYEventPropertyRedemption(String? token, PLYEventPropertyRedemptionReceipt? receipt, List<
PLYEventPropertyRedemptionSubscription> ? subscriptions, PLYEventPropertyRedemptionPurchaseContext? purchase_context, String? error_code)
Properties
- error_code ↔ String?
-
Backend error code, on
REDEMPTION_FAILEDonly. Known values:'EXPIRED_REDEMPTION_TOKEN','INVALID_REDEMPTION_TOKEN'. A transport failure or a parsing failure carries no code.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- purchase_context ↔ PLYEventPropertyRedemptionPurchaseContext?
-
getter/setter pair
- receipt ↔ PLYEventPropertyRedemptionReceipt?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subscriptions
↔ List<
PLYEventPropertyRedemptionSubscription> ? -
getter/setter pair
- token ↔ String?
-
The redemption link token this event reports on — the raw bearer
credential, not a redacted form.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited