ProvisionVirtualCardInput

public struct ProvisionVirtualCardInput : Equatable

Input object for a Provision Card operation, using SudoVirtualCardsClient.

Properties

  • identifier of the funding source to use to fund the provisioned virtual card.

    Declaration

    Swift

    public let fundingSourceId: String
  • Name of the card holder.

    Declaration

    Swift

    public let cardHolder: String
  • Address used as the billing address of the card. If billing address is nil, the default billing address will be used.

    Declaration

    Swift

    public let billingAddress: Address?
  • Currency to provision the card with.

    Declaration

    Swift

    public let currency: String
  • Proof of Sudo ownership for provisioning cards. The ownership proof must contain an audience of “sudoplatform.virtual-cards.virtual-card” and can be obtained from SudoProfiles SDK via getOwnershipProof API.

    Declaration

    Swift

    public let ownershipProof: String
  • Custom metadata to associate with the virtual card. Can be used for values such as card aliases, card colors, image references, etc.

    There is a limit of 3k characters when data is serialized.

    Declaration

    Swift

    public let metadata: JSONValue?
  • Associated pseudonym of the user.

    Declaration

    Swift

    @available(*, deprecated, message: "Please use metadata to store and retrieve alias instead")
    public let alias: String?

Lifecycle