merge_ats_client 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (138) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -6
  3. data/docs/AccountDetails.md +3 -1
  4. data/docs/AccountDetailsAndActions.md +2 -0
  5. data/docs/ActivitiesApi.md +7 -3
  6. data/docs/Activity.md +1 -1
  7. data/docs/ApplicationsApi.md +84 -2
  8. data/docs/AttachmentsApi.md +7 -3
  9. data/docs/CandidatesApi.md +2 -2
  10. data/docs/DataPassthroughRequest.md +3 -1
  11. data/docs/Department.md +1 -1
  12. data/docs/DepartmentsApi.md +2 -2
  13. data/docs/EEOC.md +1 -1
  14. data/docs/EeocsApi.md +7 -3
  15. data/docs/EndUserDetailsRequest.md +9 -7
  16. data/docs/InterviewsApi.md +7 -3
  17. data/docs/Job.md +4 -2
  18. data/docs/JobInterviewStage.md +2 -2
  19. data/docs/JobInterviewStagesApi.md +2 -2
  20. data/docs/JobsApi.md +7 -3
  21. data/docs/LinkToken.md +3 -1
  22. data/docs/LinkedAccountsApi.md +2 -0
  23. data/docs/Offer.md +1 -1
  24. data/docs/OffersApi.md +7 -3
  25. data/docs/Office.md +1 -1
  26. data/docs/OfficesApi.md +2 -2
  27. data/docs/RejectReason.md +1 -1
  28. data/docs/RejectReasonsApi.md +2 -2
  29. data/docs/RemoteResponse.md +5 -1
  30. data/docs/RemoteUser.md +1 -1
  31. data/docs/ResponseTypeEnum.md +15 -0
  32. data/docs/ScheduledInterview.md +1 -1
  33. data/docs/Scorecard.md +1 -1
  34. data/docs/ScorecardsApi.md +7 -3
  35. data/docs/SyncStatus.md +2 -2
  36. data/docs/SyncStatusApi.md +1 -1
  37. data/docs/Tag.md +1 -1
  38. data/docs/TagsApi.md +2 -2
  39. data/docs/UpdateApplicationStageRequest.md +20 -0
  40. data/docs/UsersApi.md +7 -3
  41. data/lib/merge_ats_client/api/activities_api.rb +16 -2
  42. data/lib/merge_ats_client/api/applications_api.rb +80 -2
  43. data/lib/merge_ats_client/api/attachments_api.rb +16 -2
  44. data/lib/merge_ats_client/api/candidates_api.rb +2 -2
  45. data/lib/merge_ats_client/api/departments_api.rb +2 -2
  46. data/lib/merge_ats_client/api/eeocs_api.rb +16 -2
  47. data/lib/merge_ats_client/api/interviews_api.rb +16 -2
  48. data/lib/merge_ats_client/api/job_interview_stages_api.rb +2 -2
  49. data/lib/merge_ats_client/api/jobs_api.rb +16 -2
  50. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -0
  51. data/lib/merge_ats_client/api/offers_api.rb +16 -2
  52. data/lib/merge_ats_client/api/offices_api.rb +2 -2
  53. data/lib/merge_ats_client/api/reject_reasons_api.rb +2 -2
  54. data/lib/merge_ats_client/api/scorecards_api.rb +16 -2
  55. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  56. data/lib/merge_ats_client/api/tags_api.rb +2 -2
  57. data/lib/merge_ats_client/api/users_api.rb +16 -2
  58. data/lib/merge_ats_client/models/access_role_enum.rb +17 -7
  59. data/lib/merge_ats_client/models/account_details.rb +15 -4
  60. data/lib/merge_ats_client/models/account_details_and_actions.rb +12 -1
  61. data/lib/merge_ats_client/models/account_details_and_actions_status_enum.rb +17 -7
  62. data/lib/merge_ats_client/models/activity.rb +1 -1
  63. data/lib/merge_ats_client/models/activity_type_enum.rb +17 -7
  64. data/lib/merge_ats_client/models/application.rb +1 -1
  65. data/lib/merge_ats_client/models/application_request.rb +3 -3
  66. data/lib/merge_ats_client/models/attachment_request.rb +2 -2
  67. data/lib/merge_ats_client/models/attachment_type_enum.rb +17 -7
  68. data/lib/merge_ats_client/models/candidate.rb +1 -1
  69. data/lib/merge_ats_client/models/candidate_request.rb +3 -3
  70. data/lib/merge_ats_client/models/categories_enum.rb +17 -7
  71. data/lib/merge_ats_client/models/category_enum.rb +17 -7
  72. data/lib/merge_ats_client/models/data_passthrough_request.rb +15 -6
  73. data/lib/merge_ats_client/models/department.rb +1 -1
  74. data/lib/merge_ats_client/models/disability_status_enum.rb +17 -7
  75. data/lib/merge_ats_client/models/eeoc.rb +1 -1
  76. data/lib/merge_ats_client/models/email_address_type_enum.rb +17 -7
  77. data/lib/merge_ats_client/models/encoding_enum.rb +18 -7
  78. data/lib/merge_ats_client/models/end_user_details_request.rb +28 -11
  79. data/lib/merge_ats_client/models/gender_enum.rb +17 -7
  80. data/lib/merge_ats_client/models/issue.rb +1 -1
  81. data/lib/merge_ats_client/models/issue_status_enum.rb +17 -7
  82. data/lib/merge_ats_client/models/job.rb +14 -3
  83. data/lib/merge_ats_client/models/job_interview_stage.rb +3 -2
  84. data/lib/merge_ats_client/models/job_status_enum.rb +17 -7
  85. data/lib/merge_ats_client/models/link_token.rb +13 -4
  86. data/lib/merge_ats_client/models/meta_response.rb +1 -1
  87. data/lib/merge_ats_client/models/method_enum.rb +17 -7
  88. data/lib/merge_ats_client/models/offer.rb +1 -1
  89. data/lib/merge_ats_client/models/offer_status_enum.rb +17 -7
  90. data/lib/merge_ats_client/models/office.rb +1 -1
  91. data/lib/merge_ats_client/models/overall_recommendation_enum.rb +17 -7
  92. data/lib/merge_ats_client/models/phone_number_type_enum.rb +17 -7
  93. data/lib/merge_ats_client/models/race_enum.rb +17 -7
  94. data/lib/merge_ats_client/models/reason_enum.rb +17 -7
  95. data/lib/merge_ats_client/models/reject_reason.rb +1 -1
  96. data/lib/merge_ats_client/models/remote_response.rb +23 -9
  97. data/lib/merge_ats_client/models/remote_user.rb +1 -1
  98. data/lib/merge_ats_client/models/request_format_enum.rb +17 -7
  99. data/lib/merge_ats_client/models/response_type_enum.rb +45 -0
  100. data/lib/merge_ats_client/models/scheduled_interview.rb +2 -2
  101. data/lib/merge_ats_client/models/scheduled_interview_status_enum.rb +17 -7
  102. data/lib/merge_ats_client/models/scorecard.rb +2 -2
  103. data/lib/merge_ats_client/models/sync_status.rb +0 -10
  104. data/lib/merge_ats_client/models/sync_status_status_enum.rb +18 -7
  105. data/lib/merge_ats_client/models/tag.rb +2 -2
  106. data/lib/merge_ats_client/models/{remote_data_request.rb → update_application_stage_request.rb} +26 -35
  107. data/lib/merge_ats_client/models/url_type_enum.rb +18 -7
  108. data/lib/merge_ats_client/models/veteran_status_enum.rb +17 -7
  109. data/lib/merge_ats_client/models/visibility_enum.rb +17 -7
  110. data/lib/merge_ats_client/version.rb +1 -1
  111. data/lib/merge_ats_client.rb +2 -1
  112. data/spec/api/activities_api_spec.rb +3 -1
  113. data/spec/api/applications_api_spec.rb +16 -1
  114. data/spec/api/attachments_api_spec.rb +3 -1
  115. data/spec/api/candidates_api_spec.rb +1 -1
  116. data/spec/api/departments_api_spec.rb +1 -1
  117. data/spec/api/eeocs_api_spec.rb +3 -1
  118. data/spec/api/interviews_api_spec.rb +3 -1
  119. data/spec/api/job_interview_stages_api_spec.rb +1 -1
  120. data/spec/api/jobs_api_spec.rb +3 -1
  121. data/spec/api/linked_accounts_api_spec.rb +1 -0
  122. data/spec/api/offers_api_spec.rb +3 -1
  123. data/spec/api/offices_api_spec.rb +1 -1
  124. data/spec/api/reject_reasons_api_spec.rb +1 -1
  125. data/spec/api/scorecards_api_spec.rb +3 -1
  126. data/spec/api/sync_status_api_spec.rb +1 -1
  127. data/spec/api/tags_api_spec.rb +1 -1
  128. data/spec/api/users_api_spec.rb +3 -1
  129. data/spec/models/account_details_and_actions_spec.rb +6 -0
  130. data/spec/models/account_details_spec.rb +6 -0
  131. data/spec/models/data_passthrough_request_spec.rb +6 -0
  132. data/spec/models/end_user_details_request_spec.rb +6 -0
  133. data/spec/models/job_spec.rb +6 -0
  134. data/spec/models/link_token_spec.rb +6 -0
  135. data/spec/models/remote_response_spec.rb +12 -0
  136. data/spec/models/response_type_enum_spec.rb +28 -0
  137. data/spec/models/update_application_stage_request_spec.rb +40 -0
  138. metadata +115 -108
