Enums+CustomStringConvertible.swift 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // Enums+CustomStringConvertible.swift
  3. // Stripe
  4. //
  5. // Autogenerated by generate_objc_enum_string_values.rb
  6. // Copyright © 2021 Stripe, Inc. All rights reserved.
  7. //
  8. import SwiftUI
  9. /// :nodoc:
  10. extension STPBankSelectionMethod: CustomStringConvertible {
  11. public var description: String {
  12. switch self {
  13. case .FPX:
  14. return "FPX"
  15. case .unknown:
  16. return "unknown"
  17. }
  18. }
  19. }
  20. /// :nodoc:
  21. extension STPBillingAddressFields: CustomStringConvertible {
  22. public var description: String {
  23. switch self {
  24. case .full:
  25. return "full"
  26. case .name:
  27. return "name"
  28. case .none:
  29. return "none"
  30. case .postalCode:
  31. return "postalCode"
  32. case .zip:
  33. return "zip"
  34. }
  35. }
  36. }
  37. /// :nodoc:
  38. extension STPShippingStatus: CustomStringConvertible {
  39. public var description: String {
  40. switch self {
  41. case .invalid:
  42. return "invalid"
  43. case .valid:
  44. return "valid"
  45. }
  46. }
  47. }
  48. /// :nodoc:
  49. extension STPShippingType: CustomStringConvertible {
  50. public var description: String {
  51. switch self {
  52. case .delivery:
  53. return "delivery"
  54. case .shipping:
  55. return "shipping"
  56. }
  57. }
  58. }