merge_ats_client 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -3
  3. data/docs/AccountToken.md +3 -1
  4. data/docs/ApplicationsApi.md +0 -82
  5. data/docs/Attachment.md +2 -0
  6. data/docs/AttachmentRequest.md +26 -0
  7. data/docs/AttachmentTypeEnum.md +15 -0
  8. data/docs/AttachmentsApi.md +80 -0
  9. data/docs/AvailableActions.md +1 -1
  10. data/docs/Candidate.md +2 -2
  11. data/docs/CandidateRequest.md +5 -1
  12. data/docs/InterviewsApi.md +80 -0
  13. data/docs/JobsApi.md +3 -1
  14. data/docs/ModelOperation.md +3 -1
  15. data/docs/PaginatedSyncStatusList.md +22 -0
  16. data/docs/RemoteUserRequest.md +30 -0
  17. data/docs/ScheduledInterviewRequest.md +38 -0
  18. data/docs/ScorecardRequest.md +30 -0
  19. data/docs/ScorecardsApi.md +80 -0
  20. data/docs/SyncStatus.md +1 -1
  21. data/docs/SyncStatusApi.md +89 -11
  22. data/docs/SyncStatusStatusEnum.md +15 -0
  23. data/docs/UsersApi.md +81 -0
  24. data/lib/merge_ats_client/api/applications_api.rb +0 -82
  25. data/lib/merge_ats_client/api/attachments_api.rb +76 -0
  26. data/lib/merge_ats_client/api/interviews_api.rb +76 -0
  27. data/lib/merge_ats_client/api/jobs_api.rb +7 -0
  28. data/lib/merge_ats_client/api/scorecards_api.rb +76 -0
  29. data/lib/merge_ats_client/api/sync_status_api.rb +78 -10
  30. data/lib/merge_ats_client/api/users_api.rb +79 -0
  31. data/lib/merge_ats_client/api_client.rb +1 -1
  32. data/lib/merge_ats_client/models/account_token.rb +18 -4
  33. data/lib/merge_ats_client/models/activity.rb +1 -1
  34. data/lib/merge_ats_client/models/application.rb +1 -1
  35. data/lib/merge_ats_client/models/attachment.rb +13 -2
  36. data/lib/merge_ats_client/models/attachment_request.rb +279 -0
  37. data/lib/merge_ats_client/models/attachment_type_enum.rb +39 -0
  38. data/lib/merge_ats_client/models/candidate.rb +1 -1
  39. data/lib/merge_ats_client/models/candidate_request.rb +26 -4
  40. data/lib/merge_ats_client/models/data_passthrough_request.rb +1 -0
  41. data/lib/merge_ats_client/models/eeoc.rb +1 -1
  42. data/lib/merge_ats_client/models/end_user_details_request.rb +1 -5
  43. data/lib/merge_ats_client/models/job.rb +1 -1
  44. data/lib/merge_ats_client/models/job_interview_stage.rb +1 -1
  45. data/lib/merge_ats_client/models/model_operation.rb +20 -4
  46. data/lib/merge_ats_client/models/offer.rb +1 -1
  47. data/lib/merge_ats_client/models/paginated_sync_status_list.rb +240 -0
  48. data/lib/merge_ats_client/models/remote_user_request.rb +302 -0
  49. data/lib/merge_ats_client/models/scheduled_interview.rb +1 -1
  50. data/lib/merge_ats_client/models/scheduled_interview_request.rb +331 -0
  51. data/lib/merge_ats_client/models/scorecard.rb +1 -1
  52. data/lib/merge_ats_client/models/scorecard_request.rb +287 -0
  53. data/lib/merge_ats_client/models/sync_status.rb +1 -1
  54. data/lib/merge_ats_client/models/sync_status_status_enum.rb +37 -0
  55. data/lib/merge_ats_client/version.rb +2 -2
  56. data/lib/merge_ats_client.rb +7 -3
  57. data/spec/api/delete_account_api_spec.rb +46 -0
  58. data/spec/api/generate_key_api_spec.rb +46 -0
  59. data/spec/api/issues_api_spec.rb +65 -0
  60. data/spec/models/attachment_request_spec.rb +58 -0
  61. data/spec/models/attachment_type_enum_spec.rb +28 -0
  62. data/spec/models/generate_remote_key_request_spec.rb +1 -1
  63. data/spec/models/issue_spec.rb +70 -0
  64. data/spec/models/issue_status_enum_spec.rb +28 -0
  65. data/spec/models/paginated_issue_list_spec.rb +46 -0
  66. data/spec/models/paginated_sync_status_list_spec.rb +46 -0
  67. data/spec/models/remote_data_request_spec.rb +40 -0
  68. data/spec/models/remote_user_request_spec.rb +70 -0
  69. data/spec/models/scheduled_interview_request_spec.rb +94 -0
  70. data/spec/models/scorecard_request_spec.rb +70 -0
  71. data/spec/models/sync_status_status_enum_spec.rb +28 -0
  72. data/test_ats.rb +13 -13
  73. data/test_signature.rb +2 -2
  74. metadata +44 -3
  75. data/merge_ats_client-1.0.0.gem +0 -0
