merge_ats_client 3.0.0 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +186 -179
  3. data/docs/AccountIntegration.md +6 -2
  4. data/docs/ActivitiesApi.md +164 -8
  5. data/docs/Activity.md +12 -6
  6. data/docs/ActivityEndpointRequest.md +20 -0
  7. data/docs/ActivityRequest.md +32 -0
  8. data/docs/ActivityResponse.md +24 -0
  9. data/docs/Application.md +12 -10
  10. data/docs/ApplicationRequest.md +5 -9
  11. data/docs/ApplicationsApi.md +4 -4
  12. data/docs/Attachment.md +8 -4
  13. data/docs/AttachmentRequest.md +1 -3
  14. data/docs/AttachmentsApi.md +13 -9
  15. data/docs/Candidate.md +8 -6
  16. data/docs/CandidateRequest.md +1 -9
  17. data/docs/CandidatesApi.md +16 -13
  18. data/docs/CommonModelScopesBodyRequest.md +22 -0
  19. data/docs/ConditionSchema.md +1 -1
  20. data/docs/DataPassthroughRequest.md +1 -1
  21. data/docs/Department.md +7 -3
  22. data/docs/DepartmentsApi.md +4 -4
  23. data/docs/EEOC.md +12 -8
  24. data/docs/EeocsApi.md +13 -9
  25. data/docs/EmailAddress.md +4 -2
  26. data/docs/EmailAddressRequest.md +1 -1
  27. data/docs/EnabledActionsEnum.md +15 -0
  28. data/docs/EndUserDetailsRequest.md +3 -1
  29. data/docs/ForceResyncApi.md +1 -1
  30. data/docs/InterviewsApi.md +165 -9
  31. data/docs/Issue.md +10 -8
  32. data/docs/IssuesApi.md +6 -6
  33. data/docs/Job.md +8 -4
  34. data/docs/JobInterviewStage.md +10 -4
  35. data/docs/JobInterviewStagesApi.md +4 -4
  36. data/docs/JobsApi.md +16 -10
  37. data/docs/LinkToken.md +1 -1
  38. data/docs/LinkedAccountsApi.md +2 -2
  39. data/docs/MetaResponse.md +2 -0
  40. data/docs/MultipartFormFieldRequest.md +1 -1
  41. data/docs/Offer.md +10 -6
  42. data/docs/OffersApi.md +13 -9
  43. data/docs/Office.md +7 -3
  44. data/docs/OfficesApi.md +4 -4
  45. data/docs/PaginatedConditionSchemaList.md +2 -2
  46. data/docs/PhoneNumber.md +4 -2
  47. data/docs/PhoneNumberRequest.md +1 -1
  48. data/docs/RejectReason.md +7 -3
  49. data/docs/RejectReasonsApi.md +4 -4
  50. data/docs/RemoteUser.md +8 -4
  51. data/docs/ScheduledInterview.md +11 -7
  52. data/docs/ScheduledInterviewEndpointRequest.md +20 -0
  53. data/docs/ScheduledInterviewRequest.md +36 -0
  54. data/docs/ScheduledInterviewResponse.md +24 -0
  55. data/docs/Scorecard.md +11 -7
  56. data/docs/ScorecardsApi.md +13 -9
  57. data/docs/SelectiveSyncApi.md +2 -2
  58. data/docs/SelectiveSyncConfigurationsUsageEnum.md +15 -0
  59. data/docs/SyncStatus.md +3 -1
  60. data/docs/SyncStatusApi.md +1 -1
  61. data/docs/Tag.md +7 -3
  62. data/docs/TagsApi.md +4 -4
  63. data/docs/Url.md +4 -2
  64. data/docs/UrlRequest.md +1 -1
  65. data/docs/UsersApi.md +13 -9
  66. data/lib/merge_ats_client/api/activities_api.rb +160 -8
  67. data/lib/merge_ats_client/api/applications_api.rb +4 -4
  68. data/lib/merge_ats_client/api/attachments_api.rb +22 -8
  69. data/lib/merge_ats_client/api/candidates_api.rb +15 -11
  70. data/lib/merge_ats_client/api/departments_api.rb +4 -4
  71. data/lib/merge_ats_client/api/eeocs_api.rb +22 -8
  72. data/lib/merge_ats_client/api/force_resync_api.rb +2 -2
  73. data/lib/merge_ats_client/api/interviews_api.rb +160 -8
  74. data/lib/merge_ats_client/api/issues_api.rb +6 -6
  75. data/lib/merge_ats_client/api/job_interview_stages_api.rb +4 -4
  76. data/lib/merge_ats_client/api/jobs_api.rb +27 -10
  77. data/lib/merge_ats_client/api/linked_accounts_api.rb +3 -3
  78. data/lib/merge_ats_client/api/offers_api.rb +22 -8
  79. data/lib/merge_ats_client/api/offices_api.rb +4 -4
  80. data/lib/merge_ats_client/api/reject_reasons_api.rb +4 -4
  81. data/lib/merge_ats_client/api/scorecards_api.rb +22 -8
  82. data/lib/merge_ats_client/api/selective_sync_api.rb +2 -2
  83. data/lib/merge_ats_client/api/sync_status_api.rb +2 -2
  84. data/lib/merge_ats_client/api/tags_api.rb +4 -4
  85. data/lib/merge_ats_client/api/users_api.rb +22 -8
  86. data/lib/merge_ats_client/models/account_integration.rb +30 -8
  87. data/lib/merge_ats_client/models/activity.rb +50 -16
  88. data/lib/merge_ats_client/models/activity_endpoint_request.rb +237 -0
  89. data/lib/merge_ats_client/models/activity_request.rb +300 -0
  90. data/lib/merge_ats_client/models/activity_response.rb +266 -0
  91. data/lib/merge_ats_client/models/application.rb +40 -26
  92. data/lib/merge_ats_client/models/application_request.rb +7 -26
  93. data/lib/merge_ats_client/models/attachment.rb +38 -16
  94. data/lib/merge_ats_client/models/attachment_request.rb +3 -14
  95. data/lib/merge_ats_client/models/candidate.rb +36 -27
  96. data/lib/merge_ats_client/models/candidate_request.rb +3 -49
  97. data/lib/merge_ats_client/models/categories_enum.rb +3 -1
  98. data/lib/merge_ats_client/models/category_enum.rb +3 -1
  99. data/lib/merge_ats_client/models/common_model_scopes_body_request.rb +274 -0
  100. data/lib/merge_ats_client/models/condition_schema.rb +1 -0
  101. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  102. data/lib/merge_ats_client/models/department.rb +36 -14
  103. data/lib/merge_ats_client/models/eeoc.rb +42 -19
  104. data/lib/merge_ats_client/models/email_address.rb +16 -6
  105. data/lib/merge_ats_client/models/email_address_request.rb +1 -1
  106. data/lib/merge_ats_client/models/enabled_actions_enum.rb +45 -0
  107. data/lib/merge_ats_client/models/end_user_details_request.rb +18 -5
  108. data/lib/merge_ats_client/models/issue.rb +16 -4
  109. data/lib/merge_ats_client/models/job.rb +38 -16
  110. data/lib/merge_ats_client/models/job_interview_stage.rb +72 -15
  111. data/lib/merge_ats_client/models/link_token.rb +0 -5
  112. data/lib/merge_ats_client/models/meta_response.rb +12 -1
  113. data/lib/merge_ats_client/models/multipart_form_field_request.rb +1 -1
  114. data/lib/merge_ats_client/models/offer.rb +40 -16
  115. data/lib/merge_ats_client/models/office.rb +37 -15
  116. data/lib/merge_ats_client/models/phone_number.rb +16 -6
  117. data/lib/merge_ats_client/models/phone_number_request.rb +1 -1
  118. data/lib/merge_ats_client/models/reject_reason.rb +37 -15
  119. data/lib/merge_ats_client/models/remote_user.rb +38 -16
  120. data/lib/merge_ats_client/models/scheduled_interview.rb +41 -16
  121. data/lib/merge_ats_client/models/scheduled_interview_endpoint_request.rb +237 -0
  122. data/lib/merge_ats_client/models/scheduled_interview_request.rb +323 -0
  123. data/lib/merge_ats_client/models/scheduled_interview_response.rb +266 -0
  124. data/lib/merge_ats_client/models/scorecard.rb +41 -16
  125. data/lib/merge_ats_client/models/selective_sync_configurations_usage_enum.rb +45 -0
  126. data/lib/merge_ats_client/models/sync_status.rb +13 -4
  127. data/lib/merge_ats_client/models/sync_status_status_enum.rb +2 -1
  128. data/lib/merge_ats_client/models/tag.rb +36 -14
  129. data/lib/merge_ats_client/models/url.rb +16 -6
  130. data/lib/merge_ats_client/models/url_request.rb +1 -1
  131. data/lib/merge_ats_client/version.rb +1 -1
  132. data/lib/merge_ats_client.rb +9 -1
  133. data/spec/api/activities_api_spec.rb +31 -4
  134. data/spec/api/applications_api_spec.rb +2 -2
  135. data/spec/api/attachments_api_spec.rb +6 -4
  136. data/spec/api/candidates_api_spec.rb +5 -3
  137. data/spec/api/departments_api_spec.rb +2 -2
  138. data/spec/api/eeocs_api_spec.rb +6 -4
  139. data/spec/api/force_resync_api_spec.rb +1 -1
  140. data/spec/api/interviews_api_spec.rb +31 -4
  141. data/spec/api/issues_api_spec.rb +3 -3
  142. data/spec/api/job_interview_stages_api_spec.rb +2 -2
  143. data/spec/api/jobs_api_spec.rb +8 -5
  144. data/spec/api/linked_accounts_api_spec.rb +1 -1
  145. data/spec/api/offers_api_spec.rb +6 -4
  146. data/spec/api/offices_api_spec.rb +2 -2
  147. data/spec/api/reject_reasons_api_spec.rb +2 -2
  148. data/spec/api/scorecards_api_spec.rb +6 -4
  149. data/spec/api/selective_sync_api_spec.rb +1 -1
  150. data/spec/api/sync_status_api_spec.rb +1 -1
  151. data/spec/api/tags_api_spec.rb +2 -2
  152. data/spec/api/users_api_spec.rb +6 -4
  153. data/spec/models/account_integration_spec.rb +12 -0
  154. data/spec/models/{ignore_common_model_spec.rb → activity_endpoint_request_spec.rb} +8 -8
  155. data/spec/models/activity_request_spec.rb +76 -0
  156. data/spec/models/activity_response_spec.rb +52 -0
  157. data/spec/models/activity_spec.rb +19 -1
  158. data/spec/models/application_request_spec.rb +0 -12
  159. data/spec/models/application_spec.rb +9 -3
  160. data/spec/models/attachment_request_spec.rb +0 -6
  161. data/spec/models/attachment_spec.rb +14 -2
  162. data/spec/models/candidate_request_spec.rb +0 -24
  163. data/spec/models/candidate_spec.rb +9 -3
  164. data/spec/models/common_model_scopes_body_request_spec.rb +46 -0
  165. data/spec/models/department_spec.rb +14 -2
  166. data/spec/models/eeoc_spec.rb +14 -2
  167. data/spec/models/email_address_spec.rb +6 -0
  168. data/spec/models/enabled_actions_enum_spec.rb +28 -0
  169. data/spec/models/end_user_details_request_spec.rb +6 -0
  170. data/spec/models/issue_spec.rb +6 -0
  171. data/spec/models/job_interview_stage_spec.rb +19 -1
  172. data/spec/models/job_spec.rb +14 -2
  173. data/spec/models/meta_response_spec.rb +6 -0
  174. data/spec/models/offer_spec.rb +14 -2
  175. data/spec/models/office_spec.rb +14 -2
  176. data/spec/models/phone_number_spec.rb +6 -0
  177. data/spec/models/reject_reason_spec.rb +14 -2
  178. data/spec/models/remote_user_spec.rb +14 -2
  179. data/spec/models/{remote_data_request_spec.rb → scheduled_interview_endpoint_request_spec.rb} +8 -8
  180. data/spec/models/scheduled_interview_request_spec.rb +88 -0
  181. data/spec/models/scheduled_interview_response_spec.rb +52 -0
  182. data/spec/models/scheduled_interview_spec.rb +14 -2
  183. data/spec/models/scorecard_spec.rb +14 -2
  184. data/spec/models/selective_sync_configurations_usage_enum_spec.rb +28 -0
  185. data/spec/models/sync_status_spec.rb +6 -0
  186. data/spec/models/tag_spec.rb +14 -2
  187. data/spec/models/url_spec.rb +6 -0
  188. metadata +156 -124