@@ -25,18 +25,28 @@ module MergeATSClient
25
25
  SIGNED = "SIGNED".freeze
26
26
  DEPRECATED = "DEPRECATED".freeze
27
27
 
28
- # Builds the enum from string
29
- # @param [String] The enum value in the form of the string
30
- # @return [String] The enum value
31
- def self.build_from_hash(value)
32
- new.build_from_hash(value)
33
- end
28
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
29
+
30
+ attr_accessor :value
31
+ attr_accessor :raw_value
34
32
 
35
33
  # Builds the enum from string
36
34
  # @param [String] The enum value in the form of the string
37
35
  # @return [String] The enum value
38
36
  def build_from_hash(value)
39
- value
37
+ @raw_value = value
38
+ if ["DRAFT", "APPROVAL-SENT", "APPROVED", "SENT", "SENT-MANUALLY", "OPENED", "DENIED", "SIGNED", "DEPRECATED", ].include? value
39
+ @value = value
40
+ else
41
+ @value = MERGE_NONSTANDARD_VALUE
42
+ end
43
+
44
+ self
45
+ end
46
+
47
+ def self.build_from_hash(value)
48
+ IssueStatusEnum.new.build_from_hash(value)
40
49
  end
41
50
  end
51
+
42
52
  end
@@ -29,7 +29,7 @@ module MergeATSClient
29
29
 
