InstrumentDataComponents

public struct InstrumentDataComponents : Sendable

Components of InstrumentData.

  • Initializes InstrumentDataComponents with the encrypted card data.

    Declaration

    Swift

    public init(encryptedCardData: Data, publicKeyIdentifier: String? = nil)

    Parameters

    encryptedCardData

    The encrypted card data.

    publicKeyIdentifier

    Identifier of the public key.

  • Initializes InstrumentDataComponents with scheme, type, version and push receipt payload.

    Declaration

    Swift

    public init(
        scheme: DigitalCard.Scheme,
        payload: String,
        type: String = "pushAccountReceipt",
        version: String? = nil
    )

    Parameters

    scheme

    Primary card scheme

    payload

    Push receipt value as received from issuer wallet

    type

    Type of issuer push receipt.

    version

    Version of push receipt used

  • Builds the instrument data.

    Declaration

    Swift

    public func instrumentData() -> InstrumentData

    Return Value

    InstrumentData.