Aller au contenu

FrakResolvedConfig

Ce contenu n’est pas encore disponible dans votre langue.

struct FrakResolvedConfig

What the backend knows about this merchant, as resolved by GET /user/merchant/resolve.

The whole tree is public because its actual reader, the sharing sheet, lives in the separate FrakSDKUI target. css, productId and allowedDomains are deliberately absent.

Nothing here is Decodable, and adding it back is a one-way door: the conformance is public API. Decoding lives on private wire types in ResolvedConfigDecoder.swift.

Conforms to Swift.Equatable, Swift.Hashable, Swift.Sendable

Defined in: Sources/FrakSDK/Config/FrakResolvedConfig.swift:8

init(merchantId:name:domain:lang:currency:hidden:sdkConfig:)

Section titled “init(merchantId:name:domain:lang:currency:hidden:sdkConfig:)”
init(
merchantId: String,
name: String,
domain: String,
lang: FrakLanguage? = nil,
currency: FrakCurrency? = nil,
hidden: Bool = false,
sdkConfig: ResolvedSdkConfig? = nil
)
let currency: FrakCurrency?

Informational only — reward formatting always reads currency from FrakMetadata.

var displayLogoURL: String? { get }

Logo to show alongside displayName, or nil when the backend has none on file.

var displayName: String { get }

Name to show a user: the sdkConfig override when the backend sent one, else name.

let domain: String

Merchant’s canonical domain, not whatever domain was queried.

let hidden: Bool

Merchant asked to be hidden from the explorer. Rarely relevant natively.

let lang: FrakLanguage?
let merchantId: String

Server-issued merchant UUID; the identity everything else is keyed by.

let name: String
let sdkConfig: ResolvedSdkConfig?

!=(::)

static func != (lhs: Self, rhs: Self) -> Bool

Returns 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.