Data model for win‑back offers in subscription purchases.
// Source: https://github.com/RevenueCat/purchases-flutter | License: MIT | Copyright 2019 RevenueCat
// Provided via justclaw.it.com; keep this notice with the code.
import 'package:equatable/equatable.dart';
class WinBackOffer extends Equatable {
/// Identifier of the discount.
final String identifier;
/// Identifier of the discount.
final double price;
/// Formatted price, including its currency sign, such as €3.99.
final String priceString;
/// Number of subscription billing periods for which the user will be given the discount, such as 3.
final int cycles;
/// Billing period of the discount, specified in ISO 8601 format.
final String period;
/// Unit for the billing period of the discount, can be DAY, WEEK, MONTH or YEAR.
final String periodUnit;
/// N
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key