@@ -14,24 +14,32 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent the stage that a job application is in. ### Usage Example Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company.
17
+ # # The JobInterviewStage Object ### Description The `JobInterviewStage` object is used to represent a particular recruiting stage for an `Application`. A given `Application` typically has the `JobInterviewStage` object represented in the current_stage field. ### Usage Example Fetch from the `LIST JobInterviewStages` endpoint and view the job interview stages used by a company.
18
18
  class JobInterviewStage
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
- # The stage's name.
24
+ # Standard stage names are offered by ATS systems but can be modified by users.
25
25
  attr_accessor :name
26
26
 
27
27
  # This field is populated only if the stage is specific to a particular job. If the stage is generic, this field will not be populated.
28
28
  attr_accessor :job
29
29
 
30
- attr_accessor :remote_data
30
+ # The stage’s order, with the lowest values ordered first. If the third-party does not return details on the order of stages, this field will not be populated.
31
+ attr_accessor :stage_order
31
32
 
32
33
  # Indicates whether or not this object has been deleted by third party webhooks.
33
34
  attr_accessor :remote_was_deleted
34
35
 
36
+ attr_accessor :field_mappings
37
+
38
+ # This is the datetime that this object was last updated by Merge
39
+ attr_accessor :modified_at
40
+
41
+ attr_accessor :remote_data
42
+
35
43
  # Attribute mapping from ruby-style variable name to JSON key.
