merge_hris_client 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AccountDetails.md +3 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/Earning.md +0 -2
  6. data/docs/Employee.md +4 -0
  7. data/docs/EmployeeRequest.md +4 -0
  8. data/docs/EndUserDetailsRequest.md +9 -7
  9. data/docs/LinkToken.md +3 -1
  10. data/docs/LinkedAccountsApi.md +2 -0
  11. data/docs/RemoteResponse.md +3 -1
  12. data/docs/ResponseTypeEnum.md +15 -0
  13. data/docs/SyncStatus.md +2 -2
  14. data/docs/SyncStatusApi.md +1 -1
  15. data/docs/Tax.md +0 -2
  16. data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -0
  17. data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
  18. data/lib/merge_hris_client/models/account_details.rb +15 -4
  19. data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
  20. data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
  21. data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
  22. data/lib/merge_hris_client/models/categories_enum.rb +17 -7
  23. data/lib/merge_hris_client/models/category_enum.rb +17 -7
  24. data/lib/merge_hris_client/models/country_enum.rb +17 -7
  25. data/lib/merge_hris_client/models/data_passthrough_request.rb +1 -1
  26. data/lib/merge_hris_client/models/earning.rb +1 -13
  27. data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
  28. data/lib/merge_hris_client/models/employee.rb +24 -2
  29. data/lib/merge_hris_client/models/employee_request.rb +24 -2
  30. data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
  31. data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
  32. data/lib/merge_hris_client/models/encoding_enum.rb +17 -7
  33. data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
  34. data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
  35. data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
  36. data/lib/merge_hris_client/models/gender_enum.rb +17 -7
  37. data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
  38. data/lib/merge_hris_client/models/issue.rb +1 -1
  39. data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
  40. data/lib/merge_hris_client/models/link_token.rb +13 -4
  41. data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
  42. data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
  43. data/lib/merge_hris_client/models/meta_response.rb +1 -1
  44. data/lib/merge_hris_client/models/method_enum.rb +17 -7
  45. data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
  46. data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
  47. data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
  48. data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
  49. data/lib/merge_hris_client/models/reason_enum.rb +17 -7
  50. data/lib/merge_hris_client/models/remote_response.rb +14 -11
  51. data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
  52. data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
  53. data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
  54. data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
  55. data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
  56. data/lib/merge_hris_client/models/sync_status.rb +0 -10
  57. data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
  58. data/lib/merge_hris_client/models/tax.rb +1 -13
  59. data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
  60. data/lib/merge_hris_client/models/units_enum.rb +17 -7
  61. data/lib/merge_hris_client/version.rb +1 -1
  62. data/lib/merge_hris_client.rb +1 -1
  63. data/spec/api/linked_accounts_api_spec.rb +1 -0
  64. data/spec/api/sync_status_api_spec.rb +1 -1
  65. data/spec/models/account_details_and_actions_spec.rb +6 -0
  66. data/spec/models/account_details_spec.rb +6 -0
  67. data/spec/models/bank_info_spec.rb +6 -0
  68. data/spec/models/benefit_spec.rb +6 -0
  69. data/spec/models/company_spec.rb +6 -0
  70. data/spec/models/deduction_spec.rb +6 -0
  71. data/spec/models/employee_payroll_run_spec.rb +6 -0
  72. data/spec/models/employee_request_spec.rb +12 -0
  73. data/spec/models/employee_spec.rb +18 -0
  74. data/spec/models/employment_spec.rb +6 -0
  75. data/spec/models/end_user_details_request_spec.rb +6 -0
  76. data/spec/models/group_spec.rb +6 -0
  77. data/spec/models/link_token_spec.rb +6 -0
  78. data/spec/models/location_spec.rb +6 -0
  79. data/spec/models/pay_group_spec.rb +6 -0
  80. data/spec/models/payroll_run_spec.rb +6 -0
  81. data/spec/models/remote_response_spec.rb +6 -0
  82. data/spec/models/response_type_enum_spec.rb +28 -0
  83. data/spec/models/team_spec.rb +6 -0
  84. data/spec/models/time_off_balance_spec.rb +6 -0
  85. data/spec/models/time_off_spec.rb +6 -0
  86. metadata +106 -102
