InquiryConfiguration
public struct InquiryConfiguration
Defines the configuration for an Inquiry.
-
Creates a configuration object used for creating an Inquiry using a template ID.
Declaration
Swift
public init(templateId: String, environment: Environment? = .production, note: String? = nil, fields: Fields? = nil, theme: InquiryTheme? = nil)Parameters
templateIdAn existing template that determines how the flow is customized.
environmentThe Persona API environment on which to create inquiries.
noteAny string you want for your own bookkeeping.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
-
Creates a configuration object used for creating an Inquiry using a template ID and reference ID.
Declaration
Swift
public init(templateId: String, referenceId: String, environment: Environment? = .production, note: String? = nil, fields: Fields? = nil, theme: InquiryTheme? = nil)Parameters
templateIdAn existing template that determines how the flow is customized.
referenceIdThe identifier can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
noteAny string you want for your own bookkeeping.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
-
Creates a configuration object used for creating an Inquiry using a template ID and account ID.
Declaration
Swift
public init(templateId: String, accountId: String, environment: Environment? = .production, note: String? = nil, fields: Fields? = nil, theme: InquiryTheme? = nil)Parameters
environmentThe Persona API environment on which to create inquiries.
templateIdAn existing template that determines how the flow is customized.
accountIdThe account to associate this inquiry with. The account can be used to monitor user progress in newly created inquiries.
environmentThe Persona API environment on which to create inquiries.
noteAny string you want for your own bookkeeping.
fieldsAny existing user data you want to attach to the inquiry.
themeAn optional theme to apply.
-
Creates a configuration object used for creating an Inquiry using an inquiry ID.
Declaration
Swift
public init(inquiryId: String, accessToken: String? = nil, theme: InquiryTheme? = nil)Parameters
inquiryIdAn existing inquiry.
themeAn optional theme to apply.
View on GitHub
InquiryConfiguration Structure Reference