36
44
  def self.attribute_map
37
45
  {
@@ -39,8 +47,11 @@ module MergeATSClient
39
47
  :'remote_id' => :'remote_id',
40
48
  :'name' => :'name',
41
49
  :'job' => :'job',
42
- :'remote_data' => :'remote_data',
43
- :'remote_was_deleted' => :'remote_was_deleted'
50
+ :'stage_order' => :'stage_order',
51
+ :'remote_was_deleted' => :'remote_was_deleted',
52
+ :'field_mappings' => :'field_mappings',
53
+ :'modified_at' => :'modified_at',
54
+ :'remote_data' => :'remote_data'
44
55
  }
45
56
  end
46
57
 
@@ -56,8 +67,11 @@ module MergeATSClient
56
67
  :'remote_id' => :'String',
57
68
  :'name' => :'String',
58
69
  :'job' => :'String',
59
- :'remote_data' => :'Array<RemoteData>',
60
- :'remote_was_deleted' => :'Boolean'
70
+ :'stage_order' => :'Integer',
71
+ :'remote_was_deleted' => :'Boolean',
72
+ :'field_mappings' => :'Hash<String, Object>',
73
+ :'modified_at' => :'Time',
74
+ :'remote_data' => :'Array<RemoteData>'
61
75
  }
