///
/// ACHAccountKind.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 `ACHAccountKind`, backed by a C++ enum.
public typealias ACHAccountKind = margelo.nitro.rncandle.ACHAccountKind

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

  /**
   * Get the String value this ACHAccountKind represents.
   */
  public var stringValue: String {
    switch self {
    case .checking:
      return "checking"
    case .savings:
      return "savings"
    }
  }
}
