DiscountIOS class

Discount information returned from the store. @see https://openiap.dev/docs/types/subscription-offer @deprecated Use the standardized SubscriptionOffer type instead for cross-platform compatibility. Scheduled for removal in OpenIAP 3.0.

Constructors

DiscountIOS({required String identifier, String? localizedPrice, required int numberOfPeriods, required PaymentModeIOS paymentMode, required String price, required double priceAmount, required String subscriptionPeriod, required String type})
const
DiscountIOS.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
identifier → String
final
localizedPrice → String?
final
numberOfPeriods → int
final
paymentMode → PaymentModeIOS
final
price → String
final
priceAmount → double
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscriptionPeriod → String
final
type → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited