EntitlementConsumption

public struct EntitlementConsumption : Equatable

A representation of the consumption of a particular entitlement

Properties

  • Name of the consumed entitlement.

    Declaration

    Swift

    public var name: String
  • Consumer of the entitlement. If present this indicates the sub-user level resource responsible for consumption of the entitlement. If not present, the entitlement is consumed directly by the user.

    Declaration

    Swift

    public var consumer: EntitlementConsumer?
  • The maximum amount of the entitlement that can be consumed by the consumer

    Declaration

    Swift

    public var value: Int
  • The amount of the entitlement that has been consumed

    Declaration

    Swift

    public var consumed: Int
  • The amount of the entitlement that is yet to be consumed. Provided for convenience. available + consumed always equals value

    Declaration

    Swift

    public var available: Int
  • Time at which this entitlement was first consumed

    Declaration

    Swift

    public var firstConsumedAtEpochMs: Double?
  • Time of the most recent consumption of this entitlement

    Declaration

    Swift

    public var lastConsumedAtEpochMs: Double?