ReadyRemitConfiguration.swift
public struct ReadyRemitConfiguration {
public let colorPalette: ColorPalette
public let defaultCountry: DefaultCountry?
public let environment: ReadyRemitEnvironment
public let fixedRemittanceServiceProvider: RemittanceServiceProvider?
public let fixedTransferMethod: TransferMethod?
public let homeScreenContent: HomeScreenContent
public let idleTimeoutInterval: TimeInterval?
public let localization: Localization
public let sourceAccounts: [SourceAccount]?
public init(
colorPalette: ColorPalette = .default,
defaultCountry: DefaultCountry? = .none,
enviornment: ReadyRemitEnvironment = .default,
fixedRemittanceServiceProvider: RemittanceServiceProvider? = .none,
fixedTransferMethod: TransferMethod? = .none,
homeScreenContent: HomeScreenContent = .default,
idleTimeoutInterval: TimeInterval? = .none,
localization: Localization = .default,
virtualSenderAccounts: [SourceAccount]? = .none
) {
self.colorPalette = colorPalette
self.defaultCountry = defaultCountry
self.environment = enviornment
self.fixedRemittanceServiceProvider = fixedRemittanceServiceProvider
self.fixedTransferMethod = fixedTransferMethod
self.homeScreenContent = homeScreenContent
self.idleTimeoutInterval = idleTimeoutInterval
self.localization = localization
self.sourceAccounts = virtualSenderAccounts
}
}
Property Type Description colorPalette ColorPalette A group of color tokens that collectively define a theme defaultCountry DefaultCountry ?(Optional) The pre-selected destination country for a transfer environment ReadyRemitEnvironment A configured space that includes infrastructure, settings, and data to support a specific stage of the development lifecycle fixedRemittanceServiceProvider RemittanceServiceProvider ?A specific remittance service provider to be used for transfers fixedTransferMethod TransferMethod ?A specific transfer method to be used for transfers homeScreenContent HomeScreenContent The title and subtitle displayed on the Home Screen idleTimeoutInterval TimeInterval ?(Optional) The threshold, in seconds, a session may remain inactive prior to closing the SDK. If specified, the minimum allowed value is 61 seconds; values below this will be ignored. localization Localization The language and region that determine how localized content is presented virtualSenderAccounts [SourceAccount ]? A list of accounts a sender may choose from to fund a transfer
Playground.swift
private let configuration: ReadyRemitConfiguration = .init(
colorPalette: .default,
defaultCountry: .none,
enviornment: .default,
fixedRemittanceServiceProvider: .none,
fixedTransferMethod: .none,
homeScreenContent: .default,
idleTimeoutInterval: .none,
localization: .default,
virtualSenderAccounts: .none
)