62
76
  end
63
77
 
@@ -67,7 +81,9 @@ module MergeATSClient
67
81
  :'remote_id',
68
82
  :'name',
69
83
  :'job',
70
- :'remote_data',
84
+ :'stage_order',
85
+ :'field_mappings',
86
+ :'remote_data'
71
87
  ])
72
88
  end
73
89
 
@@ -102,30 +118,68 @@ module MergeATSClient
102
118
  self.job = attributes[:'job']
103
119
  end
104
120
 
105
- if attributes.key?(:'remote_data')
106
- if (value = attributes[:'remote_data']).is_a?(Array)
107
- self.remote_data = value
108
- end
121
+ if attributes.key?(:'stage_order')
122
+ self.stage_order = attributes[:'stage_order']
109
123
  end
110
124
 
111
125
  if attributes.key?(:'remote_was_deleted')
112
126
  self.remote_was_deleted = attributes[:'remote_was_deleted']
113
127
  end
128
+
129
+ if attributes.key?(:'field_mappings')
130
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
131
+ self.field_mappings = value
132
+ end
133
+ end
134
+
135
+ if attributes.key?(:'modified_at')
136
+ self.modified_at = attributes[:'modified_at']
137
+ end
138
+
139
+ if attributes.key?(:'remote_data')
140
+ if (value = attributes[:'remote_data']).is_a?(Array)
141
+ self.remote_data = value
142
+ end
143
+ end
114
144
  end
115
145
 
116
146
  # Show invalid properties with the reasons. Usually used together with valid?
117
147
  # @return Array for valid properties with the reasons
118
148
  def list_invalid_properties
119
149
  invalid_properties = Array.new
150
+ if !@stage_order.nil? && @stage_order > 2147483647
151
+ invalid_properties.push('invalid value for "stage_order", must be smaller than or equal to 2147483647.')
152
+ end
153
+
154
+ if !@stage_order.nil? && @stage_order < -2147483648
155
+ invalid_properties.push('invalid value for "stage_order", must be greater than or equal to -2147483648.')
156
+ end
157
+
120
158
  invalid_properties
121
159
  end
122
160
 
123
161
  # Check to see if the all the properties in the model are valid
124
162
  # @return true if the model is valid
125
163
  def valid?
164
+ return false if !@stage_order.nil? && @stage_order > 2147483647
165
+ return false if !@stage_order.nil? && @stage_order < -2147483648
126
166
  true
127
167
  end
