-
public final class Inquiry.TemplateBuilderGet a this builder by calling Inquiry.fromTemplate.
-
-
Method Summary
Modifier and Type Method Description final Inquiry.TemplateBuilderreferenceId(String referenceId)You can generate and provide a unique id which we will associate with the inquiry. final Inquiry.TemplateBuilderaccountId(String accountId)Persona-maintained account used to monitor user progress across inquiries. final Inquiry.TemplateBuilderfields(Fields fields)Pre-populate the Inquiry with custom fields final Inquiry.TemplateBuildernote(String note)Unstructured field for your custom use final Inquiry.TemplateBuilderenvironment(Environment environment)The Persona API environment on which to create inquiries. final Inquiry.TemplateBuildertheme(@StyleRes() Integer theme)Theme to apply to the Inquiry flow final Inquirybuild()Create the Inquiry objects with the fields set. -
-
Method Detail
-
referenceId
final Inquiry.TemplateBuilder referenceId(String referenceId)
You can generate and provide a unique id which we will associate with the inquiry. The identifier can be used to monitor user progress in newly created inquiries.
Setting this will null out accountId.
- Parameters:
referenceId- custom identifier for the inquiry
-
accountId
final Inquiry.TemplateBuilder accountId(String accountId)
Persona-maintained account used to monitor user progress across inquiries.
Setting this will null out referenceId.
- Parameters:
accountId- custom identifier for the inquiry
-
fields
final Inquiry.TemplateBuilder fields(Fields fields)
Pre-populate the Inquiry with custom fields
- Parameters:
fields- custom data to store on the inquiry
-
note
@Deprecated(message = Use #fields instead of #note) final Inquiry.TemplateBuilder note(String note)
Unstructured field for your custom use
- Parameters:
note- any string you want for your own bookkeeping
-
environment
final Inquiry.TemplateBuilder environment(Environment environment)
The Persona API environment on which to create inquiries. For sandbox and production, use Environment.SANDBOX and Environment.PRODUCTION respectively.
- Parameters:
environment- either Environment.SANDBOX or Environment.PRODUCTION
-
theme
final Inquiry.TemplateBuilder theme(@StyleRes() Integer theme)
Theme to apply to the Inquiry flow
- Parameters:
theme- a valid StyleRes to apply to an activity
-
-
-
-