///
/// TransportAccountKind.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

/// Represents the JS union `TransportAccountKind`, backed by a C++ enum.
public typealias TransportAccountKind = margelo.nitro.rncandle.TransportAccountKind

extension TransportAccountKind {
  /**
   * Get a TransportAccountKind for the given String value, or
   * return `nil` if the given value was invalid/unknown.
   */
  public init?(fromString string: String) {
    switch string {
    case "individual":
      self = .individual
    case "joint":
      self = .joint
    case "business":
      self = .business
    default:
      return nil
    }
  }

  /**
   * Get the String value this TransportAccountKind represents.
   */
  public var stringValue: String {
    switch self {
    case .individual:
      return "individual"
    case .joint:
      return "joint"
    case .business:
      return "business"
    }
  }
}