@@ -19,6 +19,82 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Creates a `Scorecard` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
+ # @option opts [ScorecardRequest] :scorecard_request
28
+ # @return [Scorecard]
29
+ def scorecards_create(x_account_token, remote_user_id, opts = {})
30
+ data, _status_code, _headers = scorecards_create_with_http_info(x_account_token, remote_user_id, opts)
31
+ data
32
+ end
33
+
34
+ # Creates a `Scorecard` object with the given values.
35
+ # @param x_account_token [String] Token identifying the end user.
36
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
+ # @option opts [ScorecardRequest] :scorecard_request
40
+ # @return [Array<(Scorecard, Integer, Hash)>] Scorecard data, response status code and response headers
41
+ def scorecards_create_with_http_info(x_account_token, remote_user_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: ScorecardsApi.scorecards_create ...'
44
+ end
45
+ # verify the required parameter 'x_account_token' is set
46
+ if @api_client.config.client_side_validation && x_account_token.nil?
47
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling ScorecardsApi.scorecards_create"
48
+ end
49
+ # verify the required parameter 'remote_user_id' is set
50
+ if @api_client.config.client_side_validation && remote_user_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling ScorecardsApi.scorecards_create"
52
+ end
53
+ # resource path
54
+ local_var_path = '/scorecards'
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'remote_user_id'] = remote_user_id
59
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
67
+ header_params[:'X-Account-Token'] = x_account_token
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'scorecard_request'])
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'Scorecard'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"ScorecardsApi.scorecards_create",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: ScorecardsApi#scorecards_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
22
98
  # Returns a list of `Scorecard` objects.
23
99
  # @param x_account_token [String] Token identifying the end user.
24
100
  # @param [Hash] opts the optional parameters
@@ -22,29 +22,35 @@ module MergeATSClient
22
22
  # Get syncing status.
23
23
  # @param x_account_token [String] Token identifying the end user.
24
24
  # @param [Hash] opts the optional parameters
25
- # @return [SyncStatus]
26
- def sync_status_retrieve(x_account_token, opts = {})
27
- data, _status_code, _headers = sync_status_retrieve_with_http_info(x_account_token, opts)
25
+ # @option opts [Integer] :cursor The pagination cursor value.
26
+ # @option opts [Integer] :page_size Number of results to return per page.
27
+ # @return [PaginatedSyncStatusList]
28
+ def sync_status_list(x_account_token, opts = {})
29
+ data, _status_code, _headers = sync_status_list_with_http_info(x_account_token, opts)
28
30
  data
29
31
  end
30
32
 
31
33
  # Get syncing status.
32
34
  # @param x_account_token [String] Token identifying the end user.
33
35
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(SyncStatus, Integer, Hash)>] SyncStatus data, response status code and response headers
35
- def sync_status_retrieve_with_http_info(x_account_token, opts = {})
36
+ # @option opts [Integer] :cursor The pagination cursor value.
37
+ # @option opts [Integer] :page_size Number of results to return per page.
38
+ # @return [Array<(PaginatedSyncStatusList, Integer, Hash)>] PaginatedSyncStatusList data, response status code and response headers
39
+ def sync_status_list_with_http_info(x_account_token, opts = {})
36
40
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: SyncStatusApi.sync_status_retrieve ...'
41
+ @api_client.config.logger.debug 'Calling API: SyncStatusApi.sync_status_list ...'
38
42
  end
39
43
  # verify the required parameter 'x_account_token' is set
40
44
  if @api_client.config.client_side_validation && x_account_token.nil?
41
- fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SyncStatusApi.sync_status_retrieve"
45
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SyncStatusApi.sync_status_list"
42
46
  end
43
47
  # resource path
44
48
  local_var_path = '/sync-status'
45
49
 
46
50
  # query parameters
47
51
  query_params = opts[:query_params] || {}
52
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
53
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
48
54
 
49
55
  # header parameters
50
56
  header_params = opts[:header_params] || {}
@@ -59,13 +65,13 @@ module MergeATSClient
59
65
  post_body = opts[:debug_body]
