merge_ruby_client 0.0.5 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6892e113b8399aa641d7f9effca5b30606c34ef146febadb84d29cd58383c95
4
- data.tar.gz: b903ba525e751158d3a7e74baaa6a6db2818d1c1039968c712fd2315d351cf2a
3
+ metadata.gz: bc9c98c86fe47d5a9ac40c8fd7f33b9057c5ef3acc9c156d2e3ee2f30d3e1f09
4
+ data.tar.gz: 7481741d4f45367e823c5a825c14f4553cf725929a417b333573d65bd04f5633
5
5
  SHA512:
6
- metadata.gz: e0a9b28bb06c31f217e94725d5f9e33cfdb7ba852e1d635e59fa9f85ae0beb7ef1a301661b8e16674ec62bc094a1312ece3587c8b124e60705974c473d19d0dc
7
- data.tar.gz: f583fd294721f261ba90d82789b14ea91eeebb3e006aff49a5cc7300b9ef1aa0c376491e47356cb3eeecb96ea13b57b388d49331bfd828436e98edf8be2e3b3d
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|
@@ -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.0.5",
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.0.5",
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?