InPlayerAccessFee

public struct InPlayerAccessFee : Codable

Access fee model

  • Voucher Rule

    Declaration

    Swift

    public let voucherRule: InPlayerVoucherRule?
  • id

    Unique item ID

    Declaration

    Swift

    public let id: Int?
  • Unique merchant ID

    Declaration

    Swift

    public let merchantId: Int?
  • The amount of the asset’s fee

    Declaration

    Swift

    public let amount: Double?
  • The currency of the asset’s fee

    Declaration

    Swift

    public let currency: String?
  • The description of the asset

    Declaration

    Swift

    public let descriptionField: String?
  • Item model

    Declaration

    Swift

    public let item: InPlayerItem?
  • Access type model

    Declaration

    Swift

    public let accessType: InPlayerAccessType?
  • The number denoting the duration of the access

    Declaration

    Swift

    public let trialPeriod: InPlayerTrialPeriod?
  • The initial one-time fee that is charged when subscribing for accessing the asset Note: This only applies for the subscription model

    Declaration

    Swift

    public let setupFee: InPlayerSetupFee?
  • Geo restriction model

    Declaration

    Swift

    public let geoRestriction: InPlayerGeoRestriction?
  • Seasonal fee model

    Declaration

    Swift

    public let seasonalFee: InPlayerSeasonalFee?
  • Undocumented

    Declaration

    Swift

    public let externalFees: [InPlayerExternalFee]?
  • The date the access expires, measured in seconds since 1 January 1970 (UTC) Note: This only applies for the custom access type

    Declaration

    Swift

    public let expiresAt: Double?
  • Undocumented

    Declaration

    Swift

    public let startsAt: Double?
  • Decoder Method

    Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Encoder method

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws