AuthorizationText

public struct AuthorizationText : Decodable, Hashable

Representation of text of an authorization to be presented to and agreed to by the user when adding a bank account funding source. The AuthorizationText presented must be submitted as part of the completion data to complete a bank account funding source, or as part of the refresh data to refresh a bank account funding source.

Properties

  • RFC5646 language tag in which the text is written

    Declaration

    Swift

    public let language: String
  • The text of the authorization

    Declaration

    Swift

    public let content: String
  • The content type used for determining how to display the content (e.g. text/html, text/plain)

    Declaration

    Swift

    public let contentType: String
  • A hash of the content

    Declaration

    Swift

    public let hash: String
  • Algorithm used to generate hash of the content. Only ‘SHA-256’ is currently used.

    Declaration

    Swift

    public let hashAlgorithm: String

Lifecycle

  • Construct an AuthorizationText:

    Declaration

    Swift

    public init(language: String, content: String, contentType: String, hash: String, hashAlgorithm: String)

    Parameters

    language

    RFC5646 language tag in which the text is written

    content

    The text of the authorization

    contenType

    The content type used for determining how to display the content (e.g. text/html, text/plain)

    hash

    A hash of the content

    hashAlgorithm

    Algorithm used to generate hash of the content. Only ‘SHA-256’ is currently used.