30
30
  attr_accessor :remote_data
31
31
 
32
- # Indicates whether or not this object has been deleted on the third-party.
32
+ # Indicates whether or not this object has been deleted by third party webhooks.
33
33
  attr_accessor :remote_was_deleted
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  STRONG_YES = "STRONG_YES".freeze
22
22
  NO_DECISION = "NO_DECISION".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 ["DEFINITELY_NO", "NO", "YES", "STRONG_YES", "NO_DECISION", ].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
@@ -21,18 +21,28 @@ module MergeATSClient
21
21
  SKYPE = "SKYPE".freeze
22
22
  OTHER = "OTHER".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 ["HOME", "WORK", "MOBILE", "SKYPE", "OTHER", ].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
@@ -24,18 +24,28 @@ module MergeATSClient
24
24
  TWO_OR_MORE_RACES = "TWO_OR_MORE_RACES".freeze
25
25
  DECLINE_TO_SELF_IDENTIFY = "DECLINE_TO_SELF_IDENTIFY".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 ["AMERICAN_INDIAN_OR_ALASKAN_NATIVE", "ASIAN", "BLACK_OR_AFRICAN_AMERICAN", "HISPANIC_OR_LATINO", "WHITE", "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER", "TWO_OR_MORE_RACES", "DECLINE_TO_SELF_IDENTIFY", ].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
@@ -19,18 +19,28 @@ module MergeATSClient
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,7 +26,7 @@ module MergeATSClient
26
26
 
27
27
  attr_accessor :remote_data
28
28
 
29
- # Indicates whether or not this object has been deleted on the third-party.
29
+ # Indicates whether or not this object has been deleted by third party webhooks.
30
30
  attr_accessor :remote_was_deleted
