merge_ruby_client 0.0.5 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/merge_ruby_client/accounting/field_mapping/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/link_token/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/scopes/client.rb +2 -2
- data/lib/merge_ruby_client/ats/field_mapping/client.rb +2 -2
- data/lib/merge_ruby_client/ats/link_token/client.rb +2 -2
- data/lib/merge_ruby_client/ats/scopes/client.rb +2 -2
- data/lib/merge_ruby_client/crm/custom_objects/client.rb +2 -2
- data/lib/merge_ruby_client/crm/field_mapping/client.rb +2 -2
- data/lib/merge_ruby_client/crm/link_token/client.rb +2 -2
- data/lib/merge_ruby_client/crm/scopes/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/field_mapping/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/link_token/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/scopes/client.rb +2 -2
- data/lib/merge_ruby_client/hris/field_mapping/client.rb +2 -2
- data/lib/merge_ruby_client/hris/link_token/client.rb +2 -2
- data/lib/merge_ruby_client/hris/scopes/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/field_mapping/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/link_token/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/scopes/client.rb +2 -2
- data/lib/merge_ruby_client.rb +14 -14
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +403 -403
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc9c98c86fe47d5a9ac40c8fd7f33b9057c5ef3acc9c156d2e3ee2f30d3e1f09
|
4
|
+
data.tar.gz: 7481741d4f45367e823c5a825c14f4553cf725929a417b333573d65bd04f5633
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52bf55778807747b88af5418702694feded4cc8e6b16f21cff5764d690e67970657cc96ff52af4a36d1a89d596eb7c51267a0c9ca6fe29cccc57bb4b31dc4d58
|
7
|
+
data.tar.gz: '078491219101f7fee429730b3eebb33b7331a7c1c2765ae0806aaf951a7a0e3a0fe3c6bccc4bfd5f3b141c52eeab84fe1bbafb5ab2fbaccfd27ee8f85fa3db74'
|
@@ -66,7 +66,7 @@ module Merge
|
|
66
66
|
# api.accounting.field_mappings_create(
|
67
67
|
# target_field_name: "example_target_field_name",
|
68
68
|
# target_field_description: "this is a example description of the target field",
|
69
|
-
# remote_field_traversal_path: ,
|
69
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
70
70
|
# remote_method: "GET",
|
71
71
|
# remote_url_path: "/example-url-path",
|
72
72
|
# common_model_name: "ExampleCommonModel"
|
@@ -274,7 +274,7 @@ module Merge
|
|
274
274
|
# api.accounting.field_mappings_create(
|
275
275
|
# target_field_name: "example_target_field_name",
|
276
276
|
# target_field_description: "this is a example description of the target field",
|
277
|
-
# remote_field_traversal_path: ,
|
277
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
278
278
|
# remote_method: "GET",
|
279
279
|
# remote_url_path: "/example-url-path",
|
280
280
|
# common_model_name: "ExampleCommonModel"
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# end_user_email_address: "example@gmail.com",
|
60
60
|
# end_user_organization_name: "Test Organization",
|
61
61
|
# end_user_origin_id: "12345",
|
62
|
-
# categories: [HRIS]
|
62
|
+
# categories: [HRIS, ATS]
|
63
63
|
# )
|
64
64
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
65
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)
|
@@ -139,7 +139,7 @@ module Merge
|
|
139
139
|
# end_user_email_address: "example@gmail.com",
|
140
140
|
# end_user_organization_name: "Test Organization",
|
141
141
|
# end_user_origin_id: "12345",
|
142
|
-
# categories: [HRIS]
|
142
|
+
# categories: [HRIS, ATS]
|
143
143
|
# )
|
144
144
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
145
145
|
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)
|
@@ -83,7 +83,7 @@ module Merge
|
|
83
83
|
# base_url: "https://api.example.com",
|
84
84
|
# api_key: "YOUR_AUTH_TOKEN"
|
85
85
|
# )
|
86
|
-
# api.accounting.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
86
|
+
# api.accounting.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
87
87
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
88
88
|
response = @request_client.conn.post do |req|
|
89
89
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# base_url: "https://api.example.com",
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.accounting.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
180
|
+
# api.accounting.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
181
181
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
182
182
|
Async do
|
183
183
|
response = @request_client.conn.post do |req|
|
@@ -66,7 +66,7 @@ module Merge
|
|
66
66
|
# api.ats.field_mappings_create(
|
67
67
|
# target_field_name: "example_target_field_name",
|
68
68
|
# target_field_description: "this is a example description of the target field",
|
69
|
-
# remote_field_traversal_path: ,
|
69
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
70
70
|
# remote_method: "GET",
|
71
71
|
# remote_url_path: "/example-url-path",
|
72
72
|
# common_model_name: "ExampleCommonModel"
|
@@ -274,7 +274,7 @@ module Merge
|
|
274
274
|
# api.ats.field_mappings_create(
|
275
275
|
# target_field_name: "example_target_field_name",
|
276
276
|
# target_field_description: "this is a example description of the target field",
|
277
|
-
# remote_field_traversal_path: ,
|
277
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
278
278
|
# remote_method: "GET",
|
279
279
|
# remote_url_path: "/example-url-path",
|
280
280
|
# common_model_name: "ExampleCommonModel"
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# end_user_email_address: "example@gmail.com",
|
60
60
|
# end_user_organization_name: "Test Organization",
|
61
61
|
# end_user_origin_id: "12345",
|
62
|
-
# categories: [HRIS]
|
62
|
+
# categories: [HRIS, ATS]
|
63
63
|
# )
|
64
64
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
65
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)
|
@@ -139,7 +139,7 @@ module Merge
|
|
139
139
|
# end_user_email_address: "example@gmail.com",
|
140
140
|
# end_user_organization_name: "Test Organization",
|
141
141
|
# end_user_origin_id: "12345",
|
142
|
-
# categories: [HRIS]
|
142
|
+
# categories: [HRIS, ATS]
|
143
143
|
# )
|
144
144
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
145
145
|
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)
|
@@ -83,7 +83,7 @@ module Merge
|
|
83
83
|
# base_url: "https://api.example.com",
|
84
84
|
# api_key: "YOUR_AUTH_TOKEN"
|
85
85
|
# )
|
86
|
-
# api.ats.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
86
|
+
# api.ats.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
87
87
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
88
88
|
response = @request_client.conn.post do |req|
|
89
89
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# base_url: "https://api.example.com",
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.ats.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
180
|
+
# api.ats.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
181
181
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
182
182
|
Async do
|
183
183
|
response = @request_client.conn.post do |req|
|
@@ -86,7 +86,7 @@ module Merge
|
|
86
86
|
# base_url: "https://api.example.com",
|
87
87
|
# api_key: "YOUR_AUTH_TOKEN"
|
88
88
|
# )
|
89
|
-
# api.crm.custom_object_classes_custom_objects_create(custom_object_class_id: "custom_object_class_id", model: { fields: {
|
89
|
+
# api.crm.custom_object_classes_custom_objects_create(custom_object_class_id: "custom_object_class_id", model: { fields: { "test_field": "hello" } })
|
90
90
|
def custom_object_classes_custom_objects_create(custom_object_class_id:, model:, is_debug_mode: nil,
|
91
91
|
run_async: nil, request_options: nil)
|
92
92
|
response = @request_client.conn.post do |req|
|
@@ -240,7 +240,7 @@ module Merge
|
|
240
240
|
# base_url: "https://api.example.com",
|
241
241
|
# api_key: "YOUR_AUTH_TOKEN"
|
242
242
|
# )
|
243
|
-
# api.crm.custom_object_classes_custom_objects_create(custom_object_class_id: "custom_object_class_id", model: { fields: {
|
243
|
+
# api.crm.custom_object_classes_custom_objects_create(custom_object_class_id: "custom_object_class_id", model: { fields: { "test_field": "hello" } })
|
244
244
|
def custom_object_classes_custom_objects_create(custom_object_class_id:, model:, is_debug_mode: nil,
|
245
245
|
run_async: nil, request_options: nil)
|
246
246
|
Async do
|
@@ -66,7 +66,7 @@ module Merge
|
|
66
66
|
# api.crm.field_mappings_create(
|
67
67
|
# target_field_name: "example_target_field_name",
|
68
68
|
# target_field_description: "this is a example description of the target field",
|
69
|
-
# remote_field_traversal_path: ,
|
69
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
70
70
|
# remote_method: "GET",
|
71
71
|
# remote_url_path: "/example-url-path",
|
72
72
|
# common_model_name: "ExampleCommonModel"
|
@@ -274,7 +274,7 @@ module Merge
|
|
274
274
|
# api.crm.field_mappings_create(
|
275
275
|
# target_field_name: "example_target_field_name",
|
276
276
|
# target_field_description: "this is a example description of the target field",
|
277
|
-
# remote_field_traversal_path: ,
|
277
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
278
278
|
# remote_method: "GET",
|
279
279
|
# remote_url_path: "/example-url-path",
|
280
280
|
# common_model_name: "ExampleCommonModel"
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# end_user_email_address: "example@gmail.com",
|
60
60
|
# end_user_organization_name: "Test Organization",
|
61
61
|
# end_user_origin_id: "12345",
|
62
|
-
# categories: [HRIS]
|
62
|
+
# categories: [HRIS, ATS]
|
63
63
|
# )
|
64
64
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
65
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)
|
@@ -139,7 +139,7 @@ module Merge
|
|
139
139
|
# end_user_email_address: "example@gmail.com",
|
140
140
|
# end_user_organization_name: "Test Organization",
|
141
141
|
# end_user_origin_id: "12345",
|
142
|
-
# categories: [HRIS]
|
142
|
+
# categories: [HRIS, ATS]
|
143
143
|
# )
|
144
144
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
145
145
|
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)
|
@@ -83,7 +83,7 @@ module Merge
|
|
83
83
|
# base_url: "https://api.example.com",
|
84
84
|
# api_key: "YOUR_AUTH_TOKEN"
|
85
85
|
# )
|
86
|
-
# api.crm.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
86
|
+
# api.crm.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
87
87
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
88
88
|
response = @request_client.conn.post do |req|
|
89
89
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# base_url: "https://api.example.com",
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.crm.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
180
|
+
# api.crm.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
181
181
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
182
182
|
Async do
|
183
183
|
response = @request_client.conn.post do |req|
|
@@ -66,7 +66,7 @@ module Merge
|
|
66
66
|
# api.filestorage.field_mappings_create(
|
67
67
|
# target_field_name: "example_target_field_name",
|
68
68
|
# target_field_description: "this is a example description of the target field",
|
69
|
-
# remote_field_traversal_path: ,
|
69
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
70
70
|
# remote_method: "GET",
|
71
71
|
# remote_url_path: "/example-url-path",
|
72
72
|
# common_model_name: "ExampleCommonModel"
|
@@ -274,7 +274,7 @@ module Merge
|
|
274
274
|
# api.filestorage.field_mappings_create(
|
275
275
|
# target_field_name: "example_target_field_name",
|
276
276
|
# target_field_description: "this is a example description of the target field",
|
277
|
-
# remote_field_traversal_path: ,
|
277
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
278
278
|
# remote_method: "GET",
|
279
279
|
# remote_url_path: "/example-url-path",
|
280
280
|
# common_model_name: "ExampleCommonModel"
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# end_user_email_address: "example@gmail.com",
|
60
60
|
# end_user_organization_name: "Test Organization",
|
61
61
|
# end_user_origin_id: "12345",
|
62
|
-
# categories: [HRIS]
|
62
|
+
# categories: [HRIS, ATS]
|
63
63
|
# )
|
64
64
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
65
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)
|
@@ -139,7 +139,7 @@ module Merge
|
|
139
139
|
# end_user_email_address: "example@gmail.com",
|
140
140
|
# end_user_organization_name: "Test Organization",
|
141
141
|
# end_user_origin_id: "12345",
|
142
|
-
# categories: [HRIS]
|
142
|
+
# categories: [HRIS, ATS]
|
143
143
|
# )
|
144
144
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
145
145
|
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)
|
@@ -83,7 +83,7 @@ module Merge
|
|
83
83
|
# base_url: "https://api.example.com",
|
84
84
|
# api_key: "YOUR_AUTH_TOKEN"
|
85
85
|
# )
|
86
|
-
# api.filestorage.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
86
|
+
# api.filestorage.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
87
87
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
88
88
|
response = @request_client.conn.post do |req|
|
89
89
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# base_url: "https://api.example.com",
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.filestorage.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
180
|
+
# api.filestorage.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
181
181
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
182
182
|
Async do
|
183
183
|
response = @request_client.conn.post do |req|
|
@@ -66,7 +66,7 @@ module Merge
|
|
66
66
|
# api.hris.field_mappings_create(
|
67
67
|
# target_field_name: "example_target_field_name",
|
68
68
|
# target_field_description: "this is a example description of the target field",
|
69
|
-
# remote_field_traversal_path: ,
|
69
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
70
70
|
# remote_method: "GET",
|
71
71
|
# remote_url_path: "/example-url-path",
|
72
72
|
# common_model_name: "ExampleCommonModel"
|
@@ -274,7 +274,7 @@ module Merge
|
|
274
274
|
# api.hris.field_mappings_create(
|
275
275
|
# target_field_name: "example_target_field_name",
|
276
276
|
# target_field_description: "this is a example description of the target field",
|
277
|
-
# remote_field_traversal_path: ,
|
277
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
278
278
|
# remote_method: "GET",
|
279
279
|
# remote_url_path: "/example-url-path",
|
280
280
|
# common_model_name: "ExampleCommonModel"
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# end_user_email_address: "example@gmail.com",
|
60
60
|
# end_user_organization_name: "Test Organization",
|
61
61
|
# end_user_origin_id: "12345",
|
62
|
-
# categories: [HRIS]
|
62
|
+
# categories: [HRIS, ATS]
|
63
63
|
# )
|
64
64
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
65
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)
|
@@ -139,7 +139,7 @@ module Merge
|
|
139
139
|
# end_user_email_address: "example@gmail.com",
|
140
140
|
# end_user_organization_name: "Test Organization",
|
141
141
|
# end_user_origin_id: "12345",
|
142
|
-
# categories: [HRIS]
|
142
|
+
# categories: [HRIS, ATS]
|
143
143
|
# )
|
144
144
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
145
145
|
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)
|
@@ -83,7 +83,7 @@ module Merge
|
|
83
83
|
# base_url: "https://api.example.com",
|
84
84
|
# api_key: "YOUR_AUTH_TOKEN"
|
85
85
|
# )
|
86
|
-
# api.hris.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
86
|
+
# api.hris.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
87
87
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
88
88
|
response = @request_client.conn.post do |req|
|
89
89
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# base_url: "https://api.example.com",
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.hris.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
180
|
+
# api.hris.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
181
181
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
182
182
|
Async do
|
183
183
|
response = @request_client.conn.post do |req|
|
@@ -66,7 +66,7 @@ module Merge
|
|
66
66
|
# api.ticketing.field_mappings_create(
|
67
67
|
# target_field_name: "example_target_field_name",
|
68
68
|
# target_field_description: "this is a example description of the target field",
|
69
|
-
# remote_field_traversal_path: ,
|
69
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
70
70
|
# remote_method: "GET",
|
71
71
|
# remote_url_path: "/example-url-path",
|
72
72
|
# common_model_name: "ExampleCommonModel"
|
@@ -274,7 +274,7 @@ module Merge
|
|
274
274
|
# api.ticketing.field_mappings_create(
|
275
275
|
# target_field_name: "example_target_field_name",
|
276
276
|
# target_field_description: "this is a example description of the target field",
|
277
|
-
# remote_field_traversal_path: ,
|
277
|
+
# remote_field_traversal_path: ["example_remote_field"],
|
278
278
|
# remote_method: "GET",
|
279
279
|
# remote_url_path: "/example-url-path",
|
280
280
|
# common_model_name: "ExampleCommonModel"
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# end_user_email_address: "example@gmail.com",
|
60
60
|
# end_user_organization_name: "Test Organization",
|
61
61
|
# end_user_origin_id: "12345",
|
62
|
-
# categories: [HRIS]
|
62
|
+
# categories: [HRIS, ATS]
|
63
63
|
# )
|
64
64
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
65
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)
|
@@ -139,7 +139,7 @@ module Merge
|
|
139
139
|
# end_user_email_address: "example@gmail.com",
|
140
140
|
# end_user_organization_name: "Test Organization",
|
141
141
|
# end_user_origin_id: "12345",
|
142
|
-
# categories: [HRIS]
|
142
|
+
# categories: [HRIS, ATS]
|
143
143
|
# )
|
144
144
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
145
145
|
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)
|
@@ -83,7 +83,7 @@ module Merge
|
|
83
83
|
# base_url: "https://api.example.com",
|
84
84
|
# api_key: "YOUR_AUTH_TOKEN"
|
85
85
|
# )
|
86
|
-
# api.ticketing.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
86
|
+
# api.ticketing.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
87
87
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
88
88
|
response = @request_client.conn.post do |req|
|
89
89
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# base_url: "https://api.example.com",
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.ticketing.linked_account_scopes_create(common_models: [{ model_name: "model_name" }])
|
180
|
+
# api.ticketing.linked_account_scopes_create(common_models: [{ model_name: "Employee", model_permissions: { "READ": { is_enabled: true }, "WRITE": { is_enabled: false } } }, { model_name: "Benefit", model_permissions: { "WRITE": { is_enabled: false } } }])
|
181
181
|
def linked_account_scopes_create(common_models:, request_options: nil)
|
182
182
|
Async do
|
183
183
|
response = @request_client.conn.post do |req|
|
data/lib/merge_ruby_client.rb
CHANGED
@@ -3,23 +3,23 @@
|
|
3
3
|
require_relative "environment"
|
4
4
|
require_relative "types_export"
|
5
5
|
require_relative "requests"
|
6
|
-
require_relative "merge_ruby_client/ats/client"
|
7
|
-
require_relative "merge_ruby_client/crm/client"
|
8
6
|
require_relative "merge_ruby_client/filestorage/client"
|
9
7
|
require_relative "merge_ruby_client/ticketing/client"
|
8
|
+
require_relative "merge_ruby_client/crm/client"
|
9
|
+
require_relative "merge_ruby_client/ats/client"
|
10
10
|
require_relative "merge_ruby_client/hris/client"
|
11
11
|
require_relative "merge_ruby_client/accounting/client"
|
12
12
|
|
13
13
|
module Merge
|
14
14
|
class Client
|
15
|
-
# @return [Merge::Ats::Client]
|
16
|
-
attr_reader :ats
|
17
|
-
# @return [Merge::Crm::Client]
|
18
|
-
attr_reader :crm
|
19
15
|
# @return [Merge::Filestorage::Client]
|
20
16
|
attr_reader :filestorage
|
21
17
|
# @return [Merge::Ticketing::Client]
|
22
18
|
attr_reader :ticketing
|
19
|
+
# @return [Merge::Crm::Client]
|
20
|
+
attr_reader :crm
|
21
|
+
# @return [Merge::Ats::Client]
|
22
|
+
attr_reader :ats
|
23
23
|
# @return [Merge::Hris::Client]
|
24
24
|
attr_reader :hris
|
25
25
|
# @return [Merge::Accounting::Client]
|
@@ -42,24 +42,24 @@ module Merge
|
|
42
42
|
api_key: api_key,
|
43
43
|
account_token: account_token
|
44
44
|
)
|
45
|
-
@ats = Merge::Ats::Client.new(request_client: @request_client)
|
46
|
-
@crm = Merge::Crm::Client.new(request_client: @request_client)
|
47
45
|
@filestorage = Merge::Filestorage::Client.new(request_client: @request_client)
|
48
46
|
@ticketing = Merge::Ticketing::Client.new(request_client: @request_client)
|
47
|
+
@crm = Merge::Crm::Client.new(request_client: @request_client)
|
48
|
+
@ats = Merge::Ats::Client.new(request_client: @request_client)
|
49
49
|
@hris = Merge::Hris::Client.new(request_client: @request_client)
|
50
50
|
@accounting = Merge::Accounting::Client.new(request_client: @request_client)
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
54
|
class AsyncClient
|
55
|
-
# @return [Merge::Ats::AsyncClient]
|
56
|
-
attr_reader :ats
|
57
|
-
# @return [Merge::Crm::AsyncClient]
|
58
|
-
attr_reader :crm
|
59
55
|
# @return [Merge::Filestorage::AsyncClient]
|
60
56
|
attr_reader :filestorage
|
61
57
|
# @return [Merge::Ticketing::AsyncClient]
|
62
58
|
attr_reader :ticketing
|
59
|
+
# @return [Merge::Crm::AsyncClient]
|
60
|
+
attr_reader :crm
|
61
|
+
# @return [Merge::Ats::AsyncClient]
|
62
|
+
attr_reader :ats
|
63
63
|
# @return [Merge::Hris::AsyncClient]
|
64
64
|
attr_reader :hris
|
65
65
|
# @return [Merge::Accounting::AsyncClient]
|
@@ -82,10 +82,10 @@ module Merge
|
|
82
82
|
api_key: api_key,
|
83
83
|
account_token: account_token
|
84
84
|
)
|
85
|
-
@ats = Merge::Ats::AsyncClient.new(request_client: @async_request_client)
|
86
|
-
@crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client)
|
87
85
|
@filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client)
|
88
86
|
@ticketing = Merge::Ticketing::AsyncClient.new(request_client: @async_request_client)
|
87
|
+
@crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client)
|
88
|
+
@ats = Merge::Ats::AsyncClient.new(request_client: @async_request_client)
|
89
89
|
@hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client)
|
90
90
|
@accounting = Merge::Accounting::AsyncClient.new(request_client: @async_request_client)
|
91
91
|
end
|
data/lib/requests.rb
CHANGED
@@ -31,7 +31,7 @@ module Merge
|
|
31
31
|
@headers = {
|
32
32
|
"X-Fern-Language": "Ruby",
|
33
33
|
"X-Fern-SDK-Name": "merge_ruby_client",
|
34
|
-
"X-Fern-SDK-Version": "0.
|
34
|
+
"X-Fern-SDK-Version": "0.1.1",
|
35
35
|
"Authorization": "Bearer #{api_key}"
|
36
36
|
}
|
37
37
|
@headers["X-Account-Token"] = account_token unless account_token.nil?
|
@@ -75,7 +75,7 @@ module Merge
|
|
75
75
|
@headers = {
|
76
76
|
"X-Fern-Language": "Ruby",
|
77
77
|
"X-Fern-SDK-Name": "merge_ruby_client",
|
78
|
-
"X-Fern-SDK-Version": "0.
|
78
|
+
"X-Fern-SDK-Version": "0.1.1",
|
79
79
|
"Authorization": "Bearer #{api_key}"
|
80
80
|
}
|
81
81
|
@headers["X-Account-Token"] = account_token unless account_token.nil?
|