Skip to content

Commit eca956c

Browse files
committed
SDK regeneration
1 parent e779ca4 commit eca956c

File tree

23 files changed

+458
-458
lines changed

23 files changed

+458
-458
lines changed

lib/merge_ruby_client.rb

+14-14
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33
require_relative "environment"
44
require_relative "types_export"
55
require_relative "requests"
6-
require_relative "merge_ruby_client/ats/client"
7-
require_relative "merge_ruby_client/crm/client"
86
require_relative "merge_ruby_client/filestorage/client"
97
require_relative "merge_ruby_client/ticketing/client"
8+
require_relative "merge_ruby_client/crm/client"
9+
require_relative "merge_ruby_client/ats/client"
1010
require_relative "merge_ruby_client/hris/client"
1111
require_relative "merge_ruby_client/accounting/client"
1212

1313
module Merge
1414
class Client
15-
# @return [Merge::Ats::Client]
16-
attr_reader :ats
17-
# @return [Merge::Crm::Client]
18-
attr_reader :crm
1915
# @return [Merge::Filestorage::Client]
2016
attr_reader :filestorage
2117
# @return [Merge::Ticketing::Client]
2218
attr_reader :ticketing
19+
# @return [Merge::Crm::Client]
20+
attr_reader :crm
21+
# @return [Merge::Ats::Client]
22+
attr_reader :ats
2323
# @return [Merge::Hris::Client]
2424
attr_reader :hris
2525
# @return [Merge::Accounting::Client]
@@ -42,24 +42,24 @@ def initialize(api_key:, environment: Environment::PRODUCTION, base_url: nil, ma
4242
api_key: api_key,
4343
account_token: account_token
4444
)
45-
@ats = Merge::Ats::Client.new(request_client: @request_client)
46-
@crm = Merge::Crm::Client.new(request_client: @request_client)
4745
@filestorage = Merge::Filestorage::Client.new(request_client: @request_client)
4846
@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)
4949
@hris = Merge::Hris::Client.new(request_client: @request_client)
5050
@accounting = Merge::Accounting::Client.new(request_client: @request_client)
5151
end
5252
end
5353

5454
class AsyncClient
55-
# @return [Merge::Ats::AsyncClient]
56-
attr_reader :ats
57-
# @return [Merge::Crm::AsyncClient]
58-
attr_reader :crm
5955
# @return [Merge::Filestorage::AsyncClient]
6056
attr_reader :filestorage
6157
# @return [Merge::Ticketing::AsyncClient]
6258
attr_reader :ticketing
59+
# @return [Merge::Crm::AsyncClient]
60+
attr_reader :crm
61+
# @return [Merge::Ats::AsyncClient]
62+
attr_reader :ats
6363
# @return [Merge::Hris::AsyncClient]
6464
attr_reader :hris
6565
# @return [Merge::Accounting::AsyncClient]
@@ -82,10 +82,10 @@ def initialize(api_key:, environment: Environment::PRODUCTION, base_url: nil, ma
8282
api_key: api_key,
8383
account_token: account_token
8484
)
85-
@ats = Merge::Ats::AsyncClient.new(request_client: @async_request_client)
86-
@crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client)
8785
@filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client)
8886
@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)
8989
@hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client)
9090
@accounting = Merge::Accounting::AsyncClient.new(request_client: @async_request_client)
9191
end

lib/merge_ruby_client/accounting/field_mapping/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def field_mappings_retrieve(request_options: nil)
6666
# api.accounting.field_mappings_create(
6767
# target_field_name: "example_target_field_name",
6868
# 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"],
7070
# remote_method: "GET",
7171
# remote_url_path: "/example-url-path",
7272
# common_model_name: "ExampleCommonModel"
@@ -274,7 +274,7 @@ def field_mappings_retrieve(request_options: nil)
274274
# api.accounting.field_mappings_create(
275275
# target_field_name: "example_target_field_name",
276276
# 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"],
278278
# remote_method: "GET",
279279
# remote_url_path: "/example-url-path",
280280
# common_model_name: "ExampleCommonModel"