128
168
 
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] stage_order Value to be assigned
171
+ def stage_order=(stage_order)
172
+ if !stage_order.nil? && stage_order > 2147483647
173
+ fail ArgumentError, 'invalid value for "stage_order", must be smaller than or equal to 2147483647.'
174
+ end
175
+
176
+ if !stage_order.nil? && stage_order < -2147483648
177
+ fail ArgumentError, 'invalid value for "stage_order", must be greater than or equal to -2147483648.'
178
+ end
179
+
180
+ @stage_order = stage_order
181
+ end
182
+
129
183
  # Checks equality by comparing each attribute.
130
184
  # @param [Object] Object to be compared
131
185
  def ==(o)
@@ -135,8 +189,11 @@ module MergeATSClient
135
189
  remote_id == o.remote_id &&
136
190
  name == o.name &&
137
191
  job == o.job &&
138
- remote_data == o.remote_data &&
139
- remote_was_deleted == o.remote_was_deleted
192
+ stage_order == o.stage_order &&
193
+ remote_was_deleted == o.remote_was_deleted &&
194
+ field_mappings == o.field_mappings &&
195
+ modified_at == o.modified_at &&
196
+ remote_data == o.remote_data
140
197
  end
141
198
 
142
199
  # @see the `==` method
@@ -148,7 +205,7 @@ module MergeATSClient
148
205
  # Calculates hash code according to all attributes.
149
206
  # @return [Integer] Hash code
150
207
  def hash
151
- [id, remote_id, name, job, remote_data, remote_was_deleted].hash
208
+ [id, remote_id, name, job, stage_order, remote_was_deleted, field_mappings, modified_at, remote_data].hash
152
209
  end
153
210
 
154
211
  # Builds the object from hash
@@ -86,10 +86,6 @@ module MergeATSClient
86
86
  invalid_properties.push('invalid value for "link_token", link_token cannot be nil.')
87
87
  end
88
88
 
89
- if @integration_name.nil?
90
- invalid_properties.push('invalid value for "integration_name", integration_name cannot be nil.')
91
- end
92
-
93
89
  invalid_properties
94
90
  end
95
91
 
@@ -97,7 +93,6 @@ module MergeATSClient
97
93
  # @return true if the model is valid
98
94
  def valid?
99
95
  return false if @link_token.nil?
100
- return false if @integration_name.nil?
101
96
  true
102
97
  end
103
98
 
@@ -17,6 +17,8 @@ module MergeATSClient
17
17
  class MetaResponse
18
18
  attr_accessor :request_schema
19
19
 
20
+ attr_accessor :remote_field_classes
21
+
20
22
  attr_accessor :status
21
23
 
22
24
  attr_accessor :has_conditional_params
@@ -27,6 +29,7 @@ module MergeATSClient
27
29
  def self.attribute_map
