// Copyright © 2022 Olo Inc. All rights reserved.
// This software is made available under the Olo Pay SDK License (See LICENSE.md file)
//
//  OPCardFieldExtensions.swift
//  OlopaysdkReactNative
//
//  Created by Justin Anderson on 4/15/25.
//
import OloPaySDK

extension OPCardField {
    static func from(_ value: String) -> OPCardField {
        switch value {
        case "expiration":
            return .expiration
        case "cvv":
            return .cvv
        case "postalCode":
            return .postalCode
        default:
            return .number
        }
    }
}
