PaymentMethod

An object representing a Svea App Wallet payment method.

PropertyDescriptionTypeMandatory
cardNumberMasked card number.StringYes
labelCustom name set for the card.StringYes
aliasUnique identifier for the card.StringYes
typeIdentifies the type of payment method.PaymentTypeYes
subTypeIdentifies the sub type of the card type.PaymentSubTypeYes
expiryInfoThe payment method expiry date if applicable.ExpiryInfoNo
isDefaultDefines if the card is the default payment methodBooleanYes
Copy
Copied
struct PaymentMethod {
    var cardNumber: String
    var expiryDate: String
    var label: String
    var alias: String
    var type: PaymentType
    var subType: PaymentSubType
    var expiryInfo: ExpiryInfo?
    var isDefault: Bool
}