28
30
  {
29
31
  :'request_schema' => :'request_schema',
32
+ :'remote_field_classes' => :'remote_field_classes',
30
33
  :'status' => :'status',
31
34
  :'has_conditional_params' => :'has_conditional_params',
32
35
  :'has_required_linked_account_params' => :'has_required_linked_account_params'
@@ -42,6 +45,7 @@ module MergeATSClient
42
45
  def self.openapi_types
43
46
  {
44
47
  :'request_schema' => :'Hash<String, Object>',
48
+ :'remote_field_classes' => :'Hash<String, Object>',
45
49
  :'status' => :'LinkedAccountStatus',
46
50
  :'has_conditional_params' => :'Boolean',
47
51
  :'has_required_linked_account_params' => :'Boolean'
@@ -75,6 +79,12 @@ module MergeATSClient
75
79
  end
76
80
  end
77
81
 
82
+ if attributes.key?(:'remote_field_classes')
83
+ if (value = attributes[:'remote_field_classes']).is_a?(Hash)
84
+ self.remote_field_classes = value
85
+ end
86
+ end
87
+
78
88
  if attributes.key?(:'status')
79
89
  self.status = attributes[:'status']
80
90
  end
@@ -122,6 +132,7 @@ module MergeATSClient
122
132
  return true if self.equal?(o)
123
133
  self.class == o.class &&
124
134
  request_schema == o.request_schema &&
135
+ remote_field_classes == o.remote_field_classes &&
125
136
  status == o.status &&
126
137
  has_conditional_params == o.has_conditional_params &&
127
138
  has_required_linked_account_params == o.has_required_linked_account_params
@@ -136,7 +147,7 @@ module MergeATSClient
136
147
  # Calculates hash code according to all attributes.
137
148
  # @return [Integer] Hash code
138
149
  def hash
139
- [request_schema, status, has_conditional_params, has_required_linked_account_params].hash
150
+ [request_schema, remote_field_classes, status, has_conditional_params, has_required_linked_account_params].hash
140
151
  end
141
152
 
142
153
  # Builds the object from hash
@@ -22,7 +22,7 @@ module MergeATSClient
22
22
  # The data for the form field.
23
23
  attr_accessor :data
24
24
 
25
- # The encoding of the value of `data`. Defaults to `RAW` if not defined.
25
+ # The encoding of the value of `data`. Defaults to `RAW` if not defined. * `RAW` - RAW * `BASE64` - BASE64 * `GZIP_BASE64` - GZIP_BASE64
26
26
  attr_accessor :encoding
27
27
 
28
28
  # The file name of the form field, if the field is for a file.
@@ -14,15 +14,17 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Offer Object ### Description The `Offer` object is used to represent an offer for an application. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
17
+ # # The Offer Object ### Description The `Offer` object is used to represent an offer for a candidate's application specific to a job. ### Usage Example Fetch from the `LIST Offers` endpoint and filter by `ID` to show all offers.
18
18
  class Offer
19
19
  attr_accessor :id
20
20
 
21
21
  # The third-party API ID of the matching object.
22
22
  attr_accessor :remote_id
23
23
 
24
+ # The application who is receiving the offer.
24
25
  attr_accessor :application
25
26
 
27
+ # The user who created the offer.
26
28
  attr_accessor :creator
27
29
 
28
30
  # When the third party's offer was created.
@@ -37,14 +39,19 @@ module MergeATSClient
37
39
  # The employment start date on the offer.
38
40
  attr_accessor :start_date
39
41
 
40
- # The offer's status.
42
+ # The offer's status. * `DRAFT` - DRAFT * `APPROVAL-SENT` - APPROVAL-SENT * `APPROVED` - APPROVED * `SENT` - SENT * `SENT-MANUALLY` - SENT-MANUALLY * `OPENED` - OPENED * `DENIED` - DENIED * `SIGNED` - SIGNED * `DEPRECATED` - DEPRECATED
41
43
  attr_accessor :status
42
44
 
43
- attr_accessor :remote_data
44
-
45
45
  # Indicates whether or not this object has been deleted by third party webhooks.
46
46
  attr_accessor :remote_was_deleted
47
47
 
48
+ attr_accessor :field_mappings
49
+
50
+ # This is the datetime that this object was last updated by Merge
51
+ attr_accessor :modified_at
52
+
53
+ attr_accessor :remote_data
54
+
48
55
  # Attribute mapping from ruby-style variable name to JSON key.
49
56
  def self.attribute_map
50
57
  {
@@ -57,8 +64,10 @@ module MergeATSClient
57
64
  :'sent_at' => :'sent_at',
58
65
  :'start_date' => :'start_date',
59
66
  :'status' => :'status',
60
- :'remote_data' => :'remote_data',
61
- :'remote_was_deleted' => :'remote_was_deleted'
67
+ :'remote_was_deleted' => :'remote_was_deleted',
68
+ :'field_mappings' => :'field_mappings',
69
+ :'modified_at' => :'modified_at',
70
+ :'remote_data' => :'remote_data'
62
71
  }
63
72
  end
64
73
 
@@ -79,8 +88,10 @@ module MergeATSClient
79
88
  :'sent_at' => :'Time',
80
89
  :'start_date' => :'Time',
81
90
  :'status' => :'OfferStatusEnum',
82
- :'remote_data' => :'Array<RemoteData>',
83
- :'remote_was_deleted' => :'Boolean'
91
+ :'remote_was_deleted' => :'Boolean',
92
+ :'field_mappings' => :'Hash<String, Object>',
93
+ :'modified_at' => :'Time',
94
+ :'remote_data' => :'Array<RemoteData>'
84
95
  }
85
96
  end
86
97
 
@@ -95,7 +106,8 @@ module MergeATSClient
95
106
  :'sent_at',
96
107
  :'start_date',
97
108
  :'status',
98
- :'remote_data',
109
+ :'field_mappings',
110
+ :'remote_data'
99
111
  ])
100
112
  end
101
113
 
@@ -150,15 +162,25 @@ module MergeATSClient
150
162
  self.status = attributes[:'status']
151
163
  end
152
164
 
165
+ if attributes.key?(:'remote_was_deleted')
166
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
167
+ end
168
+
169
+ if attributes.key?(:'field_mappings')
170
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
171
+ self.field_mappings = value
172
+ end
173
+ end
174
+
175
+ if attributes.key?(:'modified_at')
176
+ self.modified_at = attributes[:'modified_at']
177
+ end
178
+
153
179
  if attributes.key?(:'remote_data')
