Campaign
Ce contenu n’est pas encore disponible dans votre langue.
struct CampaignOne active campaign, as returned by GET /user/merchant/estimated-rewards.
Arrives sorted by campaign priority, descending; do not re-sort it.
Conforms to Swift.Equatable, Swift.Hashable, Swift.Sendable
Defined in: Sources/FrakSDK/Rewards/Rewards.swift:58
Properties
Section titled “Properties”campaignId
Section titled “campaignId”let campaignId: StringdefaultLockupSeconds
Section titled “defaultLockupSeconds”let defaultLockupSeconds: Double?expiresAt
Section titled “expiresAt”let expiresAt: String?ISO-8601 expiry, or nil for a campaign that never expires.
interactionTypeKey
Section titled “interactionTypeKey”let interactionTypeKey: StringThe interaction that triggers this campaign, e.g. purchase. Open on the wire.
maxRewardsPerUser
Section titled “maxRewardsPerUser”let maxRewardsPerUser: Double?let name: Stringreferee
Section titled “referee”let referee: EstimatedReward?What the person arriving through the link earns.
referrer
Section titled “referrer”let referrer: EstimatedReward?What the sharer earns. Absent when the campaign rewards only the referee.
Operators
Section titled “Operators”!=(::)
static func != (lhs: Self, rhs: Self) -> BoolReturns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values a and b, a != b
implies that a == b is false.
This is the default implementation of the not-equal-to operator (!=)
for any type that conforms to Equatable.
- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.