-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathbusiness_registration_issuing_country_enum.rb
More file actions
55 lines (47 loc) · 1.38 KB
/
business_registration_issuing_country_enum.rb
File metadata and controls
55 lines (47 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
=begin
#Bandwidth
#Bandwidth's Communication APIs
The version of the OpenAPI document: 1.0.0
Contact: letstalk@bandwidth.com
Generated by: https://openapi-generator.tech
Generator version: 7.17.0
=end
require 'date'
require 'time'
module Bandwidth
class BusinessRegistrationIssuingCountryEnum
USA = 'USA'.freeze
CAN = 'CAN'.freeze
HKG = 'HKG'.freeze
GBR = 'GBR'.freeze
IRL = 'IRL'.freeze
BRA = 'BRA'.freeze
NLD = 'NLD'.freeze
AUS = 'AUS'.freeze
FRA = 'FRA'.freeze
NZL = 'NZL'.freeze
DEU = 'DEU'.freeze
ESP = 'ESP'.freeze
CHE = 'CHE'.freeze
CYP = 'CYP'.freeze
IND = 'IND'.freeze
CHN = 'CHN'.freeze
BGR = 'BGR'.freeze
def self.all_vars
@all_vars ||= [USA, CAN, HKG, GBR, IRL, BRA, NLD, AUS, FRA, NZL, DEU, ESP, CHE, CYP, IND, CHN, BGR].freeze
end
# Builds the enum from string
# @param [String] The enum value in the form of the string
# @return [String] The enum value
def self.build_from_hash(value)
new.build_from_hash(value)
end
# Builds the enum from string
# @param [String] The enum value in the form of the string
# @return [String] The enum value
def build_from_hash(value)
return value if BusinessRegistrationIssuingCountryEnum.all_vars.include?(value)
raise "Invalid ENUM value #{value} for class #BusinessRegistrationIssuingCountryEnum"
end
end
end