154
180
  if (value = attributes[:'remote_data']).is_a?(Array)
155
181
  self.remote_data = value
156
182
  end
157
183
  end
158
-
159
- if attributes.key?(:'remote_was_deleted')
160
- self.remote_was_deleted = attributes[:'remote_was_deleted']
161
- end
162
184
  end
163
185
 
164
186
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -188,8 +210,10 @@ module MergeATSClient
188
210
  sent_at == o.sent_at &&
189
211
  start_date == o.start_date &&
190
212
  status == o.status &&
191
- remote_data == o.remote_data &&
192
- remote_was_deleted == o.remote_was_deleted
213
+ remote_was_deleted == o.remote_was_deleted &&
214
+ field_mappings == o.field_mappings &&
215
+ modified_at == o.modified_at &&
216
+ remote_data == o.remote_data
193
217
  end
194
218
 
195
219
  # @see the `==` method
@@ -201,7 +225,7 @@ module MergeATSClient
201
225
  # Calculates hash code according to all attributes.
202
226
  # @return [Integer] Hash code
203
227
  def hash
204
- [id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_data, remote_was_deleted].hash
228
+ [id, remote_id, application, creator, remote_created_at, closed_at, sent_at, start_date, status, remote_was_deleted, field_mappings, modified_at, remote_data].hash
205
229
  end
206
230
 
207
231
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MergeATSClient
17
- # # The Office Object ### Description The `Office` object is used to represent an office within a company. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
17
+ # # The Office Object ### Description The `Office` object is used to represent an office within a company. A given `Job` has the `Office` ID in its offices field. ### Usage Example Fetch from the `LIST Offices` endpoint and view the offices within a company.
18
18
  class Office
19
19
  attr_accessor :id
20
20
 
@@ -27,11 +27,16 @@ module MergeATSClient
27
27
  # The office's location.
28
28
  attr_accessor :location
29
29
 
30
- attr_accessor :remote_data
31
-
32
30
  # Indicates whether or not this object has been deleted by third party webhooks.
33
31
  attr_accessor :remote_was_deleted
34
32
 
33
+ attr_accessor :field_mappings
34
+
35
+ # This is the datetime that this object was last updated by Merge
36
+ attr_accessor :modified_at
37
+
38
+ attr_accessor :remote_data
39
+
35
40
  # Attribute mapping from ruby-style variable name to JSON key.
36
41
  def self.attribute_map
37
42
  {
@@ -39,8 +44,10 @@ module MergeATSClient
39
44
  :'remote_id' => :'remote_id',
40
45
  :'name' => :'name',
41
46
  :'location' => :'location',
42
- :'remote_data' => :'remote_data',
43
- :'remote_was_deleted' => :'remote_was_deleted'
47
+ :'remote_was_deleted' => :'remote_was_deleted',
48
+ :'field_mappings' => :'field_mappings',
49
+ :'modified_at' => :'modified_at',
50
+ :'remote_data' => :'remote_data'
44
51
  }
45
52
  end
46
53
 
@@ -56,8 +63,10 @@ module MergeATSClient
56
63
  :'remote_id' => :'String',
57
64
  :'name' => :'String',
58
65
  :'location' => :'String',
59
- :'remote_data' => :'Array<RemoteData>',
60
- :'remote_was_deleted' => :'Boolean'
66
+ :'remote_was_deleted' => :'Boolean',
67
+ :'field_mappings' => :'Hash<String, Object>',
68
+ :'modified_at' => :'Time',
69
+ :'remote_data' => :'Array<RemoteData>'
61
70
  }
62
71
  end
63
72
 
@@ -67,7 +76,8 @@ module MergeATSClient
67
76
  :'remote_id',
68
77
  :'name',
69
78
  :'location',
70
- :'remote_data',
79
+ :'field_mappings',
80
+ :'remote_data'
71
81
  ])
72
82
  end
73
83
 
@@ -102,15 +112,25 @@ module MergeATSClient
102
112
  self.location = attributes[:'location']
103
113
  end
104
114
 
115
+ if attributes.key?(:'remote_was_deleted')
116
+ self.remote_was_deleted = attributes[:'remote_was_deleted']
117
+ end
118
+
119
+ if attributes.key?(:'field_mappings')
120
+ if (value = attributes[:'field_mappings']).is_a?(Hash)
121
+ self.field_mappings = value
122
+ end
123
+ end
124
+
125
+ if attributes.key?(:'modified_at')
126
+ self.modified_at = attributes[:'modified_at']
127
+ end
128
+
105
129
  if attributes.key?(:'remote_data')