60
66
 
61
67
  # return_type
62
- return_type = opts[:debug_return_type] || 'SyncStatus'
68
+ return_type = opts[:debug_return_type] || 'PaginatedSyncStatusList'
63
69
 
64
70
  # auth_names
65
71
  auth_names = opts[:debug_auth_names] || ['tokenAuth']
66
72
 
67
73
  new_options = opts.merge(
68
- :operation => :"SyncStatusApi.sync_status_retrieve",
74
+ :operation => :"SyncStatusApi.sync_status_list",
69
75
  :header_params => header_params,
70
76
  :query_params => query_params,
71
77
  :form_params => form_params,
@@ -76,7 +82,69 @@ module MergeATSClient
76
82
 
77
83
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
78
84
  if @api_client.config.debugging
79
- @api_client.config.logger.debug "API called: SyncStatusApi#sync_status_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
+ @api_client.config.logger.debug "API called: SyncStatusApi#sync_status_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Force resync of all models.
91
+ # @param x_account_token [String] Token identifying the end user.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [SyncStatus]
94
+ def sync_status_resync_create(x_account_token, opts = {})
95
+ data, _status_code, _headers = sync_status_resync_create_with_http_info(x_account_token, opts)
96
+ data
97
+ end
98
+
99
+ # Force resync of all models.
100
+ # @param x_account_token [String] Token identifying the end user.
101
+ # @param [Hash] opts the optional parameters
102
+ # @return [Array<(SyncStatus, Integer, Hash)>] SyncStatus data, response status code and response headers
103
+ def sync_status_resync_create_with_http_info(x_account_token, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: SyncStatusApi.sync_status_resync_create ...'
106
+ end
107
+ # verify the required parameter 'x_account_token' is set
108
+ if @api_client.config.client_side_validation && x_account_token.nil?
109
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling SyncStatusApi.sync_status_resync_create"
110
+ end
111
+ # resource path
112
+ local_var_path = '/sync-status/resync'
113
+
114
+ # query parameters
115
+ query_params = opts[:query_params] || {}
116
+
117
+ # header parameters
118
+ header_params = opts[:header_params] || {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
121
+ header_params[:'X-Account-Token'] = x_account_token
122
+
123
+ # form parameters
124
+ form_params = opts[:form_params] || {}
125
+
126
+ # http body (model)
127
+ post_body = opts[:debug_body]
128
+
129
+ # return_type
130
+ return_type = opts[:debug_return_type] || 'SyncStatus'
131
+
132
+ # auth_names
133
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
134
+
135
+ new_options = opts.merge(
136
+ :operation => :"SyncStatusApi.sync_status_resync_create",
137
+ :header_params => header_params,
138
+ :query_params => query_params,
139
+ :form_params => form_params,
140
+ :body => post_body,
141
+ :auth_names => auth_names,
142
+ :return_type => return_type
143
+ )
144
+
145
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
146
+ if @api_client.config.debugging
147
+ @api_client.config.logger.debug "API called: SyncStatusApi#sync_status_resync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
80
148
  end
81
149
  return data, status_code, headers
82
150
  end
@@ -19,12 +19,89 @@ module MergeATSClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Creates a `RemoteUser` object with the given values.
23
+ # @param x_account_token [String] Token identifying the end user.
24
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
27
+ # @option opts [RemoteUserRequest] :remote_user_request
28
+ # @return [RemoteUser]
29
+ def users_create(x_account_token, remote_user_id, opts = {})
30
+ data, _status_code, _headers = users_create_with_http_info(x_account_token, remote_user_id, opts)
31
+ data
32
+ end
33
+
34
+ # Creates a &#x60;RemoteUser&#x60; object with the given values.
35
+ # @param x_account_token [String] Token identifying the end user.
36
+ # @param remote_user_id [String] The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Boolean] :run_async Whether or not third-party updates should be run asynchronously.
39
+ # @option opts [RemoteUserRequest] :remote_user_request
40
+ # @return [Array<(RemoteUser, Integer, Hash)>] RemoteUser data, response status code and response headers
41
+ def users_create_with_http_info(x_account_token, remote_user_id, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: UsersApi.users_create ...'
44
+ end
45
+ # verify the required parameter 'x_account_token' is set
46
+ if @api_client.config.client_side_validation && x_account_token.nil?
47
+ fail ArgumentError, "Missing the required parameter 'x_account_token' when calling UsersApi.users_create"
48
+ end
49
+ # verify the required parameter 'remote_user_id' is set
50
+ if @api_client.config.client_side_validation && remote_user_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'remote_user_id' when calling UsersApi.users_create"
52
+ end
53
+ # resource path
54
+ local_var_path = '/users'
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+ query_params[:'remote_user_id'] = remote_user_id
59
+ query_params[:'run_async'] = opts[:'run_async'] if !opts[:'run_async'].nil?
60
+
61
+ # header parameters
62
+ header_params = opts[:header_params] || {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
67
+ header_params[:'X-Account-Token'] = x_account_token
68
+
69
+ # form parameters
70
+ form_params = opts[:form_params] || {}
71
+
72
+ # http body (model)
73
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'remote_user_request'])
74
+
75
+ # return_type
76
+ return_type = opts[:debug_return_type] || 'RemoteUser'
77
+
78
+ # auth_names
79
+ auth_names = opts[:debug_auth_names] || ['tokenAuth']
80
+
81
+ new_options = opts.merge(
82
+ :operation => :"UsersApi.users_create",
83
+ :header_params => header_params,
84
+ :query_params => query_params,
85
+ :form_params => form_params,
86
+ :body => post_body,
87
+ :auth_names => auth_names,
88
+ :return_type => return_type
89
+ )
90
+
91
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
92
+ if @api_client.config.debugging
93
+ @api_client.config.logger.debug "API called: UsersApi#users_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
+ end
95
+ return data, status_code, headers
96
+ end
97
+
22
98
  # Returns a list of `RemoteUser` objects.
23
99
  # @param x_account_token [String] Token identifying the end user.
24
100
  # @param [Hash] opts the optional parameters
25
101
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
26
102
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
27
103
  # @option opts [String] :cursor The pagination cursor value.
104
+ # @option opts [String] :email If provided, will only return remote users with the given email address
28
105
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
29
106
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
30
107
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -42,6 +119,7 @@ module MergeATSClient
42
119
  # @option opts [Time] :created_after If provided, will only return objects created after this datetime.
43
120
  # @option opts [Time] :created_before If provided, will only return objects created before this datetime.
44
121
  # @option opts [String] :cursor The pagination cursor value.
122
+ # @option opts [String] :email If provided, will only return remote users with the given email address
45
123
  # @option opts [Boolean] :include_remote_data Whether to include the original data Merge fetched from the third-party to produce these models.
46
124
  # @option opts [Time] :modified_after If provided, will only return objects modified after this datetime.
47
125
  # @option opts [Time] :modified_before If provided, will only return objects modified before this datetime.
@@ -64,6 +142,7 @@ module MergeATSClient
64
142
  query_params[:'created_after'] = opts[:'created_after'] if !opts[:'created_after'].nil?
65
143
  query_params[:'created_before'] = opts[:'created_before'] if !opts[:'created_before'].nil?
66
144
  query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
145
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
67
146
  query_params[:'include_remote_data'] = opts[:'include_remote_data'] if !opts[:'include_remote_data'].nil?
68
147
  query_params[:'modified_after'] = opts[:'modified_after'] if !opts[:'modified_after'].nil?
69
148
  query_params[:'modified_before'] = opts[:'modified_before'] if !opts[:'modified_before'].nil?
@@ -308,7 +308,7 @@ module MergeATSClient
308
308
  case auth_setting[:in]
309
309
  when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
310
310
  when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
311
- else fail ArgumentError, 'Authentication token must be in `query` of `header`'
311
+ else fail ArgumentError, 'Authentication token must be in `query` or `header`'
312
312
  end
313
313
  end
314
314
  end
@@ -17,10 +17,13 @@ module MergeATSClient
17
17
  class AccountToken
18
18
  attr_accessor :account_token
19
19
 
20
+ attr_accessor :integration
21
+
20
22
  # Attribute mapping from ruby-style variable name to JSON key.
21
23
  def self.attribute_map
22
24
  {
23
- :'account_token' => :'account_token'
25
+ :'account_token' => :'account_token',
26
+ :'integration' => :'integration'
24
27
  }
25
28
  end
26
29
 
@@ -32,7 +35,8 @@ module MergeATSClient
32
35
  # Attribute type mapping.
33
36
  def self.openapi_types
34
37
  {
35
- :'account_token' => :'String'
38
+ :'account_token' => :'String',
39
+ :'integration' => :'AccountIntegration'
36
40
  }
37
41
  end
38
42
 
@@ -60,6 +64,10 @@ module MergeATSClient
60
64
  if attributes.key?(:'account_token')
61
65
  self.account_token = attributes[:'account_token']
62
66
  end
67
+
68
+ if attributes.key?(:'integration')
69
+ self.integration = attributes[:'integration']
70
+ end
63
71
  end
64
72
 
65
73
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,6 +78,10 @@ module MergeATSClient
70
78
  invalid_properties.push('invalid value for "account_token", account_token cannot be nil.')
71
79
  end
72
80
 
81
+ if @integration.nil?
82
+ invalid_properties.push('invalid value for "integration", integration cannot be nil.')
83
+ end
84
+
73
85
  invalid_properties
74
86
  end
75
87
 
@@ -77,6 +89,7 @@ module MergeATSClient
77
89
  # @return true if the model is valid
78
90
  def valid?
79
91
  return false if @account_token.nil?
92
+ return false if @integration.nil?
80
93
  true
81
94
  end
82
95
 
@@ -85,7 +98,8 @@ module MergeATSClient
85
98
  def ==(o)
86
99
  return true if self.equal?(o)
87
100
  self.class == o.class &&
88
- account_token == o.account_token
101
+ account_token == o.account_token &&
102
+ integration == o.integration
89
103
  end
90
104
 
91
105
  # @see the `==` method
@@ -97,7 +111,7 @@ module MergeATSClient
97
111
  # Calculates hash code according to all attributes.
98
112
  # @return [Integer] Hash code
99
113
  def hash
100
- [account_token].hash
114
+ [account_token, integration].hash
101
115
  end
102
116
 
103
117
  # Builds the object from hash
@@ -225,7 +225,7 @@ module MergeATSClient
225
225
  when :Date
226
226
  Date.parse(value)
227
227
  when :String
228
- value.to_s
228
+ value
229
229
  when :Integer
230
230
  value.to_i
231
231
  when :Float
@@ -247,7 +247,7 @@ module MergeATSClient
247
247
  when :Date
248
248
  Date.parse(value)
249
249
  when :String
250
- value.to_s
250
+ value
251
251
  when :Integer
252
252
  value.to_i
253
253
  when :Float
@@ -29,6 +29,9 @@ module MergeATSClient
29
29
 
30
30
  attr_accessor :candidate
31
31
 
32
+ # The attachment's type.
33
+ attr_accessor :attachment_type
34
+
32
35
  attr_accessor :remote_data
33
36
 
34
37
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -39,6 +42,7 @@ module MergeATSClient
39
42
  :'file_name' => :'file_name',
40
43
  :'file_url' => :'file_url',
41
44
  :'candidate' => :'candidate',
45
+ :'attachment_type' => :'attachment_type',
42
46
  :'remote_data' => :'remote_data'
43
47
  }
44
48
  end
@@ -56,6 +60,7 @@ module MergeATSClient
56
60
  :'file_name' => :'String',
57
61
  :'file_url' => :'String',
58
62
  :'candidate' => :'String',
63
+ :'attachment_type' => :'AttachmentTypeEnum',
59
64
  :'remote_data' => :'Array<RemoteData>'
60
65
  }
61
66
  end
@@ -67,6 +72,7 @@ module MergeATSClient
67
72
  :'file_name',
68
73
  :'file_url',
69
74
  :'candidate',
75
+ :'attachment_type',
70
76
  :'remote_data'
71
77
  ])