31
31
 
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -24,6 +24,10 @@ module MergeATSClient
24
24
 
25
25
  attr_accessor :response
26
26
 
27
+ attr_accessor :response_headers
28
+
29
+ attr_accessor :response_type
30
+
27
31
  attr_accessor :headers
28
32
 
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,6 +37,8 @@ module MergeATSClient
33
37
  :'path' => :'path',
34
38
  :'status' => :'status',
35
39
  :'response' => :'response',
40
+ :'response_headers' => :'response_headers',
41
+ :'response_type' => :'response_type',
36
42
  :'headers' => :'headers'
37
43
  }
38
44
  end
@@ -48,7 +54,9 @@ module MergeATSClient
48
54
  :'method' => :'String',
49
55
  :'path' => :'String',
50
56
  :'status' => :'Integer',
51
- :'response' => :'Hash<String, Object>',
57
+ :'response' => :'Object',
58
+ :'response_headers' => :'Hash<String, Object>',
59
+ :'response_type' => :'ResponseTypeEnum',
52
60
  :'headers' => :'Hash<String, Object>'
53
61
  }
54
62
  end
@@ -56,6 +64,7 @@ module MergeATSClient
56
64
  # List of attributes with nullable: true
57
65
  def self.openapi_nullable
58
66
  Set.new([
67
+ :'response',
59
68
  ])
60
69
  end
61
70
 
@@ -87,11 +96,19 @@ module MergeATSClient
87
96
  end
88
97
 
89
98
  if attributes.key?(:'response')
90
- if (value = attributes[:'response']).is_a?(Hash)
91
- self.response = value
99
+ self.response = attributes[:'response']
100
+ end
101
+
102
+ if attributes.key?(:'response_headers')
103
+ if (value = attributes[:'response_headers']).is_a?(Hash)
104
+ self.response_headers = value
92
105
  end
93
106
  end
94
107
 
108
+ if attributes.key?(:'response_type')
109
+ self.response_type = attributes[:'response_type']
110
+ end
111
+
95
112
  if attributes.key?(:'headers')
96
113
  if (value = attributes[:'headers']).is_a?(Hash)
97
114
  self.headers = value
@@ -115,10 +132,6 @@ module MergeATSClient
115
132
  invalid_properties.push('invalid value for "status", status cannot be nil.')
116
133
  end
117
134
 
118
- if @response.nil?
119
- invalid_properties.push('invalid value for "response", response cannot be nil.')
120
- end
121
-
122
135
  invalid_properties
123
136
  end
124
137
 
@@ -128,7 +141,6 @@ module MergeATSClient
128
141
  return false if @method.nil?
129
142
  return false if @path.nil?
130
143
  return false if @status.nil?
131
- return false if @response.nil?
132
144
  true
133
145
  end
134
146
 
@@ -141,6 +153,8 @@ module MergeATSClient
141
153
  path == o.path &&
142
154
  status == o.status &&
143
155
  response == o.response &&
156
+ response_headers == o.response_headers &&
157
+ response_type == o.response_type &&
144
158
  headers == o.headers
145
159
  end
146
160
 
@@ -153,7 +167,7 @@ module MergeATSClient
153
167
  # Calculates hash code according to all attributes.
154
168
  # @return [Integer] Hash code
155
169
  def hash
156
- [method, path, status, response, headers].hash
170
+ [method, path, status, response, response_headers, response_type, headers].hash
157
171
  end
158
172
 
159
173
  # Builds the object from hash
@@ -41,7 +41,7 @@ module MergeATSClient
41
41
 
42
42
  attr_accessor :remote_data
43
43
 
44
- # Indicates whether or not this object has been deleted on the third-party.
44
+ # Indicates whether or not this object has been deleted by third party webhooks.
45
45
  attr_accessor :remote_was_deleted
46
46
 
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
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
@@ -0,0 +1,45 @@
1
+ =begin
2
+ #Merge ATS API
3
+
4
+ #The unified API for building rich integrations with multiple Applicant Tracking System platforms.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: hello@merge.dev
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.1.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MergeATSClient
17
+ class ResponseTypeEnum
18
+ JSON = "JSON".freeze
19
+ BASE64_GZIP = "BASE64_GZIP".freeze
20
+
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
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 build_from_hash(value)
30
+ @raw_value = value
31
+ if ["JSON", "BASE64_GZIP", ].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)
42
+ end
43
+ end
44
+
45
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent an interview ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
17
+ # # The ScheduledInterview Object ### Description The `ScheduledInterview` object is used to represent an interview. ### Usage Example Fetch from the `LIST ScheduledInterviews` endpoint and filter by `interviewers` to show all office locations.
18
18
  class ScheduledInterview
