WinBackOffer constructor

const WinBackOffer(
  1. String identifier,
  2. double price,
  3. String priceString,
  4. int cycles,
  5. String period,
  6. String periodUnit,
  7. int periodNumberOfUnits,
)

Implementation

const factory WinBackOffer(
  /// Identifier of the discount.
  String identifier,

  /// Identifier of the discount.
  double price,

  /// Formatted price, including its currency sign, such as €3.99.
  String priceString,

  /// Number of subscription billing periods for which the user will be given the discount, such as 3.
  int cycles,

  /// Billing period of the discount, specified in ISO 8601 format.
  String period,

  /// Unit for the billing period of the discount, can be DAY, WEEK, MONTH or YEAR.
  String periodUnit,

  /// Number of units for the billing period of the discount.
  int periodNumberOfUnits,
) = _WinBackOffer;