lib/merge_ruby_client/accounting/link_token/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize(request_client:)
5959
# end_user_email_address: "[email protected]",
6060
# end_user_organization_name: "Test Organization",
6161
# end_user_origin_id: "12345",
62-
# categories: [HRIS]
62+
# categories: [HRIS, ATS]
6363
# )
6464
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
6565
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 @@ def initialize(request_client:)
139139
# end_user_email_address: "[email protected]",
140140
# end_user_organization_name: "Test Organization",
141141
# end_user_origin_id: "12345",
142-
# categories: [HRIS]
142+
# categories: [HRIS, ATS]
143143
# )
144144
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
145145
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)

lib/merge_ruby_client/accounting/scopes/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def linked_account_scopes_retrieve(request_options: nil)
8383
# base_url: "https://api.example.com",
8484
# api_key: "YOUR_AUTH_TOKEN"
8585
# )
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 } } }])
8787
def linked_account_scopes_create(common_models:, request_options: nil)
8888
response = @request_client.conn.post do |req|
8989
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -177,7 +177,7 @@ def linked_account_scopes_retrieve(request_options: nil)
177177
# base_url: "https://api.example.com",
178178
# api_key: "YOUR_AUTH_TOKEN"
179179
# )
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 } } }])
181181
def linked_account_scopes_create(common_models:, request_options: nil)
182182
Async do
183183
response = @request_client.conn.post do |req|

lib/merge_ruby_client/ats/field_mapping/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def field_mappings_retrieve(request_options: nil)
6666
# api.ats.field_mappings_create(
6767
# target_field_name: "example_target_field_name",
6868
# 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"],
7070
# remote_method: "GET",
7171
# remote_url_path: "/example-url-path",
7272
# common_model_name: "ExampleCommonModel"
@@ -274,7 +274,7 @@ def field_mappings_retrieve(request_options: nil)
274274
# api.ats.field_mappings_create(
275275
# target_field_name: "example_target_field_name",
276276
# 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"],
278278
# remote_method: "GET",
279279
# remote_url_path: "/example-url-path",
280280
# common_model_name: "ExampleCommonModel"

lib/merge_ruby_client/ats/link_token/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize(request_client:)
5959
# end_user_email_address: "[email protected]",
6060
# end_user_organization_name: "Test Organization",
6161
# end_user_origin_id: "12345",
62-
# categories: [HRIS]
62+
# categories: [HRIS, ATS]
6363
# )
6464
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
6565
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 @@ def initialize(request_client:)
139139
# end_user_email_address: "[email protected]",
140140
# end_user_organization_name: "Test Organization",
141141
# end_user_origin_id: "12345",
142-
# categories: [HRIS]
142+
# categories: [HRIS, ATS]
143143
# )
144144
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
145145
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)

lib/merge_ruby_client/ats/scopes/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def linked_account_scopes_retrieve(request_options: nil)
8383
# base_url: "https://api.example.com",
8484
# api_key: "YOUR_AUTH_TOKEN"
8585
# )
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 } } }])
8787
def linked_account_scopes_create(common_models:, request_options: nil)
8888
response = @request_client.conn.post do |req|
8989
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -177,7 +177,7 @@ def linked_account_scopes_retrieve(request_options: nil)
177177
# base_url: "https://api.example.com",
178178
# api_key: "YOUR_AUTH_TOKEN"
179179
# )
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 } } }])
181181
def linked_account_scopes_create(common_models:, request_options: nil)
182182
Async do
183183
response = @request_client.conn.post do |req|