19
19
  attr_accessor :id
20
20
 
@@ -50,7 +50,7 @@ module MergeATSClient
50
50
 
51
51
  attr_accessor :remote_data
52
52
 
53
- # Indicates whether or not this object has been deleted on the third-party.
53
+ # Indicates whether or not this object has been deleted by third party webhooks.
54
54
  attr_accessor :remote_was_deleted
55
55
 
56
56
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -19,18 +19,28 @@ module MergeATSClient
19
19
  AWAITING_FEEDBACK = "AWAITING_FEEDBACK".freeze
20
20
  COMPLETE = "COMPLETE".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 ["SCHEDULED", "AWAITING_FEEDBACK", "COMPLETE", ].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
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Scorecard Object ### Description The `Scorecard` object is used to represent a Scorecard for an interview ### Usage Example Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant.
17
+ # # The Scorecard Object ### Description The `Scorecard` object is used to represent a Scorecard for an interview. ### Usage Example Fetch from the `LIST Scorecards` endpoint and filter by `application` to show all scorecard for an applicant.
18
18
  class Scorecard
19
19
  attr_accessor :id
20
20
 
@@ -38,7 +38,7 @@ module MergeATSClient
38
38
 
39
39
  attr_accessor :remote_data
40
40
 
41
- # Indicates whether or not this object has been deleted on the third-party.
41
+ # Indicates whether or not this object has been deleted by third party webhooks.
42
42
  attr_accessor :remote_was_deleted
43
43
 
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -115,14 +115,6 @@ module MergeATSClient
115
115
  invalid_properties.push('invalid value for "model_id", model_id cannot be nil.')
116
116
  end
117
117
 
118
- if @last_sync_start.nil?
119
- invalid_properties.push('invalid value for "last_sync_start", last_sync_start cannot be nil.')
120
- end
121
-
122
- if @next_sync_start.nil?
123
- invalid_properties.push('invalid value for "next_sync_start", next_sync_start cannot be nil.')
124
- end
125
-
126
118
  if @status.nil?
127
119
  invalid_properties.push('invalid value for "status", status cannot be nil.')
128
120
  end
@@ -139,8 +131,6 @@ module MergeATSClient
139
131
  def valid?
140
132
  return false if @model_name.nil?
141
133
  return false if @model_id.nil?
142
- return false if @last_sync_start.nil?
143
- return false if @next_sync_start.nil?
144
134
  return false if @status.nil?
145
135
  return false if @is_initial_sync.nil?
146
136
  true
@@ -19,19 +19,30 @@ module MergeATSClient
19
19
  DONE = "DONE".freeze
20
20
  FAILED = "FAILED".freeze
21
21
  DISABLED = "DISABLED".freeze
22
+ PAUSED = "PAUSED".freeze
22
23
 
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
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
29
28
 
30
29
  # Builds the enum from string
31
30
  # @param [String] The enum value in the form of the string
32
31
  # @return [String] The enum value
33
32
  def build_from_hash(value)
34
- value
33
+ @raw_value = value
34
+ if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].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)
35
45
  end
36
46
  end
47
+
37
48
  end
@@ -24,7 +24,7 @@ module MergeATSClient
24
24
 
25
25
  attr_accessor :remote_data
26
26
 
27
- # Indicates whether or not this object has been deleted on the third-party.
27
+ # Indicates whether or not this object has been deleted by third party webhooks.
28
28
  attr_accessor :remote_was_deleted
29
29
 
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +47,7 @@ module MergeATSClient
47
47
  {
48
48
  :'remote_id' => :'String',
49
49
  :'name' => :'String',
50
- :'remote_data' => :'Array<Hash<String, AnyType>>',
50
+ :'remote_data' => :'Array<Hash<String, Object>>',
51
51
  :'remote_was_deleted' => :'Boolean'
52
52
  }
53
53
  end