ReissueReplaceCardRequest

public struct ReissueReplaceCardRequest : Encodable

Reissue/replace card request model.

  • Unique identification of the card in your system.

    Declaration

    Swift

    public var externalId: String
  • Whether the card should be reissued or replaced.

    Declaration

    Swift

    public var action: ReissueReplaceAction
  • The reason whether the card is reissued/replaced. The keys can be mapped from ReissueReplaceReason if you want type safety.

    Declaration

    Swift

    public var reason: String
  • Description.

    Declaration

    Swift

    public var description: String?
  • Shipping address details.

    Declaration

    Swift

    public var shippingAddress: Address?
  • Card custom fields. The keys can be mapped from CardCustomField if you want type safety.

    Declaration

    Swift

    public var customFields: [String : Any]?
  • Service fees to be applied to a card activation.

    Declaration

    Swift

    public var serviceFees: [CardServiceFee]?
  • Auxiliary constructor.

    Declaration

    Swift

    public init(externalId: String,
                action: ReissueReplaceAction,
                reason: String,
                description: String? = nil,
                shippingAddress: Address? = nil,
                customFields: [String: Any]? = nil,
                serviceFees: [CardServiceFee]? = nil)

    Parameters

    externalId

    Unique identification of the card in your system.

    action

    Whether the card should be reissued or replaced.

    reason

    The reason whether the card is reissued/replaced. The keys can be mapped from ReissueReplaceReason if you want type safety.

    description

    Description.

    shippingAddress

    Shipping address details.

    customFields

    Card custom fields. The keys can be mapped from CardCustomField if you want type safety.

    serviceFees

    Service fees to be applied to a card activation.

  • Encodes this value into the given encoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.