106
130
  if (value = attributes[:'remote_data']).is_a?(Array)
107
131
  self.remote_data = value
108
132
  end
109
133
  end
110
-
111
- if attributes.key?(:'remote_was_deleted')
112
- self.remote_was_deleted = attributes[:'remote_was_deleted']
113
- end
114
134
  end
115
135
 
116
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -135,8 +155,10 @@ module MergeATSClient
135
155
  remote_id == o.remote_id &&
136
156
  name == o.name &&
137
157
  location == o.location &&
138
- remote_data == o.remote_data &&
139
- remote_was_deleted == o.remote_was_deleted
158
+ remote_was_deleted == o.remote_was_deleted &&
159
+ field_mappings == o.field_mappings &&
160
+ modified_at == o.modified_at &&
161
+ remote_data == o.remote_data
140
162
  end
141
163
 
142
164
  # @see the `==` method
@@ -148,7 +170,7 @@ module MergeATSClient
148
170
  # Calculates hash code according to all attributes.
149
171
  # @return [Integer] Hash code
150
172
  def hash
151
- [id, remote_id, name, location, remote_data, remote_was_deleted].hash
173
+ [id, remote_id, name, location, remote_was_deleted, field_mappings, modified_at, remote_data].hash
152
174
  end
153
175
 
154
176
  # Builds the object from hash
@@ -19,14 +19,18 @@ module MergeATSClient
19
19
  # The phone number.
20
20
  attr_accessor :value
21
21
 
22
- # The type of phone number.
22
+ # The type of phone number. * `HOME` - HOME * `WORK` - WORK * `MOBILE` - MOBILE * `SKYPE` - SKYPE * `OTHER` - OTHER
23
23
  attr_accessor :phone_number_type
24
24
 
25
+ # This is the datetime that this object was last updated by Merge
26
+ attr_accessor :modified_at
27
+
25
28
  # Attribute mapping from ruby-style variable name to JSON key.
26
29
  def self.attribute_map
27
30
  {
28
31
  :'value' => :'value',
29
- :'phone_number_type' => :'phone_number_type'
32
+ :'phone_number_type' => :'phone_number_type',
33
+ :'modified_at' => :'modified_at'
30
34
  }
31
35
  end
32
36
 
@@ -39,7 +43,8 @@ module MergeATSClient
39
43
  def self.openapi_types
40
44
  {
41
45
  :'value' => :'String',
42
- :'phone_number_type' => :'PhoneNumberTypeEnum'
46
+ :'phone_number_type' => :'PhoneNumberTypeEnum',
47
+ :'modified_at' => :'Time'
43
48
  }
44
49
  end
45
50
 
@@ -47,7 +52,7 @@ module MergeATSClient
47
52
  def self.openapi_nullable
48
53
  Set.new([
49
54
  :'value',
50
- :'phone_number_type'
55
+ :'phone_number_type',
51
56
  ])
52
57
  end
53
58
 
@@ -73,6 +78,10 @@ module MergeATSClient
73
78
  if attributes.key?(:'phone_number_type')
74
79
  self.phone_number_type = attributes[:'phone_number_type']
75
80
  end
81
+
82
+ if attributes.key?(:'modified_at')
83
+ self.modified_at = attributes[:'modified_at']
84
+ end
76
85
  end
77
86
 
78
87
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -94,7 +103,8 @@ module MergeATSClient
94
103
  return true if self.equal?(o)
95
104
  self.class == o.class &&
96
105
  value == o.value &&
97
- phone_number_type == o.phone_number_type
106
+ phone_number_type == o.phone_number_type &&
107
+ modified_at == o.modified_at
98
108
  end
99
109
 
100
110
  # @see the `==` method
@@ -106,7 +116,7 @@ module MergeATSClient
106
116
  # Calculates hash code according to all attributes.
107
117
  # @return [Integer] Hash code
108
118
  def hash
109
- [value, phone_number_type].hash
119
+ [value, phone_number_type, modified_at].hash
110
120
  end
111
121
 
112
122
  # Builds the object from hash
@@ -19,7 +19,7 @@ module MergeATSClient
19
19
  # The phone number.
20
20
  attr_accessor :value
21
21
 
22
- # The type of phone number.
22
+ # The type of phone number. * `HOME` - HOME * `WORK` - WORK * `MOBILE` - MOBILE * `SKYPE` - SKYPE * `OTHER` - OTHER
23
23
  attr_accessor :phone_number_type
24
24
 
25
25
  attr_accessor :integration_params