merge_ruby_client 0.1.3 → 0.1.4
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.
- checksums.yaml +4 -4
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/purchase_order_line_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/purchase_order_line_item_request.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/transaction_line_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line.rb +4 -4
- data/lib/merge_ruby_client/ats/applications/client.rb +2 -0
- data/lib/merge_ruby_client/ats/applications/types/applications_list_request_expand.rb +192 -0
- data/lib/merge_ruby_client/ats/applications/types/applications_retrieve_request_expand.rb +192 -0
- data/lib/merge_ruby_client/ats/audit_trail/client.rb +4 -2
- data/lib/merge_ruby_client/ats/issues/client.rb +10 -4
- data/lib/merge_ruby_client/ats/link_token/client.rb +10 -2
- data/lib/merge_ruby_client/ats/types/account_integration.rb +16 -2
- data/lib/merge_ruby_client/ats/types/activity.rb +2 -2
- data/lib/merge_ruby_client/ats/types/activity_request.rb +2 -2
- data/lib/merge_ruby_client/ats/types/application.rb +13 -1
- data/lib/merge_ruby_client/ats/types/application_request.rb +13 -1
- data/lib/merge_ruby_client/ats/types/application_request_screening_question_answers_item.rb +56 -0
- data/lib/merge_ruby_client/ats/types/application_screening_question_answers_item.rb +56 -0
- data/lib/merge_ruby_client/ats/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/ats/types/email_address.rb +12 -2
- data/lib/merge_ruby_client/ats/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/ats/types/phone_number.rb +12 -2
- data/lib/merge_ruby_client/ats/types/remote_field_api.rb +3 -3
- data/lib/merge_ruby_client/ats/types/screening_question.rb +12 -2
- data/lib/merge_ruby_client/ats/types/screening_question_answer.rb +132 -0
- data/lib/merge_ruby_client/ats/types/screening_question_answer_question.rb +58 -0
- data/lib/merge_ruby_client/ats/types/screening_question_answer_request.rb +113 -0
- data/lib/merge_ruby_client/ats/types/screening_question_answer_request_question.rb +59 -0
- data/lib/merge_ruby_client/ats/types/screening_question_option.rb +12 -2
- data/lib/merge_ruby_client/ats/types/url.rb +13 -2
- data/lib/merge_ruby_client/crm/accounts/client.rb +8 -2
- data/lib/merge_ruby_client/crm/audit_trail/client.rb +4 -2
- data/lib/merge_ruby_client/crm/contacts/client.rb +8 -2
- data/lib/merge_ruby_client/crm/custom_objects/client.rb +99 -0
- data/lib/merge_ruby_client/crm/engagement_types/client.rb +8 -2
- data/lib/merge_ruby_client/crm/engagements/client.rb +8 -2
- data/lib/merge_ruby_client/crm/issues/client.rb +10 -4
- data/lib/merge_ruby_client/crm/leads/client.rb +8 -2
- data/lib/merge_ruby_client/crm/link_token/client.rb +10 -2
- data/lib/merge_ruby_client/crm/notes/client.rb +8 -2
- data/lib/merge_ruby_client/crm/opportunities/client.rb +16 -4
- data/lib/merge_ruby_client/crm/stages/client.rb +8 -2
- data/lib/merge_ruby_client/crm/tasks/client.rb +8 -2
- data/lib/merge_ruby_client/crm/types/account_integration.rb +16 -2
- data/lib/merge_ruby_client/crm/types/association.rb +6 -6
- data/lib/merge_ruby_client/crm/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/crm/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/crm/types/remote_field.rb +3 -3
- data/lib/merge_ruby_client/crm/types/remote_field_api.rb +3 -3
- data/lib/merge_ruby_client/crm/types/remote_field_request.rb +3 -3
- data/lib/merge_ruby_client/crm/users/client.rb +8 -2
- data/lib/merge_ruby_client/filestorage/audit_trail/client.rb +4 -2
- data/lib/merge_ruby_client/filestorage/files/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/issues/client.rb +10 -4
- data/lib/merge_ruby_client/filestorage/link_token/client.rb +10 -2
- data/lib/merge_ruby_client/filestorage/linked_accounts/client.rb +2 -4
- data/lib/merge_ruby_client/filestorage/types/account_integration.rb +16 -2
- data/lib/merge_ruby_client/filestorage/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/filestorage/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/filestorage/types/group.rb +1 -1
- data/lib/merge_ruby_client/filestorage/types/remote_field_api.rb +3 -3
- data/lib/merge_ruby_client/hris/audit_trail/client.rb +4 -2
- data/lib/merge_ruby_client/hris/bank_info/client.rb +4 -2
- data/lib/merge_ruby_client/hris/employments/client.rb +4 -2
- data/lib/merge_ruby_client/hris/issues/client.rb +10 -4
- data/lib/merge_ruby_client/hris/link_token/client.rb +10 -2
- data/lib/merge_ruby_client/hris/linked_accounts/client.rb +2 -4
- data/lib/merge_ruby_client/hris/timesheet_entries/client.rb +10 -12
- data/lib/merge_ruby_client/hris/types/account_integration.rb +16 -2
- data/lib/merge_ruby_client/hris/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/hris/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/hris/types/remote_field_api.rb +3 -3
- data/lib/merge_ruby_client/ticketing/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/audit_trail/client.rb +4 -2
- data/lib/merge_ruby_client/ticketing/issues/client.rb +10 -4
- data/lib/merge_ruby_client/ticketing/link_token/client.rb +10 -2
- data/lib/merge_ruby_client/ticketing/linked_accounts/client.rb +2 -4
- data/lib/merge_ruby_client/ticketing/tickets/client.rb +20 -8
- data/lib/merge_ruby_client/ticketing/types/account_integration.rb +16 -2
- data/lib/merge_ruby_client/ticketing/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/ticketing/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/ticketing/types/remote_field_api.rb +3 -3
- data/lib/merge_ruby_client/ticketing/types/tag.rb +10 -2
- data/lib/merge_ruby_client.rb +7 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +112 -106
- metadata +8 -2
|
@@ -19,7 +19,7 @@ module Merge
|
|
|
19
19
|
@request_client = request_client
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
# Gets issues.
|
|
22
|
+
# Gets all issues for Organization.
|
|
23
23
|
#
|
|
24
24
|
# @param account_token [String]
|
|
25
25
|
# @param cursor [String] The pagination cursor value.
|
|
@@ -36,6 +36,8 @@ module Merge
|
|
|
36
36
|
# datetime.
|
|
37
37
|
# @param last_incident_time_before [DateTime] If provided, will only return issues whose last incident time was before this
|
|
38
38
|
# datetime.
|
|
39
|
+
# @param linked_account_id [String] If provided, will only include issues pertaining to the linked account passed
|
|
40
|
+
# in.
|
|
39
41
|
# @param page_size [Integer] Number of results to return per page.
|
|
40
42
|
# @param start_date [String] If included, will only include issues whose most recent action occurred after
|
|
41
43
|
# this time
|
|
@@ -52,7 +54,7 @@ module Merge
|
|
|
52
54
|
# )
|
|
53
55
|
# api.filestorage.issues.list
|
|
54
56
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
|
55
|
-
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
57
|
+
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
56
58
|
response = @request_client.conn.get do |req|
|
|
57
59
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
58
60
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -74,6 +76,7 @@ module Merge
|
|
|
74
76
|
"integration_name": integration_name,
|
|
75
77
|
"last_incident_time_after": last_incident_time_after,
|
|
76
78
|
"last_incident_time_before": last_incident_time_before,
|
|
79
|
+
"linked_account_id": linked_account_id,
|
|
77
80
|
"page_size": page_size,
|
|
78
81
|
"start_date": start_date,
|
|
79
82
|
"status": status
|
|
@@ -130,7 +133,7 @@ module Merge
|
|
|
130
133
|
@request_client = request_client
|
|
131
134
|
end
|
|
132
135
|
|
|
133
|
-
# Gets issues.
|
|
136
|
+
# Gets all issues for Organization.
|
|
134
137
|
#
|
|
135
138
|
# @param account_token [String]
|
|
136
139
|
# @param cursor [String] The pagination cursor value.
|
|
@@ -147,6 +150,8 @@ module Merge
|
|
|
147
150
|
# datetime.
|
|
148
151
|
# @param last_incident_time_before [DateTime] If provided, will only return issues whose last incident time was before this
|
|
149
152
|
# datetime.
|
|
153
|
+
# @param linked_account_id [String] If provided, will only include issues pertaining to the linked account passed
|
|
154
|
+
# in.
|
|
150
155
|
# @param page_size [Integer] Number of results to return per page.
|
|
151
156
|
# @param start_date [String] If included, will only include issues whose most recent action occurred after
|
|
152
157
|
# this time
|
|
@@ -163,7 +168,7 @@ module Merge
|
|
|
163
168
|
# )
|
|
164
169
|
# api.filestorage.issues.list
|
|
165
170
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
|
166
|
-
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
171
|
+
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
167
172
|
Async do
|
|
168
173
|
response = @request_client.conn.get do |req|
|
|
169
174
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -186,6 +191,7 @@ module Merge
|
|
|
186
191
|
"integration_name": integration_name,
|
|
187
192
|
"last_incident_time_after": last_incident_time_after,
|
|
188
193
|
"last_incident_time_before": last_incident_time_before,
|
|
194
|
+
"linked_account_id": linked_account_id,
|
|
189
195
|
"page_size": page_size,
|
|
190
196
|
"start_date": start_date,
|
|
191
197
|
"status": status
|
|
@@ -35,6 +35,9 @@ module Merge
|
|
|
35
35
|
# @param should_create_magic_link_url [Boolean] Whether to generate a Magic Link URL. Defaults to false. For more information on
|
|
36
36
|
# Magic Link, see
|
|
37
37
|
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
38
|
+
# @param hide_admin_magic_link [Boolean] Whether to generate a Magic Link URL on the Admin Needed screen during the
|
|
39
|
+
# linking flow. Defaults to false. For more information on Magic Link, see
|
|
40
|
+
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
38
41
|
# @param common_models [Array<Hash>] An array of objects to specify the models and fields that will be disabled for a
|
|
39
42
|
# given Linked Account. Each object uses model_id, enabled_actions, and
|
|
40
43
|
# disabled_fields to specify the model, method, and fields that are scoped for a
|
|
@@ -62,7 +65,7 @@ module Merge
|
|
|
62
65
|
# categories: [HRIS, ATS]
|
|
63
66
|
# )
|
|
64
67
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
|
65
|
-
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
68
|
+
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, hide_admin_magic_link: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
66
69
|
response = @request_client.conn.post do |req|
|
|
67
70
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
68
71
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -84,6 +87,7 @@ module Merge
|
|
|
84
87
|
integration: integration,
|
|
85
88
|
link_expiry_mins: link_expiry_mins,
|
|
86
89
|
should_create_magic_link_url: should_create_magic_link_url,
|
|
90
|
+
hide_admin_magic_link: hide_admin_magic_link,
|
|
87
91
|
common_models: common_models,
|
|
88
92
|
category_common_model_scopes: category_common_model_scopes,
|
|
89
93
|
language: language,
|
|
@@ -122,6 +126,9 @@ module Merge
|
|
|
122
126
|
# @param should_create_magic_link_url [Boolean] Whether to generate a Magic Link URL. Defaults to false. For more information on
|
|
123
127
|
# Magic Link, see
|
|
124
128
|
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
129
|
+
# @param hide_admin_magic_link [Boolean] Whether to generate a Magic Link URL on the Admin Needed screen during the
|
|
130
|
+
# linking flow. Defaults to false. For more information on Magic Link, see
|
|
131
|
+
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
125
132
|
# @param common_models [Array<Hash>] An array of objects to specify the models and fields that will be disabled for a
|
|
126
133
|
# given Linked Account. Each object uses model_id, enabled_actions, and
|
|
127
134
|
# disabled_fields to specify the model, method, and fields that are scoped for a
|
|
@@ -149,7 +156,7 @@ module Merge
|
|
|
149
156
|
# categories: [HRIS, ATS]
|
|
150
157
|
# )
|
|
151
158
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
|
152
|
-
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
159
|
+
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, hide_admin_magic_link: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
153
160
|
Async do
|
|
154
161
|
response = @request_client.conn.post do |req|
|
|
155
162
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -172,6 +179,7 @@ module Merge
|
|
|
172
179
|
integration: integration,
|
|
173
180
|
link_expiry_mins: link_expiry_mins,
|
|
174
181
|
should_create_magic_link_url: should_create_magic_link_url,
|
|
182
|
+
hide_admin_magic_link: hide_admin_magic_link,
|
|
175
183
|
common_models: common_models,
|
|
176
184
|
category_common_model_scopes: category_common_model_scopes,
|
|
177
185
|
language: language,
|
|
@@ -19,8 +19,7 @@ module Merge
|
|
|
19
19
|
|
|
20
20
|
# List linked accounts for your organization.
|
|
21
21
|
#
|
|
22
|
-
# @param category [Merge::Filestorage::LinkedAccounts::LinkedAccountsListRequestCategory] Options:
|
|
23
|
-
# 'filestorage')
|
|
22
|
+
# @param category [Merge::Filestorage::LinkedAccounts::LinkedAccountsListRequestCategory] Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
|
|
24
23
|
# - `hris` - hris
|
|
25
24
|
# - `ats` - ats
|
|
26
25
|
# - `accounting` - accounting
|
|
@@ -106,8 +105,7 @@ module Merge
|
|
|
106
105
|
|
|
107
106
|
# List linked accounts for your organization.
|
|
108
107
|
#
|
|
109
|
-
# @param category [Merge::Filestorage::LinkedAccounts::LinkedAccountsListRequestCategory] Options:
|
|
110
|
-
# 'filestorage')
|
|
108
|
+
# @param category [Merge::Filestorage::LinkedAccounts::LinkedAccountsListRequestCategory] Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
|
|
111
109
|
# - `hris` - hris
|
|
112
110
|
# - `ats` - ats
|
|
113
111
|
# - `accounting` - accounting
|
|
@@ -9,6 +9,11 @@ module Merge
|
|
|
9
9
|
class AccountIntegration
|
|
10
10
|
# @return [String] Company name.
|
|
11
11
|
attr_reader :name
|
|
12
|
+
# @return [String] Optional. This shortened name appears in places with limited space, usually in
|
|
13
|
+
# conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example:
|
|
14
|
+
# <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP
|
|
15
|
+
# SuccessFactors)</i>
|
|
16
|
+
attr_reader :abbreviated_name
|
|
12
17
|
# @return [Array<Merge::Filestorage::CategoriesEnum>] Category or categories this integration belongs to. Multiple categories should
|
|
13
18
|
# be comma separated, i.e. [ats, hris].
|
|
14
19
|
attr_reader :categories
|
|
@@ -41,6 +46,10 @@ module Merge
|
|
|
41
46
|
OMIT = Object.new
|
|
42
47
|
|
|
43
48
|
# @param name [String] Company name.
|
|
49
|
+
# @param abbreviated_name [String] Optional. This shortened name appears in places with limited space, usually in
|
|
50
|
+
# conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example:
|
|
51
|
+
# <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP
|
|
52
|
+
# SuccessFactors)</i>
|
|
44
53
|
# @param categories [Array<Merge::Filestorage::CategoriesEnum>] Category or categories this integration belongs to. Multiple categories should
|
|
45
54
|
# be comma separated, i.e. [ats, hris].
|
|
46
55
|
# @param image [String] Company logo in rectangular shape. <b>Upload an image with a clear
|
|
@@ -58,9 +67,10 @@ module Merge
|
|
|
58
67
|
# @param category_beta_status [Hash{String => Object}] Category or categories this integration is in beta status for.
|
|
59
68
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
60
69
|
# @return [Merge::Filestorage::AccountIntegration]
|
|
61
|
-
def initialize(name:,
|
|
62
|
-
api_endpoints_to_documentation_urls: OMIT, webhook_setup_guide_url: OMIT, category_beta_status: OMIT, additional_properties: nil)
|
|
70
|
+
def initialize(name:, abbreviated_name: OMIT, categories: OMIT, image: OMIT, square_image: OMIT, color: OMIT,
|
|
71
|
+
slug: OMIT, api_endpoints_to_documentation_urls: OMIT, webhook_setup_guide_url: OMIT, category_beta_status: OMIT, additional_properties: nil)
|
|
63
72
|
@name = name
|
|
73
|
+
@abbreviated_name = abbreviated_name if abbreviated_name != OMIT
|
|
64
74
|
@categories = categories if categories != OMIT
|
|
65
75
|
@image = image if image != OMIT
|
|
66
76
|
@square_image = square_image if square_image != OMIT
|
|
@@ -74,6 +84,7 @@ module Merge
|
|
|
74
84
|
@additional_properties = additional_properties
|
|
75
85
|
@_field_set = {
|
|
76
86
|
"name": name,
|
|
87
|
+
"abbreviated_name": abbreviated_name,
|
|
77
88
|
"categories": categories,
|
|
78
89
|
"image": image,
|
|
79
90
|
"square_image": square_image,
|
|
@@ -95,6 +106,7 @@ module Merge
|
|
|
95
106
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
96
107
|
parsed_json = JSON.parse(json_object)
|
|
97
108
|
name = parsed_json["name"]
|
|
109
|
+
abbreviated_name = parsed_json["abbreviated_name"]
|
|
98
110
|
categories = parsed_json["categories"]
|
|
99
111
|
image = parsed_json["image"]
|
|
100
112
|
square_image = parsed_json["square_image"]
|
|
@@ -105,6 +117,7 @@ module Merge
|
|
|
105
117
|
category_beta_status = parsed_json["category_beta_status"]
|
|
106
118
|
new(
|
|
107
119
|
name: name,
|
|
120
|
+
abbreviated_name: abbreviated_name,
|
|
108
121
|
categories: categories,
|
|
109
122
|
image: image,
|
|
110
123
|
square_image: square_image,
|
|
@@ -132,6 +145,7 @@ module Merge
|
|
|
132
145
|
# @return [Void]
|
|
133
146
|
def self.validate_raw(obj:)
|
|
134
147
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
148
|
+
obj.abbreviated_name&.is_a?(String) != false || raise("Passed value for field obj.abbreviated_name is not the expected type, validation failed.")
|
|
135
149
|
obj.categories&.is_a?(Array) != false || raise("Passed value for field obj.categories is not the expected type, validation failed.")
|
|
136
150
|
obj.image&.is_a?(String) != false || raise("Passed value for field obj.image is not the expected type, validation failed.")
|
|
137
151
|
obj.square_image&.is_a?(String) != false || raise("Passed value for field obj.square_image is not the expected type, validation failed.")
|
|
@@ -71,6 +71,7 @@ module Merge
|
|
|
71
71
|
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
72
72
|
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
73
73
|
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
74
|
+
# - `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED
|
|
74
75
|
attr_reader :event_type
|
|
75
76
|
# @return [String]
|
|
76
77
|
attr_reader :event_description
|
|
@@ -141,6 +142,7 @@ module Merge
|
|
|
141
142
|
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
142
143
|
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
143
144
|
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
145
|
+
# - `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED
|
|
144
146
|
# @param event_description [String]
|
|
145
147
|
# @param created_at [DateTime]
|
|
146
148
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -46,6 +46,7 @@ module Merge
|
|
|
46
46
|
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
47
47
|
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
48
48
|
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
49
|
+
# - `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED
|
|
49
50
|
class EventTypeEnum
|
|
50
51
|
CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY"
|
|
51
52
|
DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY"
|
|
@@ -84,6 +85,7 @@ module Merge
|
|
|
84
85
|
ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK"
|
|
85
86
|
DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK"
|
|
86
87
|
MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED"
|
|
88
|
+
END_USER_CREDENTIALS_ACCESSED = "END_USER_CREDENTIALS_ACCESSED"
|
|
87
89
|
end
|
|
88
90
|
end
|
|
89
91
|
end
|
|
@@ -8,7 +8,7 @@ module Merge
|
|
|
8
8
|
module Filestorage
|
|
9
9
|
# # The Group Object
|
|
10
10
|
# ### Description
|
|
11
|
-
# The `Group` object is used to represent any subset of `
|
|
11
|
+
# The `Group` object is used to represent any subset of `Users`. This can extend
|
|
12
12
|
# to company domains as well.
|
|
13
13
|
# ### Usage Example
|
|
14
14
|
# Fetch from the `GET /api/filestorage/v1/groups` endpoint and view their groups.
|
|
@@ -37,12 +37,12 @@ module Merge
|
|
|
37
37
|
# @param coverage [Merge::Filestorage::RemoteFieldApiCoverage]
|
|
38
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
39
39
|
# @return [Merge::Filestorage::RemoteFieldApi]
|
|
40
|
-
def initialize(schema:, remote_key_name:, remote_endpoint_info:, example_values
|
|
40
|
+
def initialize(schema:, remote_key_name:, remote_endpoint_info:, example_values: OMIT, advanced_metadata: OMIT,
|
|
41
41
|
coverage: OMIT, additional_properties: nil)
|
|
42
42
|
@schema = schema
|
|
43
43
|
@remote_key_name = remote_key_name
|
|
44
44
|
@remote_endpoint_info = remote_endpoint_info
|
|
45
|
-
@example_values = example_values
|
|
45
|
+
@example_values = example_values if example_values != OMIT
|
|
46
46
|
@advanced_metadata = advanced_metadata if advanced_metadata != OMIT
|
|
47
47
|
@coverage = coverage if coverage != OMIT
|
|
48
48
|
@additional_properties = additional_properties
|
|
@@ -114,7 +114,7 @@ module Merge
|
|
|
114
114
|
obj.schema.is_a?(Hash) != false || raise("Passed value for field obj.schema is not the expected type, validation failed.")
|
|
115
115
|
obj.remote_key_name.is_a?(String) != false || raise("Passed value for field obj.remote_key_name is not the expected type, validation failed.")
|
|
116
116
|
Merge::Filestorage::RemoteEndpointInfo.validate_raw(obj: obj.remote_endpoint_info)
|
|
117
|
-
obj.example_values
|
|
117
|
+
obj.example_values&.is_a?(Array) != false || raise("Passed value for field obj.example_values is not the expected type, validation failed.")
|
|
118
118
|
obj.advanced_metadata.nil? || Merge::Filestorage::AdvancedMetadata.validate_raw(obj: obj.advanced_metadata)
|
|
119
119
|
obj.coverage.nil? || Merge::Filestorage::RemoteFieldApiCoverage.validate_raw(obj: obj.coverage)
|
|
120
120
|
end
|
|
@@ -40,7 +40,8 @@ module Merge
|
|
|
40
40
|
# `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`,
|
|
41
41
|
# `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`,
|
|
42
42
|
# `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`,
|
|
43
|
-
# `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED
|
|
43
|
+
# `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`,
|
|
44
|
+
# `END_USER_CREDENTIALS_ACCESSED`
|
|
44
45
|
# @param page_size [Integer] Number of results to return per page.
|
|
45
46
|
# @param start_date [String] If included, will only include audit trail events that occurred after this time
|
|
46
47
|
# @param user_email [String] If provided, this will return events associated with the specified user email.
|
|
@@ -118,7 +119,8 @@ module Merge
|
|
|
118
119
|
# `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`,
|
|
119
120
|
# `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`,
|
|
120
121
|
# `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`, `ENABLED_MERGE_WEBHOOK`,
|
|
121
|
-
# `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED
|
|
122
|
+
# `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`,
|
|
123
|
+
# `END_USER_CREDENTIALS_ACCESSED`
|
|
122
124
|
# @param page_size [Integer] Number of results to return per page.
|
|
123
125
|
# @param start_date [String] If included, will only include audit trail events that occurred after this time
|
|
124
126
|
# @param user_email [String] If provided, this will return events associated with the specified user email.
|
|
@@ -39,7 +39,8 @@ module Merge
|
|
|
39
39
|
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
|
|
40
40
|
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
|
|
41
41
|
# returned.
|
|
42
|
-
# @param order_by [Merge::Hris::BankInfo::BankInfoListRequestOrderBy] Overrides the default ordering for this endpoint.
|
|
42
|
+
# @param order_by [Merge::Hris::BankInfo::BankInfoListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
|
|
43
|
+
# remote_created_at, -remote_created_at.
|
|
43
44
|
# @param page_size [Integer] Number of results to return per page.
|
|
44
45
|
# @param remote_fields [String] Deprecated. Use show_enum_origins.
|
|
45
46
|
# @param remote_id [String] The API provider's ID for the given object.
|
|
@@ -169,7 +170,8 @@ module Merge
|
|
|
169
170
|
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
|
|
170
171
|
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
|
|
171
172
|
# returned.
|
|
172
|
-
# @param order_by [Merge::Hris::BankInfo::BankInfoListRequestOrderBy] Overrides the default ordering for this endpoint.
|
|
173
|
+
# @param order_by [Merge::Hris::BankInfo::BankInfoListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
|
|
174
|
+
# remote_created_at, -remote_created_at.
|
|
173
175
|
# @param page_size [Integer] Number of results to return per page.
|
|
174
176
|
# @param remote_fields [String] Deprecated. Use show_enum_origins.
|
|
175
177
|
# @param remote_id [String] The API provider's ID for the given object.
|
|
@@ -39,7 +39,8 @@ module Merge
|
|
|
39
39
|
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
|
|
40
40
|
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
|
|
41
41
|
# returned.
|
|
42
|
-
# @param order_by [Merge::Hris::Employments::EmploymentsListRequestOrderBy] Overrides the default ordering for this endpoint.
|
|
42
|
+
# @param order_by [Merge::Hris::Employments::EmploymentsListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
|
|
43
|
+
# effective_date, -effective_date.
|
|
43
44
|
# @param page_size [Integer] Number of results to return per page.
|
|
44
45
|
# @param remote_fields [Merge::Hris::Employments::EmploymentsListRequestRemoteFields] Deprecated. Use show_enum_origins.
|
|
45
46
|
# @param remote_id [String] The API provider's ID for the given object.
|
|
@@ -162,7 +163,8 @@ module Merge
|
|
|
162
163
|
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
|
|
163
164
|
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
|
|
164
165
|
# returned.
|
|
165
|
-
# @param order_by [Merge::Hris::Employments::EmploymentsListRequestOrderBy] Overrides the default ordering for this endpoint.
|
|
166
|
+
# @param order_by [Merge::Hris::Employments::EmploymentsListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
|
|
167
|
+
# effective_date, -effective_date.
|
|
166
168
|
# @param page_size [Integer] Number of results to return per page.
|
|
167
169
|
# @param remote_fields [Merge::Hris::Employments::EmploymentsListRequestRemoteFields] Deprecated. Use show_enum_origins.
|
|
168
170
|
# @param remote_id [String] The API provider's ID for the given object.
|
|
@@ -19,7 +19,7 @@ module Merge
|
|
|
19
19
|
@request_client = request_client
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
-
# Gets issues.
|
|
22
|
+
# Gets all issues for Organization.
|
|
23
23
|
#
|
|
24
24
|
# @param account_token [String]
|
|
25
25
|
# @param cursor [String] The pagination cursor value.
|
|
@@ -36,6 +36,8 @@ module Merge
|
|
|
36
36
|
# datetime.
|
|
37
37
|
# @param last_incident_time_before [DateTime] If provided, will only return issues whose last incident time was before this
|
|
38
38
|
# datetime.
|
|
39
|
+
# @param linked_account_id [String] If provided, will only include issues pertaining to the linked account passed
|
|
40
|
+
# in.
|
|
39
41
|
# @param page_size [Integer] Number of results to return per page.
|
|
40
42
|
# @param start_date [String] If included, will only include issues whose most recent action occurred after
|
|
41
43
|
# this time
|
|
@@ -52,7 +54,7 @@ module Merge
|
|
|
52
54
|
# )
|
|
53
55
|
# api.hris.issues.list
|
|
54
56
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
|
55
|
-
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
57
|
+
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
56
58
|
response = @request_client.conn.get do |req|
|
|
57
59
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
58
60
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -74,6 +76,7 @@ module Merge
|
|
|
74
76
|
"integration_name": integration_name,
|
|
75
77
|
"last_incident_time_after": last_incident_time_after,
|
|
76
78
|
"last_incident_time_before": last_incident_time_before,
|
|
79
|
+
"linked_account_id": linked_account_id,
|
|
77
80
|
"page_size": page_size,
|
|
78
81
|
"start_date": start_date,
|
|
79
82
|
"status": status
|
|
@@ -130,7 +133,7 @@ module Merge
|
|
|
130
133
|
@request_client = request_client
|
|
131
134
|
end
|
|
132
135
|
|
|
133
|
-
# Gets issues.
|
|
136
|
+
# Gets all issues for Organization.
|
|
134
137
|
#
|
|
135
138
|
# @param account_token [String]
|
|
136
139
|
# @param cursor [String] The pagination cursor value.
|
|
@@ -147,6 +150,8 @@ module Merge
|
|
|
147
150
|
# datetime.
|
|
148
151
|
# @param last_incident_time_before [DateTime] If provided, will only return issues whose last incident time was before this
|
|
149
152
|
# datetime.
|
|
153
|
+
# @param linked_account_id [String] If provided, will only include issues pertaining to the linked account passed
|
|
154
|
+
# in.
|
|
150
155
|
# @param page_size [Integer] Number of results to return per page.
|
|
151
156
|
# @param start_date [String] If included, will only include issues whose most recent action occurred after
|
|
152
157
|
# this time
|
|
@@ -163,7 +168,7 @@ module Merge
|
|
|
163
168
|
# )
|
|
164
169
|
# api.hris.issues.list
|
|
165
170
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
|
166
|
-
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
171
|
+
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
167
172
|
Async do
|
|
168
173
|
response = @request_client.conn.get do |req|
|
|
169
174
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -186,6 +191,7 @@ module Merge
|
|
|
186
191
|
"integration_name": integration_name,
|
|
187
192
|
"last_incident_time_after": last_incident_time_after,
|
|
188
193
|
"last_incident_time_before": last_incident_time_before,
|
|
194
|
+
"linked_account_id": linked_account_id,
|
|
189
195
|
"page_size": page_size,
|
|
190
196
|
"start_date": start_date,
|
|
191
197
|
"status": status
|
|
@@ -35,6 +35,9 @@ module Merge
|
|
|
35
35
|
# @param should_create_magic_link_url [Boolean] Whether to generate a Magic Link URL. Defaults to false. For more information on
|
|
36
36
|
# Magic Link, see
|
|
37
37
|
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
38
|
+
# @param hide_admin_magic_link [Boolean] Whether to generate a Magic Link URL on the Admin Needed screen during the
|
|
39
|
+
# linking flow. Defaults to false. For more information on Magic Link, see
|
|
40
|
+
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
38
41
|
# @param common_models [Array<Hash>] An array of objects to specify the models and fields that will be disabled for a
|
|
39
42
|
# given Linked Account. Each object uses model_id, enabled_actions, and
|
|
40
43
|
# disabled_fields to specify the model, method, and fields that are scoped for a
|
|
@@ -62,7 +65,7 @@ module Merge
|
|
|
62
65
|
# categories: [HRIS, ATS]
|
|
63
66
|
# )
|
|
64
67
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
|
65
|
-
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
68
|
+
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, hide_admin_magic_link: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
66
69
|
response = @request_client.conn.post do |req|
|
|
67
70
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
68
71
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -84,6 +87,7 @@ module Merge
|
|
|
84
87
|
integration: integration,
|
|
85
88
|
link_expiry_mins: link_expiry_mins,
|
|
86
89
|
should_create_magic_link_url: should_create_magic_link_url,
|
|
90
|
+
hide_admin_magic_link: hide_admin_magic_link,
|
|
87
91
|
common_models: common_models,
|
|
88
92
|
category_common_model_scopes: category_common_model_scopes,
|
|
89
93
|
language: language,
|
|
@@ -122,6 +126,9 @@ module Merge
|
|
|
122
126
|
# @param should_create_magic_link_url [Boolean] Whether to generate a Magic Link URL. Defaults to false. For more information on
|
|
123
127
|
# Magic Link, see
|
|
124
128
|
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
129
|
+
# @param hide_admin_magic_link [Boolean] Whether to generate a Magic Link URL on the Admin Needed screen during the
|
|
130
|
+
# linking flow. Defaults to false. For more information on Magic Link, see
|
|
131
|
+
# https://merge.dev/blog/integrations-fast-say-hello-to-magic-link.
|
|
125
132
|
# @param common_models [Array<Hash>] An array of objects to specify the models and fields that will be disabled for a
|
|
126
133
|
# given Linked Account. Each object uses model_id, enabled_actions, and
|
|
127
134
|
# disabled_fields to specify the model, method, and fields that are scoped for a
|
|
@@ -149,7 +156,7 @@ module Merge
|
|
|
149
156
|
# categories: [HRIS, ATS]
|
|
150
157
|
# )
|
|
151
158
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
|
152
|
-
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
159
|
+
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, hide_admin_magic_link: nil, common_models: nil, category_common_model_scopes: nil, language: nil, integration_specific_config: nil, request_options: nil)
|
|
153
160
|
Async do
|
|
154
161
|
response = @request_client.conn.post do |req|
|
|
155
162
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -172,6 +179,7 @@ module Merge
|
|
|
172
179
|
integration: integration,
|
|
173
180
|
link_expiry_mins: link_expiry_mins,
|
|
174
181
|
should_create_magic_link_url: should_create_magic_link_url,
|
|
182
|
+
hide_admin_magic_link: hide_admin_magic_link,
|
|
175
183
|
common_models: common_models,
|
|
176
184
|
category_common_model_scopes: category_common_model_scopes,
|
|
177
185
|
language: language,
|
|
@@ -19,8 +19,7 @@ module Merge
|
|
|
19
19
|
|
|
20
20
|
# List linked accounts for your organization.
|
|
21
21
|
#
|
|
22
|
-
# @param category [Merge::Hris::LinkedAccounts::LinkedAccountsListRequestCategory] Options:
|
|
23
|
-
# 'filestorage')
|
|
22
|
+
# @param category [Merge::Hris::LinkedAccounts::LinkedAccountsListRequestCategory] Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
|
|
24
23
|
# - `hris` - hris
|
|
25
24
|
# - `ats` - ats
|
|
26
25
|
# - `accounting` - accounting
|
|
@@ -106,8 +105,7 @@ module Merge
|
|
|
106
105
|
|
|
107
106
|
# List linked accounts for your organization.
|
|
108
107
|
#
|
|
109
|
-
# @param category [Merge::Hris::LinkedAccounts::LinkedAccountsListRequestCategory] Options:
|
|
110
|
-
# 'filestorage')
|
|
108
|
+
# @param category [Merge::Hris::LinkedAccounts::LinkedAccountsListRequestCategory] Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
|
|
111
109
|
# - `hris` - hris
|
|
112
110
|
# - `ats` - ats
|
|
113
111
|
# - `accounting` - accounting
|
|
@@ -27,9 +27,9 @@ module Merge
|
|
|
27
27
|
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
|
|
28
28
|
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
|
|
29
29
|
# @param cursor [String] The pagination cursor value.
|
|
30
|
-
# @param employee_id [String] If provided, will only return
|
|
31
|
-
# @param ended_after [String] If provided, will only return
|
|
32
|
-
# @param ended_before [String] If provided, will only return
|
|
30
|
+
# @param employee_id [String] If provided, will only return timesheet entries for this employee.
|
|
31
|
+
# @param ended_after [String] If provided, will only return timesheet entries ended after this datetime.
|
|
32
|
+
# @param ended_before [String] If provided, will only return timesheet entries ended before this datetime.
|
|
33
33
|
# @param include_deleted_data [Boolean] Whether to include data that was marked as deleted by third party webhooks.
|
|
34
34
|
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
35
35
|
# produce these models.
|
|
@@ -40,9 +40,8 @@ module Merge
|
|
|
40
40
|
# start_time, -start_time.
|
|
41
41
|
# @param page_size [Integer] Number of results to return per page.
|
|
42
42
|
# @param remote_id [String] The API provider's ID for the given object.
|
|
43
|
-
# @param started_after [String] If provided, will only return
|
|
44
|
-
# @param started_before [String] If provided, will only return
|
|
45
|
-
# datetime.
|
|
43
|
+
# @param started_after [String] If provided, will only return timesheet entries started after this datetime.
|
|
44
|
+
# @param started_before [String] If provided, will only return timesheet entries started before this datetime.
|
|
46
45
|
# @param request_options [Merge::RequestOptions]
|
|
47
46
|
# @return [Merge::Hris::PaginatedTimesheetEntryList]
|
|
48
47
|
# @example
|
|
@@ -214,9 +213,9 @@ module Merge
|
|
|
214
213
|
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
|
|
215
214
|
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
|
|
216
215
|
# @param cursor [String] The pagination cursor value.
|
|
217
|
-
# @param employee_id [String] If provided, will only return
|
|
218
|
-
# @param ended_after [String] If provided, will only return
|
|
219
|
-
# @param ended_before [String] If provided, will only return
|
|
216
|
+
# @param employee_id [String] If provided, will only return timesheet entries for this employee.
|
|
217
|
+
# @param ended_after [String] If provided, will only return timesheet entries ended after this datetime.
|
|
218
|
+
# @param ended_before [String] If provided, will only return timesheet entries ended before this datetime.
|
|
220
219
|
# @param include_deleted_data [Boolean] Whether to include data that was marked as deleted by third party webhooks.
|
|
221
220
|
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
222
221
|
# produce these models.
|
|
@@ -227,9 +226,8 @@ module Merge
|
|
|
227
226
|
# start_time, -start_time.
|
|
228
227
|
# @param page_size [Integer] Number of results to return per page.
|
|
229
228
|
# @param remote_id [String] The API provider's ID for the given object.
|
|
230
|
-
# @param started_after [String] If provided, will only return
|
|
231
|
-
# @param started_before [String] If provided, will only return
|
|
232
|
-
# datetime.
|
|
229
|
+
# @param started_after [String] If provided, will only return timesheet entries started after this datetime.
|
|
230
|
+
# @param started_before [String] If provided, will only return timesheet entries started before this datetime.
|
|
233
231
|
# @param request_options [Merge::RequestOptions]
|
|
234
232
|
# @return [Merge::Hris::PaginatedTimesheetEntryList]
|
|
235
233
|
# @example
|
|
@@ -9,6 +9,11 @@ module Merge
|
|
|
9
9
|
class AccountIntegration
|
|
10
10
|
# @return [String] Company name.
|
|
11
11
|
attr_reader :name
|
|
12
|
+
# @return [String] Optional. This shortened name appears in places with limited space, usually in
|
|
13
|
+
# conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example:
|
|
14
|
+
# <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP
|
|
15
|
+
# SuccessFactors)</i>
|
|
16
|
+
attr_reader :abbreviated_name
|
|
12
17
|
# @return [Array<Merge::Hris::CategoriesEnum>] Category or categories this integration belongs to. Multiple categories should
|
|
13
18
|
# be comma separated, i.e. [ats, hris].
|
|
14
19
|
attr_reader :categories
|
|
@@ -41,6 +46,10 @@ module Merge
|
|
|
41
46
|
OMIT = Object.new
|
|
42
47
|
|
|
43
48
|
# @param name [String] Company name.
|
|
49
|
+
# @param abbreviated_name [String] Optional. This shortened name appears in places with limited space, usually in
|
|
50
|
+
# conjunction with the platform's logo (e.g., Merge Link menu).<br><br>Example:
|
|
51
|
+
# <i>Workforce Now (in lieu of ADP Workforce Now), SuccessFactors (in lieu of SAP
|
|
52
|
+
# SuccessFactors)</i>
|
|
44
53
|
# @param categories [Array<Merge::Hris::CategoriesEnum>] Category or categories this integration belongs to. Multiple categories should
|
|
45
54
|
# be comma separated, i.e. [ats, hris].
|
|
46
55
|
# @param image [String] Company logo in rectangular shape. <b>Upload an image with a clear
|
|
@@ -58,9 +67,10 @@ module Merge
|
|
|
58
67
|
# @param category_beta_status [Hash{String => Object}] Category or categories this integration is in beta status for.
|
|
59
68
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
60
69
|
# @return [Merge::Hris::AccountIntegration]
|
|
61
|
-
def initialize(name:,
|
|
62
|
-
api_endpoints_to_documentation_urls: OMIT, webhook_setup_guide_url: OMIT, category_beta_status: OMIT, additional_properties: nil)
|
|
70
|
+
def initialize(name:, abbreviated_name: OMIT, categories: OMIT, image: OMIT, square_image: OMIT, color: OMIT,
|
|
71
|
+
slug: OMIT, api_endpoints_to_documentation_urls: OMIT, webhook_setup_guide_url: OMIT, category_beta_status: OMIT, additional_properties: nil)
|
|
63
72
|
@name = name
|
|
73
|
+
@abbreviated_name = abbreviated_name if abbreviated_name != OMIT
|
|
64
74
|
@categories = categories if categories != OMIT
|
|
65
75
|
@image = image if image != OMIT
|
|
66
76
|
@square_image = square_image if square_image != OMIT
|
|
@@ -74,6 +84,7 @@ module Merge
|
|
|
74
84
|
@additional_properties = additional_properties
|
|
75
85
|
@_field_set = {
|
|
76
86
|
"name": name,
|
|
87
|
+
"abbreviated_name": abbreviated_name,
|
|
77
88
|
"categories": categories,
|
|
78
89
|
"image": image,
|
|
79
90
|
"square_image": square_image,
|
|
@@ -95,6 +106,7 @@ module Merge
|
|
|
95
106
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
96
107
|
parsed_json = JSON.parse(json_object)
|
|
97
108
|
name = parsed_json["name"]
|
|
109
|
+
abbreviated_name = parsed_json["abbreviated_name"]
|
|
98
110
|
categories = parsed_json["categories"]
|
|
99
111
|
image = parsed_json["image"]
|
|
100
112
|
square_image = parsed_json["square_image"]
|
|
@@ -105,6 +117,7 @@ module Merge
|
|
|
105
117
|
category_beta_status = parsed_json["category_beta_status"]
|
|
106
118
|
new(
|
|
107
119
|
name: name,
|
|
120
|
+
abbreviated_name: abbreviated_name,
|
|
108
121
|
categories: categories,
|
|
109
122
|
image: image,
|
|
110
123
|
square_image: square_image,
|
|
@@ -132,6 +145,7 @@ module Merge
|
|
|
132
145
|
# @return [Void]
|
|
133
146
|
def self.validate_raw(obj:)
|
|
134
147
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
148
|
+
obj.abbreviated_name&.is_a?(String) != false || raise("Passed value for field obj.abbreviated_name is not the expected type, validation failed.")
|
|
135
149
|
obj.categories&.is_a?(Array) != false || raise("Passed value for field obj.categories is not the expected type, validation failed.")
|
|
136
150
|
obj.image&.is_a?(String) != false || raise("Passed value for field obj.image is not the expected type, validation failed.")
|
|
137
151
|
obj.square_image&.is_a?(String) != false || raise("Passed value for field obj.square_image is not the expected type, validation failed.")
|
|
@@ -71,6 +71,7 @@ module Merge
|
|
|
71
71
|
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
72
72
|
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
73
73
|
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
74
|
+
# - `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED
|
|
74
75
|
attr_reader :event_type
|
|
75
76
|
# @return [String]
|
|
76
77
|
attr_reader :event_description
|
|
@@ -141,6 +142,7 @@ module Merge
|
|
|
141
142
|
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
142
143
|
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
143
144
|
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
145
|
+
# - `END_USER_CREDENTIALS_ACCESSED` - END_USER_CREDENTIALS_ACCESSED
|
|
144
146
|
# @param event_description [String]
|
|
145
147
|
# @param created_at [DateTime]
|
|
146
148
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|