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
|
@@ -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
|
|
@@ -37,12 +37,12 @@ module Merge
|
|
|
37
37
|
# @param coverage [Merge::Hris::RemoteFieldApiCoverage]
|
|
38
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
39
39
|
# @return [Merge::Hris::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::Hris::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::Hris::AdvancedMetadata.validate_raw(obj: obj.advanced_metadata)
|
|
119
119
|
obj.coverage.nil? || Merge::Hris::RemoteFieldApiCoverage.validate_raw(obj: obj.coverage)
|
|
120
120
|
end
|
|
@@ -163,7 +163,7 @@ module Merge
|
|
|
163
163
|
Merge::Ticketing::Attachment.from_json(json_object: response.body)
|
|
164
164
|
end
|
|
165
165
|
|
|
166
|
-
# Returns
|
|
166
|
+
# Returns the `File` content with the given `id` as a stream of bytes.
|
|
167
167
|
#
|
|
168
168
|
# @param id [String]
|
|
169
169
|
# @param mime_type [String] If provided, specifies the export format of the file to be downloaded. For
|
|
@@ -393,7 +393,7 @@ module Merge
|
|
|
393
393
|
end
|
|
394
394
|
end
|
|
395
395
|
|
|
396
|
-
# Returns
|
|
396
|
+
# Returns the `File` content with the given `id` as a stream of bytes.
|
|
397
397
|
#
|
|
398
398
|
# @param id [String]
|
|
399
399
|
# @param mime_type [String] If provided, specifies the export format of the file to be downloaded. For
|
|
@@ -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.
|
|
@@ -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.ticketing.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.ticketing.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::Ticketing::LinkedAccounts::LinkedAccountsListRequestCategory] Options:
|
|
23
|
-
# 'filestorage')
|
|
22
|
+
# @param category [Merge::Ticketing::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::Ticketing::LinkedAccounts::LinkedAccountsListRequestCategory] Options:
|
|
110
|
-
# 'filestorage')
|
|
108
|
+
# @param category [Merge::Ticketing::LinkedAccounts::LinkedAccountsListRequestCategory] Options: `accounting`, `ats`, `crm`, `filestorage`, `hris`, `mktg`, `ticketing`
|
|
111
109
|
# - `hris` - hris
|
|
112
110
|
# - `ats` - ats
|
|
113
111
|
# - `accounting` - accounting
|
|
@@ -86,6 +86,8 @@ module Merge
|
|
|
86
86
|
# @param tags [String] If provided, will only return tickets matching the tags; multiple tags can be
|
|
87
87
|
# separated by commas.
|
|
88
88
|
# @param ticket_type [String] If provided, will only return tickets of this type.
|
|
89
|
+
# @param ticket_url [String] If provided, will only return tickets where the URL matches or contains the
|
|
90
|
+
# substring
|
|
89
91
|
# @param request_options [Merge::RequestOptions]
|
|
90
92
|
# @return [Merge::Ticketing::PaginatedTicketList]
|
|
91
93
|
# @example
|
|
@@ -96,7 +98,7 @@ module Merge
|
|
|
96
98
|
# )
|
|
97
99
|
# api.ticketing.tickets.list
|
|
98
100
|
def list(account_id: nil, assignee_ids: nil, collection_ids: nil, completed_after: nil, completed_before: nil,
|
|
99
|
-
contact_id: nil, created_after: nil, created_before: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, request_options: nil)
|
|
101
|
+
contact_id: nil, created_after: nil, created_before: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, ticket_url: nil, request_options: nil)
|
|
100
102
|
response = @request_client.conn.get do |req|
|
|
101
103
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
102
104
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -137,7 +139,8 @@ module Merge
|
|
|
137
139
|
"show_enum_origins": show_enum_origins,
|
|
138
140
|
"status": status,
|
|
139
141
|
"tags": tags,
|
|
140
|
-
"ticket_type": ticket_type
|
|
142
|
+
"ticket_type": ticket_type,
|
|
143
|
+
"ticket_url": ticket_url
|
|
141
144
|
}.compact
|
|
142
145
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
143
146
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
@@ -421,6 +424,8 @@ module Merge
|
|
|
421
424
|
# @param include_deleted_data [Boolean] Whether to include data that was marked as deleted by third party webhooks.
|
|
422
425
|
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
423
426
|
# produce these models.
|
|
427
|
+
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
428
|
+
# is_common_model_field value
|
|
424
429
|
# @param page_size [Integer] Number of results to return per page.
|
|
425
430
|
# @param request_options [Merge::RequestOptions]
|
|
426
431
|
# @return [Merge::Ticketing::PaginatedRemoteFieldClassList]
|
|
@@ -431,8 +436,8 @@ module Merge
|
|
|
431
436
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
432
437
|
# )
|
|
433
438
|
# api.ticketing.tickets.remote_field_classes_list
|
|
434
|
-
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
435
|
-
request_options: nil)
|
|
439
|
+
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
440
|
+
is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
436
441
|
response = @request_client.conn.get do |req|
|
|
437
442
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
438
443
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -447,6 +452,7 @@ module Merge
|
|
|
447
452
|
"cursor": cursor,
|
|
448
453
|
"include_deleted_data": include_deleted_data,
|
|
449
454
|
"include_remote_data": include_remote_data,
|
|
455
|
+
"is_common_model_field": is_common_model_field,
|
|
450
456
|
"page_size": page_size
|
|
451
457
|
}.compact
|
|
452
458
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -521,6 +527,8 @@ module Merge
|
|
|
521
527
|
# @param tags [String] If provided, will only return tickets matching the tags; multiple tags can be
|
|
522
528
|
# separated by commas.
|
|
523
529
|
# @param ticket_type [String] If provided, will only return tickets of this type.
|
|
530
|
+
# @param ticket_url [String] If provided, will only return tickets where the URL matches or contains the
|
|
531
|
+
# substring
|
|
524
532
|
# @param request_options [Merge::RequestOptions]
|
|
525
533
|
# @return [Merge::Ticketing::PaginatedTicketList]
|
|
526
534
|
# @example
|
|
@@ -531,7 +539,7 @@ module Merge
|
|
|
531
539
|
# )
|
|
532
540
|
# api.ticketing.tickets.list
|
|
533
541
|
def list(account_id: nil, assignee_ids: nil, collection_ids: nil, completed_after: nil, completed_before: nil,
|
|
534
|
-
contact_id: nil, created_after: nil, created_before: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, request_options: nil)
|
|
542
|
+
contact_id: nil, created_after: nil, created_before: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, ticket_url: nil, request_options: nil)
|
|
535
543
|
Async do
|
|
536
544
|
response = @request_client.conn.get do |req|
|
|
537
545
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -573,7 +581,8 @@ module Merge
|
|
|
573
581
|
"show_enum_origins": show_enum_origins,
|
|
574
582
|
"status": status,
|
|
575
583
|
"tags": tags,
|
|
576
|
-
"ticket_type": ticket_type
|
|
584
|
+
"ticket_type": ticket_type,
|
|
585
|
+
"ticket_url": ticket_url
|
|
577
586
|
}.compact
|
|
578
587
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
579
588
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
@@ -870,6 +879,8 @@ module Merge
|
|
|
870
879
|
# @param include_deleted_data [Boolean] Whether to include data that was marked as deleted by third party webhooks.
|
|
871
880
|
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
872
881
|
# produce these models.
|
|
882
|
+
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
883
|
+
# is_common_model_field value
|
|
873
884
|
# @param page_size [Integer] Number of results to return per page.
|
|
874
885
|
# @param request_options [Merge::RequestOptions]
|
|
875
886
|
# @return [Merge::Ticketing::PaginatedRemoteFieldClassList]
|
|
@@ -880,8 +891,8 @@ module Merge
|
|
|
880
891
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
881
892
|
# )
|
|
882
893
|
# api.ticketing.tickets.remote_field_classes_list
|
|
883
|
-
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
884
|
-
request_options: nil)
|
|
894
|
+
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
895
|
+
is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
885
896
|
Async do
|
|
886
897
|
response = @request_client.conn.get do |req|
|
|
887
898
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -897,6 +908,7 @@ module Merge
|
|
|
897
908
|
"cursor": cursor,
|
|
898
909
|
"include_deleted_data": include_deleted_data,
|
|
899
910
|
"include_remote_data": include_remote_data,
|
|
911
|
+
"is_common_model_field": is_common_model_field,
|
|
900
912
|
"page_size": page_size
|
|
901
913
|
}.compact
|
|
902
914
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -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::Ticketing::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::Ticketing::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::Ticketing::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
|
|
@@ -37,12 +37,12 @@ module Merge
|
|
|
37
37
|
# @param coverage [Merge::Ticketing::RemoteFieldApiCoverage]
|
|
38
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
39
39
|
# @return [Merge::Ticketing::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::Ticketing::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::Ticketing::AdvancedMetadata.validate_raw(obj: obj.advanced_metadata)
|
|
119
119
|
obj.coverage.nil? || Merge::Ticketing::RemoteFieldApiCoverage.validate_raw(obj: obj.coverage)
|
|
120
120
|
end
|
|
@@ -19,6 +19,8 @@ module Merge
|
|
|
19
19
|
attr_reader :created_at
|
|
20
20
|
# @return [DateTime] The datetime that this object was modified by Merge.
|
|
21
21
|
attr_reader :modified_at
|
|
22
|
+
# @return [String]
|
|
23
|
+
attr_reader :id
|
|
22
24
|
# @return [String] The tag's name.
|
|
23
25
|
attr_reader :name
|
|
24
26
|
# @return [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
@@ -39,6 +41,7 @@ module Merge
|
|
|
39
41
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
40
42
|
# @param created_at [DateTime] The datetime that this object was created by Merge.
|
|
41
43
|
# @param modified_at [DateTime] The datetime that this object was modified by Merge.
|
|
44
|
+
# @param id [String]
|
|
42
45
|
# @param name [String] The tag's name.
|
|
43
46
|
# @param remote_was_deleted [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
44
47
|
# platform.
|
|
@@ -46,11 +49,12 @@ module Merge
|
|
|
46
49
|
# @param remote_data [Array<Merge::Ticketing::RemoteData>]
|
|
47
50
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
48
51
|
# @return [Merge::Ticketing::Tag]
|
|
49
|
-
def initialize(remote_id: OMIT, created_at: OMIT, modified_at: OMIT,
|
|
50
|
-
field_mappings: OMIT, remote_data: OMIT, additional_properties: nil)
|
|
52
|
+
def initialize(remote_id: OMIT, created_at: OMIT, modified_at: OMIT, id: OMIT, name: OMIT,
|
|
53
|
+
remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil)
|
|
51
54
|
@remote_id = remote_id if remote_id != OMIT
|
|
52
55
|
@created_at = created_at if created_at != OMIT
|
|
53
56
|
@modified_at = modified_at if modified_at != OMIT
|
|
57
|
+
@id = id if id != OMIT
|
|
54
58
|
@name = name if name != OMIT
|
|
55
59
|
@remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT
|
|
56
60
|
@field_mappings = field_mappings if field_mappings != OMIT
|
|
@@ -60,6 +64,7 @@ module Merge
|
|
|
60
64
|
"remote_id": remote_id,
|
|
61
65
|
"created_at": created_at,
|
|
62
66
|
"modified_at": modified_at,
|
|
67
|
+
"id": id,
|
|
63
68
|
"name": name,
|
|
64
69
|
"remote_was_deleted": remote_was_deleted,
|
|
65
70
|
"field_mappings": field_mappings,
|
|
@@ -79,6 +84,7 @@ module Merge
|
|
|
79
84
|
remote_id = parsed_json["remote_id"]
|
|
80
85
|
created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?)
|
|
81
86
|
modified_at = (DateTime.parse(parsed_json["modified_at"]) unless parsed_json["modified_at"].nil?)
|
|
87
|
+
id = parsed_json["id"]
|
|
82
88
|
name = parsed_json["name"]
|
|
83
89
|
remote_was_deleted = parsed_json["remote_was_deleted"]
|
|
84
90
|
field_mappings = parsed_json["field_mappings"]
|
|
@@ -90,6 +96,7 @@ module Merge
|
|
|
90
96
|
remote_id: remote_id,
|
|
91
97
|
created_at: created_at,
|
|
92
98
|
modified_at: modified_at,
|
|
99
|
+
id: id,
|
|
93
100
|
name: name,
|
|
94
101
|
remote_was_deleted: remote_was_deleted,
|
|
95
102
|
field_mappings: field_mappings,
|
|
@@ -115,6 +122,7 @@ module Merge
|
|
|
115
122
|
obj.remote_id&.is_a?(String) != false || raise("Passed value for field obj.remote_id is not the expected type, validation failed.")
|
|
116
123
|
obj.created_at&.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
|
117
124
|
obj.modified_at&.is_a?(DateTime) != false || raise("Passed value for field obj.modified_at is not the expected type, validation failed.")
|
|
125
|
+
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
|
118
126
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
119
127
|
obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.")
|
|
120
128
|
obj.field_mappings&.is_a?(Hash) != false || raise("Passed value for field obj.field_mappings is not the expected type, validation failed.")
|
data/lib/merge_ruby_client.rb
CHANGED
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
require_relative "environment"
|
|
4
4
|
require_relative "types_export"
|
|
5
5
|
require_relative "requests"
|
|
6
|
-
require_relative "merge_ruby_client/filestorage/client"
|
|
7
6
|
require_relative "merge_ruby_client/ats/client"
|
|
8
7
|
require_relative "merge_ruby_client/crm/client"
|
|
8
|
+
require_relative "merge_ruby_client/filestorage/client"
|
|
9
9
|
require_relative "merge_ruby_client/hris/client"
|
|
10
10
|
require_relative "merge_ruby_client/ticketing/client"
|
|
11
11
|
require_relative "merge_ruby_client/accounting/client"
|
|
12
12
|
|
|
13
13
|
module Merge
|
|
14
14
|
class Client
|
|
15
|
-
# @return [Merge::Filestorage::Client]
|
|
16
|
-
attr_reader :filestorage
|
|
17
15
|
# @return [Merge::Ats::Client]
|
|
18
16
|
attr_reader :ats
|
|
19
17
|
# @return [Merge::Crm::Client]
|
|
20
18
|
attr_reader :crm
|
|
19
|
+
# @return [Merge::Filestorage::Client]
|
|
20
|
+
attr_reader :filestorage
|
|
21
21
|
# @return [Merge::Hris::Client]
|
|
22
22
|
attr_reader :hris
|
|
23
23
|
# @return [Merge::Ticketing::Client]
|
|
@@ -42,9 +42,9 @@ module Merge
|
|
|
42
42
|
api_key: api_key,
|
|
43
43
|
account_token: account_token
|
|
44
44
|
)
|
|
45
|
-
@filestorage = Merge::Filestorage::Client.new(request_client: @request_client)
|
|
46
45
|
@ats = Merge::Ats::Client.new(request_client: @request_client)
|
|
47
46
|
@crm = Merge::Crm::Client.new(request_client: @request_client)
|
|
47
|
+
@filestorage = Merge::Filestorage::Client.new(request_client: @request_client)
|
|
48
48
|
@hris = Merge::Hris::Client.new(request_client: @request_client)
|
|
49
49
|
@ticketing = Merge::Ticketing::Client.new(request_client: @request_client)
|
|
50
50
|
@accounting = Merge::Accounting::Client.new(request_client: @request_client)
|
|
@@ -52,12 +52,12 @@ module Merge
|
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
class AsyncClient
|
|
55
|
-
# @return [Merge::Filestorage::AsyncClient]
|
|
56
|
-
attr_reader :filestorage
|
|
57
55
|
# @return [Merge::Ats::AsyncClient]
|
|
58
56
|
attr_reader :ats
|
|
59
57
|
# @return [Merge::Crm::AsyncClient]
|
|
60
58
|
attr_reader :crm
|
|
59
|
+
# @return [Merge::Filestorage::AsyncClient]
|
|
60
|
+
attr_reader :filestorage
|
|
61
61
|
# @return [Merge::Hris::AsyncClient]
|
|
62
62
|
attr_reader :hris
|
|
63
63
|
# @return [Merge::Ticketing::AsyncClient]
|
|
@@ -82,9 +82,9 @@ module Merge
|
|
|
82
82
|
api_key: api_key,
|
|
83
83
|
account_token: account_token
|
|
84
84
|
)
|
|
85
|
-
@filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client)
|
|
86
85
|
@ats = Merge::Ats::AsyncClient.new(request_client: @async_request_client)
|
|
87
86
|
@crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client)
|
|
87
|
+
@filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client)
|
|
88
88
|
@hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client)
|
|
89
89
|
@ticketing = Merge::Ticketing::AsyncClient.new(request_client: @async_request_client)
|
|
90
90
|
@accounting = Merge::Accounting::AsyncClient.new(request_client: @async_request_client)
|
data/lib/requests.rb
CHANGED
|
@@ -48,7 +48,7 @@ module Merge
|
|
|
48
48
|
|
|
49
49
|
# @return [Hash{String => String}]
|
|
50
50
|
def get_headers
|
|
51
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "0.1.
|
|
51
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "0.1.4" }
|
|
52
52
|
headers["Authorization"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
53
53
|
headers
|
|
54
54
|
end
|
|
@@ -96,7 +96,7 @@ module Merge
|
|
|
96
96
|
|
|
97
97
|
# @return [Hash{String => String}]
|
|
98
98
|
def get_headers
|
|
99
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "0.1.
|
|
99
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "0.1.4" }
|
|
100
100
|
headers["Authorization"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil?
|
|
101
101
|
headers
|
|
102
102
|
end
|