lib/merge_ruby_client/crm/custom_objects/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def custom_object_classes_custom_objects_list(custom_object_class_id:, created_a
8686
# base_url: "https://api.example.com",
8787
# api_key: "YOUR_AUTH_TOKEN"
8888
# )
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" } })
9090
def custom_object_classes_custom_objects_create(custom_object_class_id:, model:, is_debug_mode: nil,
9191
run_async: nil, request_options: nil)
9292
response = @request_client.conn.post do |req|
@@ -240,7 +240,7 @@ def custom_object_classes_custom_objects_list(custom_object_class_id:, created_a
240240
# base_url: "https://api.example.com",
241241
# api_key: "YOUR_AUTH_TOKEN"
242242
# )
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" } })
244244
def custom_object_classes_custom_objects_create(custom_object_class_id:, model:, is_debug_mode: nil,
245245
run_async: nil, request_options: nil)
246246
Async do

lib/merge_ruby_client/crm/field_mapping/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def field_mappings_retrieve(request_options: nil)
6666
# api.crm.field_mappings_create(
6767
# target_field_name: "example_target_field_name",
6868
# 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"],
7070
# remote_method: "GET",
7171
# remote_url_path: "/example-url-path",
7272
# common_model_name: "ExampleCommonModel"
@@ -274,7 +274,7 @@ def field_mappings_retrieve(request_options: nil)
274274
# api.crm.field_mappings_create(
275275
# target_field_name: "example_target_field_name",
276276
# 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"],
278278
# remote_method: "GET",
279279
# remote_url_path: "/example-url-path",
280280
# common_model_name: "ExampleCommonModel"

lib/merge_ruby_client/crm/link_token/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize(request_client:)
5959
# end_user_email_address: "[email protected]",
6060
# end_user_organization_name: "Test Organization",
6161
# end_user_origin_id: "12345",
62-
# categories: [HRIS]
62+
# categories: [HRIS, ATS]
6363
# )
6464
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
6565
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 @@ def initialize(request_client:)
139139
# end_user_email_address: "[email protected]",
140140
# end_user_organization_name: "Test Organization",
141141
# end_user_origin_id: "12345",
142-
# categories: [HRIS]
142+
# categories: [HRIS, ATS]
143143
# )
144144
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
145145
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)

lib/merge_ruby_client/crm/scopes/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def linked_account_scopes_retrieve(request_options: nil)
8383
# base_url: "https://api.example.com",
8484
# api_key: "YOUR_AUTH_TOKEN"
8585
# )
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 } } }])
8787
def linked_account_scopes_create(common_models:, request_options: nil)
8888
response = @request_client.conn.post do |req|
8989
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -177,7 +177,7 @@ def linked_account_scopes_retrieve(request_options: nil)
177177
# base_url: "https://api.example.com",
178178
# api_key: "YOUR_AUTH_TOKEN"
179179
# )
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 } } }])
181181
def linked_account_scopes_create(common_models:, request_options: nil)
182182
Async do
183183
response = @request_client.conn.post do |req|

lib/merge_ruby_client/filestorage/field_mapping/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def field_mappings_retrieve(request_options: nil)
6666
# api.filestorage.field_mappings_create(
6767
# target_field_name: "example_target_field_name",
6868
# 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"],
7070
# remote_method: "GET",
7171
# remote_url_path: "/example-url-path",
7272
# common_model_name: "ExampleCommonModel"
@@ -274,7 +274,7 @@ def field_mappings_retrieve(request_options: nil)
274274
# api.filestorage.field_mappings_create(
275275
# target_field_name: "example_target_field_name",
276276
# 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"],
278278
# remote_method: "GET",
279279
# remote_url_path: "/example-url-path",
280280
# common_model_name: "ExampleCommonModel"

lib/merge_ruby_client/filestorage/link_token/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def initialize(request_client:)
5959
# end_user_email_address: "[email protected]",
6060
# end_user_organization_name: "Test Organization",
6161
# end_user_origin_id: "12345",
62-
# categories: [HRIS]
62+
# categories: [HRIS, ATS]
6363
# )
6464
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
6565
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 @@ def initialize(request_client:)
139139
# end_user_email_address: "[email protected]",
140140
# end_user_organization_name: "Test Organization",
141141
# end_user_origin_id: "12345",
142-
# categories: [HRIS]
142+
# categories: [HRIS, ATS]
143143
# )
144144
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
145145
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)

lib/merge_ruby_client/filestorage/scopes/client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def linked_account_scopes_retrieve(request_options: nil)
8383
# base_url: "https://api.example.com",
8484
# api_key: "YOUR_AUTH_TOKEN"
8585
# )
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 } } }])
8787
def linked_account_scopes_create(common_models:, request_options: nil)
8888
response = @request_client.conn.post do |req|
8989
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -177,7 +177,7 @@ def linked_account_scopes_retrieve(request_options: nil)
177177
# base_url: "https://api.example.com",
178178
# api_key: "YOUR_AUTH_TOKEN"
179179
# )
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 } } }])
181181
def linked_account_scopes_create(common_models:, request_options: nil)
182182
Async do
183183
response = @request_client.conn.post do |req|

0 commit comments

Comments
 (0)