72
78
  end
@@ -106,6 +112,10 @@ module MergeATSClient
106
112
  self.candidate = attributes[:'candidate']
107
113
  end
108
114
 
115
+ if attributes.key?(:'attachment_type')
116
+ self.attachment_type = attributes[:'attachment_type']
117
+ end
118
+
109
119
  if attributes.key?(:'remote_data')
110
120
  if (value = attributes[:'remote_data']).is_a?(Array)
111
121
  self.remote_data = value
@@ -151,6 +161,7 @@ module MergeATSClient
151
161
  file_name == o.file_name &&
152
162
  file_url == o.file_url &&
153
163
  candidate == o.candidate &&
164
+ attachment_type == o.attachment_type &&
154
165
  remote_data == o.remote_data
155
166
  end
156
167
 
@@ -163,7 +174,7 @@ module MergeATSClient
163
174
  # Calculates hash code according to all attributes.
164
175
  # @return [Integer] Hash code
165
176
  def hash
166
- [id, remote_id, file_name, file_url, candidate, remote_data].hash
177
+ [id, remote_id, file_name, file_url, candidate, attachment_type, remote_data].hash
167
178
  end
168
179
 
169
180
  # Builds the object from hash
@@ -206,7 +217,7 @@ module MergeATSClient
206
217
  when :Date
207
218
  Date.parse(value)
208
219
  when :String
209
- value.to_s
220
+ value
210
221
  when :Integer
211
222
  value.to_i
212
223
  when :Float