AccountDossierData

public struct AccountDossierData

Data model to setup dossier capture.

  • This is your unique ID for this dossier. This field is used to guarantee idempotency.

    Declaration

    Swift

    public var externalId: String
  • The list of primary documents to be added to the profile.

    Declaration

    Swift

    public var documents: [Document]
  • The user account id.

    Declaration

    Swift

    public var accountUuid: String
  • The dossier id.

    Declaration

    Swift

    public var dossierUuid: String?
  • Whether the dossier is primary or not. There can only be one primary dossier.

    Declaration

    Swift

    public var isPrimary: Bool
  • The upload intent.

    Warning

    When providing the .replace case keep in mind that all previously added documents and the current dossier will be replaced with a new one. Consider using .update if what you want is just update the current documents.

    Declaration

    Swift

    public var intent: AccountDossierIntent
  • Data model initializer.

    Warning

    When providing the .replace case on the intent keep in mind that all previously added documents and the current dossier will be replaced with a new one. Consider using .update if what you want is just update the current documents.

    Declaration

    Swift

    public init(externalId: String,
                documents: [Document],
                accountId: String,
                dossierId: String?,
                isPrimary: Bool,
                intent: AccountDossierIntent)

    Parameters

    externalId

    This is your unique ID for this dossier. This field is used to guarantee idempotency.

    documents

    The list of primary documents to be added to the profile.

    accountUuid

    The user account id.

    dossierUuid

    The dossier id.

    isPrimary

    Whether the dossier is primary or not. There can only be one primary dossier.

    intent

    The upload intent.