PromotionalOffer constructor

const PromotionalOffer(
  1. String identifier,
  2. String keyIdentifier,
  3. String nonce,
  4. String signature,
  5. int timestamp,
)

Implementation

const factory PromotionalOffer(
  /// Identifier agreed upon with the App Store for a discount of your choosing.
  String identifier,

  /// The identifier of the public/private key pair agreed upon with the
  /// App Store when the keys were generated.
  String keyIdentifier,

  /// One-time use random entropy-adding value for security.
  String nonce,

  /// The cryptographic signature generated by your private key.
  String signature,

  /// Timestamp of when the signature is created.
  int timestamp,
) = _PromotionalOffer;