SKPaymentDiscountWrapper class
Dart wrapper around StoreKit's SKPaymentDiscount.
Used to indicate a discount is applicable to a payment. The SKPaymentDiscountWrapper instance should be assigned to the SKPaymentWrapper object to which the discount should be applied. Discount offers are set up in App Store Connect. See Implementing Promotional Offers in Your App for more information.
- Annotations
-
- @immutable
- @JsonSerializable(createToJson: true)
Constructors
- SKPaymentDiscountWrapper({required String identifier, required String keyIdentifier, required String nonce, required String signature, required int timestamp})
-
Creates a new SKPaymentDiscountWrapper with the provided information.
const
-
SKPaymentDiscountWrapper.fromJson(Map<
String, dynamic> map) -
Constructs an instance of this from a key value map of data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- identifier → String
-
The identifier of the discount offer.
final
- keyIdentifier → String
-
A string identifying the key that is used to generate the signature.
final
- nonce → String
-
A universal unique identifier (UUID) created together with the signature.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → String
-
A cryptographically signed string representing the to properties of the
promotional offer.
final
- timestamp → int
-
The date and time the signature was created.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Creates a Map object describes the payment object.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override