@@ -20,18 +20,28 @@ module MergeHRISClient
20
20
  NONEXEMPT = "NONEXEMPT".freeze
21
21
  OWNER = "OWNER".freeze
22
22
 
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
23
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
+
25
+ attr_accessor :value
26
+ attr_accessor :raw_value
29
27
 
30
28
  # Builds the enum from string
31
29
  # @param [String] The enum value in the form of the string
32
30
  # @return [String] The enum value
33
31
  def build_from_hash(value)
34
- value
32
+ @raw_value = value
33
+ if ["EXEMPT", "SALARIED_NONEXEMPT", "NONEXEMPT", "OWNER", ].include? value
34
+ @value = value
35
+ else
36
+ @value = MERGE_NONSTANDARD_VALUE
37
+ end
38
+
39
+ self
40
+ end
41
+
42
+ def self.build_from_hash(value)
43
+ IssueStatusEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end
@@ -21,18 +21,28 @@ module MergeHRISClient
21
21
  OTHER = "OTHER".freeze
22
22
  PREFER_NOT_TO_DISCLOSE = "PREFER_NOT_TO_DISCLOSE".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["MALE", "FEMALE", "NON-BINARY", "OTHER", "PREFER_NOT_TO_DISCLOSE", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -20,18 +20,28 @@ module MergeHRISClient
20
20
  COST_CENTER = "COST_CENTER".freeze
21
21
  BUSINESS_UNIT = "BUSINESS_UNIT".freeze
22
22
 
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
23
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
24
+
25
+ attr_accessor :value
26
+ attr_accessor :raw_value
29
27
 
30
28
  # Builds the enum from string
31
29
  # @param [String] The enum value in the form of the string
32
30
  # @return [String] The enum value
33
31
  def build_from_hash(value)
34
- value
32
+ @raw_value = value
33
+ if ["TEAM", "DEPARTMENT", "COST_CENTER", "BUSINESS_UNIT", ].include? value
34
+ @value = value
35
+ else
36
+ @value = MERGE_NONSTANDARD_VALUE
37
+ end
38
+
39
+ self
40
+ end
41
+
42
+ def self.build_from_hash(value)
43
+ IssueStatusEnum.new.build_from_hash(value)
35
44
  end
36
45
  end
46
+
37
47
  end
@@ -53,7 +53,7 @@ module MergeHRISClient
53
53
  :'id' => :'String',
54
54
  :'status' => :'IssueStatusEnum',
55
55
  :'error_description' => :'String',
56
- :'end_user' => :'Hash<String, AnyType>',
56
+ :'end_user' => :'Hash<String, Object>',
57
57
  :'first_incident_time' => :'Time',
58
58
  :'last_incident_time' => :'Time',
59
59
  :'is_muted' => :'Boolean'
@@ -18,18 +18,28 @@ module MergeHRISClient
18
18
  ONGOING = "ONGOING".freeze
19
19
  RESOLVED = "RESOLVED".freeze
20
20
 
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def self.build_from_hash(value)
25
- new.build_from_hash(value)
26
- end
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
27
25
 
28
26
  # Builds the enum from string
29
27
  # @param [String] The enum value in the form of the string
30
28
  # @return [String] The enum value
31
29
  def build_from_hash(value)
32
- value
30
+ @raw_value = value
31
+ if ["ONGOING", "RESOLVED", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ IssueStatusEnum.new.build_from_hash(value)
33
42
  end
34
43
  end
44
+
35
45
  end
@@ -19,11 +19,14 @@ module MergeHRISClient
19
19
 
20
20
  attr_accessor :integration_name
21
21
 
22
+ attr_accessor :magic_link_url
23
+
22
24
  # Attribute mapping from ruby-style variable name to JSON key.
23
25
  def self.attribute_map
24
26
  {
25
27
  :'link_token' => :'link_token',
26
- :'integration_name' => :'integration_name'
28
+ :'integration_name' => :'integration_name',
29
+ :'magic_link_url' => :'magic_link_url'
27
30
  }
28
31
  end
29
32
 
@@ -36,7 +39,8 @@ module MergeHRISClient
36
39
  def self.openapi_types
37
40
  {
38
41
  :'link_token' => :'String',
39
- :'integration_name' => :'String'
42
+ :'integration_name' => :'String',
43
+ :'magic_link_url' => :'String'
40
44
  }
41
45
  end
42
46
 
@@ -68,6 +72,10 @@ module MergeHRISClient
68
72
  if attributes.key?(:'integration_name')
69
73
  self.integration_name = attributes[:'integration_name']
70
74
  end
75
+
76
+ if attributes.key?(:'magic_link_url')
77
+ self.magic_link_url = attributes[:'magic_link_url']
78
+ end
71
79
  end
72
80
 
73
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +107,8 @@ module MergeHRISClient
99
107
  return true if self.equal?(o)
100
108
  self.class == o.class &&
101
109
  link_token == o.link_token &&
102
- integration_name == o.integration_name
110
+ integration_name == o.integration_name &&
111
+ magic_link_url == o.magic_link_url
103
112
  end
104
113
 
105
114
  # @see the `==` method
@@ -111,7 +120,7 @@ module MergeHRISClient
111
120
  # Calculates hash code according to all attributes.
112
121
  # @return [Integer] Hash code
113
122
  def hash
114
- [link_token, integration_name].hash
123
+ [link_token, integration_name, magic_link_url].hash
115
124
  end
116
125
 
117
126
  # Builds the object from hash
@@ -18,18 +18,28 @@ module MergeHRISClient
18
18
  HOME = "HOME".freeze
19
19
  WORK = "WORK".freeze
20
20
 
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def self.build_from_hash(value)
25
- new.build_from_hash(value)
26
- end
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
27
25
 
28
26
  # Builds the enum from string
29
27
  # @param [String] The enum value in the form of the string
30
28
  # @return [String] The enum value
31
29
  def build_from_hash(value)
32
- value
30
+ @raw_value = value
31
+ if ["HOME", "WORK", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ IssueStatusEnum.new.build_from_hash(value)
33
42
  end
34
43
  end
44
+
35
45
  end
@@ -21,18 +21,28 @@ module MergeHRISClient
21
21
  HEAD_OF_HOUSEHOLD = "HEAD_OF_HOUSEHOLD".freeze
22
22
  QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD = "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["SINGLE", "MARRIED_FILING_JOINTLY", "MARRIED_FILING_SEPARATELY", "HEAD_OF_HOUSEHOLD", "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -41,7 +41,7 @@ module MergeHRISClient
41
41
  # Attribute type mapping.
42
42
  def self.openapi_types
43
43
  {
44
- :'request_schema' => :'Hash<String, AnyType>',
44
+ :'request_schema' => :'Hash<String, Object>',
45
45
  :'status' => :'LinkedAccountStatus',
46
46
  :'has_conditional_params' => :'Boolean',
47
47
  :'has_required_linked_account_params' => :'Boolean'
@@ -23,18 +23,28 @@ module MergeHRISClient
23
23
  PATCH = "PATCH".freeze
24
24
  DELETE = "DELETE".freeze
25
25
 
26
- # Builds the enum from string
27
- # @param [String] The enum value in the form of the string
28
- # @return [String] The enum value
29
- def self.build_from_hash(value)
30
- new.build_from_hash(value)
31
- end
26
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
27
+
28
+ attr_accessor :value
29
+ attr_accessor :raw_value
32
30
 
33
31
  # Builds the enum from string
34
32
  # @param [String] The enum value in the form of the string
35
33
  # @return [String] The enum value
36
34
  def build_from_hash(value)
37
- value
35
+ @raw_value = value
36
+ if ["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE", ].include? value
37
+ @value = value
38
+ else
39
+ @value = MERGE_NONSTANDARD_VALUE
40
+ end
41
+
42
+ self
43
+ end
44
+
45
+ def self.build_from_hash(value)
46
+ IssueStatusEnum.new.build_from_hash(value)
38
47
  end
39
48
  end
49
+
40
50
  end
@@ -322,18 +322,28 @@ module MergeHRISClient
322
322
  ZWR = "ZWR".freeze
323
323
  ZWL = "ZWL".freeze
324
324
 
325
- # Builds the enum from string
326
- # @param [String] The enum value in the form of the string
327
- # @return [String] The enum value
328
- def self.build_from_hash(value)
329
- new.build_from_hash(value)
330
- end
325
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
326
+
327
+ attr_accessor :value
328
+ attr_accessor :raw_value
331
329
 
332
330
  # Builds the enum from string
333
331
  # @param [String] The enum value in the form of the string
334
332
  # @return [String] The enum value
335
333
  def build_from_hash(value)
336
- value
334
+ @raw_value = value
335
+ if ["XUA", "AFN", "AFA", "ALL", "ALK", "DZD", "ADP", "AOA", "AOK", "AON", "AOR", "ARA", "ARS", "ARM", "ARP", "ARL", "AMD", "AWG", "AUD", "ATS", "AZN", "AZM", "BSD", "BHD", "BDT", "BBD", "BYN", "BYB", "BYR", "BEF", "BEC", "BEL", "BZD", "BMD", "BTN", "BOB", "BOL", "BOV", "BOP", "BAM", "BAD", "BAN", "BWP", "BRC", "BRZ", "BRE", "BRR", "BRN", "BRB", "BRL", "GBP", "BND", "BGL", "BGN", "BGO", "BGM", "BUK", "BIF", "XPF", "KHR", "CAD", "CVE", "KYD", "XAF", "CLE", "CLP", "CLF", "CNX", "CNY", "CNH", "COP", "COU", "KMF", "CDF", "CRC", "HRD", "HRK", "CUC", "CUP", "CYP", "CZK", "CSK", "DKK", "DJF", "DOP", "NLG", "XCD", "DDM", "ECS", "ECV", "EGP", "GQE", "ERN", "EEK", "ETB", "EUR", "XBA", "XEU", "XBB", "XBC", "XBD", "FKP", "FJD", "FIM", "FRF", "XFO", "XFU", "GMD", "GEK", "GEL", "DEM", "GHS", "GHC", "GIP", "XAU", "GRD", "GTQ", "GWP", "GNF", "GNS", "GYD", "HTG", "HNL", "HKD", "HUF", "IMP", "ISK", "ISJ", "INR", "IDR", "IRR", "IQD", "IEP", "ILS", "ILP", "ILR", "ITL", "JMD", "JPY", "JOD", "KZT", "KES", "KWD", "KGS", "LAK", "LVL", "LVR", "LBP", "LSL", "LRD", "LYD", "LTL", "LTT", "LUL", "LUC", "LUF", "MOP", "MKD", "MKN", "MGA", "MGF", "MWK", "MYR", "MVR", "MVP", "MLF", "MTL", "MTP", "MRU", "MRO", "MUR", "MXV", "MXN", "MXP", "MDC", "MDL", "MCF", "MNT", "MAD", "MAF", "MZE", "MZN", "MZM", "MMK", "NAD", "NPR", "ANG", "TWD", "NZD", "NIO", "NIC", "NGN", "KPW", "NOK", "OMR", "PKR", "XPD", "PAB", "PGK", "PYG", "PEI", "PEN", "PES", "PHP", "XPT", "PLN", "PLZ", "PTE", "GWE", "QAR", "XRE", "RHD", "RON", "ROL", "RUB", "RUR", "RWF", "SVC", "WST", "SAR", "RSD", "CSD", "SCR", "SLL", "XAG", "SGD", "SKK", "SIT", "SBD", "SOS", "ZAR", "ZAL", "KRH", "KRW", "KRO", "SSP", "SUR", "ESP", "ESA", "ESB", "XDR", "LKR", "SHP", "XSU", "SDD", "SDG", "SDP", "SRD", "SRG", "SZL", "SEK", "CHF", "SYP", "STN", "STD", "TVD", "TJR", "TJS", "TZS", "XTS", "THB", "XXX", "TPE", "TOP", "TTD", "TND", "TRY", "TRL", "TMT", "TMM", "USD", "USN", "USS", "UGX", "UGS", "UAH", "UAK", "AED", "UYW", "UYU", "UYP", "UYI", "UZS", "VUV", "VES", "VEB", "VEF", "VND", "VNN", "CHE", "CHW", "XOF", "YDD", "YER", "YUN", "YUD", "YUM", "YUR", "ZWN", "ZRN", "ZRZ", "ZMW", "ZMK", "ZWD", "ZWR", "ZWL", ].include? value
336
+ @value = value
337
+ else
338
+ @value = MERGE_NONSTANDARD_VALUE
339
+ end
340
+
341
+ self
342
+ end
343
+
344
+ def self.build_from_hash(value)
345
+ IssueStatusEnum.new.build_from_hash(value)
337
346
  end
338
347
  end
348
+
339
349
  end
@@ -24,18 +24,28 @@ module MergeHRISClient
24
24
  THIRTEEN_MONTHLY = "THIRTEEN-MONTHLY".freeze
25
25
  PRO_RATA = "PRO_RATA".freeze
26
26
 
27
- # Builds the enum from string
28
- # @param [String] The enum value in the form of the string
29
- # @return [String] The enum value
30
- def self.build_from_hash(value)
31
- new.build_from_hash(value)
32
- end
27
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
28
+
29
+ attr_accessor :value
30
+ attr_accessor :raw_value
33
31
 
34
32
  # Builds the enum from string
35
33
  # @param [String] The enum value in the form of the string
36
34
  # @return [String] The enum value
37
35
  def build_from_hash(value)
38
- value
36
+ @raw_value = value
37
+ if ["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMIANNUALLY", "ANNUALLY", "THIRTEEN-MONTHLY", "PRO_RATA", ].include? value
38
+ @value = value
39
+ else
40
+ @value = MERGE_NONSTANDARD_VALUE
41
+ end
42
+
43
+ self
44
+ end
45
+
46
+ def self.build_from_hash(value)
47
+ IssueStatusEnum.new.build_from_hash(value)
39
48
  end
40
49
  end
50
+
41
51
  end
@@ -24,18 +24,28 @@ module MergeHRISClient
24
24
  EVERY_SIX_MONTHS = "EVERY_SIX_MONTHS".freeze
25
25
  YEAR = "YEAR".freeze
26
26
 
27
- # Builds the enum from string
28
- # @param [String] The enum value in the form of the string
29
- # @return [String] The enum value
30
- def self.build_from_hash(value)
31
- new.build_from_hash(value)
32
- end
27
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
28
+
29
+ attr_accessor :value
30
+ attr_accessor :raw_value
33
31
 
34
32
  # Builds the enum from string
35
33
  # @param [String] The enum value in the form of the string
36
34
  # @return [String] The enum value
37
35
  def build_from_hash(value)
38
- value
36
+ @raw_value = value
37
+ if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
38
+ @value = value
39
+ else
40
+ @value = MERGE_NONSTANDARD_VALUE
41
+ end
42
+
43
+ self
44
+ end
45
+
46
+ def self.build_from_hash(value)
47
+ IssueStatusEnum.new.build_from_hash(value)
39
48
  end
40
49
  end
50
+
41
51
  end
@@ -22,18 +22,28 @@ module MergeHRISClient
22
22
  VOLUNTEER = "VOLUNTEER".freeze
23
23
  BEREAVEMENT = "BEREAVEMENT".freeze
24
24
 
25
- # Builds the enum from string
26
- # @param [String] The enum value in the form of the string
27
- # @return [String] The enum value
28
- def self.build_from_hash(value)
29
- new.build_from_hash(value)
30
- end
25
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
26
+
27
+ attr_accessor :value
28
+ attr_accessor :raw_value
31
29
 
32
30
  # Builds the enum from string
33
31
  # @param [String] The enum value in the form of the string
34
32
  # @return [String] The enum value
35
33
  def build_from_hash(value)
36
- value
34
+ @raw_value = value
35
+ if ["VACATION", "SICK", "PERSONAL", "JURY_DUTY", "VOLUNTEER", "BEREAVEMENT", ].include? value
36
+ @value = value
37
+ else
38
+ @value = MERGE_NONSTANDARD_VALUE
39
+ end
40
+
41
+ self
42
+ end
43
+
44
+ def self.build_from_hash(value)
45
+ IssueStatusEnum.new.build_from_hash(value)
37
46
  end
38
47
  end
48
+
39
49
  end
@@ -19,18 +19,28 @@ module MergeHRISClient
19
19
  GDPR = "GDPR".freeze
20
20
  OTHER = "OTHER".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["GENERAL_CUSTOMER_REQUEST", "GDPR", "OTHER", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -26,6 +26,8 @@ module MergeHRISClient
26
26
 
27
27
  attr_accessor :response_headers
28
28
 
29
+ attr_accessor :response_type
30
+
29
31
  attr_accessor :headers
30
32
 
31
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -36,6 +38,7 @@ module MergeHRISClient
36
38
  :'status' => :'status',
37
39
  :'response' => :'response',
38
40
  :'response_headers' => :'response_headers',
41
+ :'response_type' => :'response_type',
39
42
  :'headers' => :'headers'
40
43
  }
41
44
  end
@@ -51,15 +54,17 @@ module MergeHRISClient
51
54
  :'method' => :'String',
52
55
  :'path' => :'String',
53
56
  :'status' => :'Integer',
54
- :'response' => :'Hash<String, Object>',
57
+ :'response' => :'Object',
55
58
  :'response_headers' => :'Hash<String, Object>',
56
- :'headers' => :'Hash<String, AnyType>'
59
+ :'response_type' => :'ResponseTypeEnum',
60
+ :'headers' => :'Hash<String, Object>'
57
61
  }
58
62
  end
59
63
 
60
64
  # List of attributes with nullable: true
61
65
  def self.openapi_nullable
62
66
  Set.new([
67
+ :'response',
63
68
  ])
64
69
  end
65
70
 
@@ -91,9 +96,7 @@ module MergeHRISClient
91
96
  end
92
97
 
93
98
  if attributes.key?(:'response')
94
- if (value = attributes[:'response']).is_a?(Hash)
95
- self.response = value
96
- end
99
+ self.response = attributes[:'response']
97
100
  end
98
101
 
99
102
  if attributes.key?(:'response_headers')
@@ -102,6 +105,10 @@ module MergeHRISClient
102
105
  end
103
106
  end
104
107
 
108
+ if attributes.key?(:'response_type')
109
+ self.response_type = attributes[:'response_type']
110
+ end
111
+
105
112
  if attributes.key?(:'headers')
106
113
  if (value = attributes[:'headers']).is_a?(Hash)
107
114
  self.headers = value
@@ -125,10 +132,6 @@ module MergeHRISClient
125
132
  invalid_properties.push('invalid value for "status", status cannot be nil.')
126
133
  end
127
134
 
128
- if @response.nil?
129
- invalid_properties.push('invalid value for "response", response cannot be nil.')
130
- end
131
-
132
135
  invalid_properties
133
136
  end
134
137
 
@@ -138,7 +141,6 @@ module MergeHRISClient
138
141
  return false if @method.nil?
139
142
  return false if @path.nil?
140
143
  return false if @status.nil?
141
- return false if @response.nil?
142
144
  true
143
145
  end
144
146
 
@@ -152,6 +154,7 @@ module MergeHRISClient
152
154
  status == o.status &&
153
155
  response == o.response &&
154
156
  response_headers == o.response_headers &&
157
+ response_type == o.response_type &&
155
158
  headers == o.headers
156
159
  end
157
160
 
@@ -164,7 +167,7 @@ module MergeHRISClient
164
167
  # Calculates hash code according to all attributes.
165
168
  # @return [Integer] Hash code
166
169
  def hash
167
- [method, path, status, response, response_headers, headers].hash
170
+ [method, path, status, response, response_headers, response_type, headers].hash
168
171
  end
169
172
 
170
173
  # Builds the object from hash
@@ -19,18 +19,28 @@ module MergeHRISClient
19
19
  XML = "XML".freeze
20
20
  MULTIPART = "MULTIPART".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["JSON", "XML", "MULTIPART", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end