FrakResolvedConfig
struct FrakResolvedConfigWhat 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
Initializers
Section titled “Initializers”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)Properties
Section titled “Properties”currency
Section titled “currency”let currency: FrakCurrency?Informational only — reward formatting always reads currency from FrakMetadata.
displayLogoURL
Section titled “displayLogoURL”var displayLogoURL: String? { get }Logo to show alongside displayName, or nil when the backend has none on file.
displayName
Section titled “displayName”var displayName: String { get }Name to show a user: the sdkConfig override when the backend sent one, else name.
domain
Section titled “domain”let domain: StringMerchant’s canonical domain, not whatever domain was queried.
hidden
Section titled “hidden”let hidden: BoolMerchant asked to be hidden from the explorer. Rarely relevant natively.
let lang: FrakLanguage?merchantId
Section titled “merchantId”let merchantId: StringServer-issued merchant UUID; the identity everything else is keyed by.
let name: StringsdkConfig
Section titled “sdkConfig”let sdkConfig: ResolvedSdkConfig?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.