Skip to content

Commit

Permalink
🌿 Fern Regeneration -- May 27, 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-support authored May 27, 2024
2 parents e1356ff + 2dc853d commit 23b39a4
Show file tree
Hide file tree
Showing 5 changed files with 488 additions and 488 deletions.
6 changes: 3 additions & 3 deletions lib/environment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

module Merge
class Environment
PRODUCTION = "https://api.merge.dev"
SANDBOX = "https://api-sandbox.merge.dev"
PRODUCTION_EU = "https://api-eu.merge.dev"
PRODUCTION = "https://api.merge.dev/api"
SANDBOX = "https://api-sandbox.merge.dev/api"
PRODUCTION_EU = "https://api-eu.merge.dev/api"
end
end
42 changes: 21 additions & 21 deletions lib/merge_ruby_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
require_relative "environment"
require_relative "types_export"
require_relative "requests"
require_relative "merge_ruby_client/filestorage/client"
require_relative "merge_ruby_client/ticketing/client"
require_relative "merge_ruby_client/crm/client"
require_relative "merge_ruby_client/ats/client"
require_relative "merge_ruby_client/crm/client"
require_relative "merge_ruby_client/filestorage/client"
require_relative "merge_ruby_client/hris/client"
require_relative "merge_ruby_client/ticketing/client"
require_relative "merge_ruby_client/accounting/client"

module Merge
class Client
# @return [Merge::Filestorage::Client]
attr_reader :filestorage
# @return [Merge::Ticketing::Client]
attr_reader :ticketing
# @return [Merge::Crm::Client]
attr_reader :crm
# @return [Merge::Ats::Client]
attr_reader :ats
# @return [Merge::Crm::Client]
attr_reader :crm
# @return [Merge::Filestorage::Client]
attr_reader :filestorage
# @return [Merge::Hris::Client]
attr_reader :hris
# @return [Merge::Ticketing::Client]
attr_reader :ticketing
# @return [Merge::Accounting::Client]
attr_reader :accounting

Expand All @@ -42,26 +42,26 @@ def initialize(api_key:, environment: Environment::PRODUCTION, base_url: nil, ma
api_key: api_key,
account_token: account_token
)
@filestorage = Merge::Filestorage::Client.new(request_client: @request_client)
@ticketing = Merge::Ticketing::Client.new(request_client: @request_client)
@crm = Merge::Crm::Client.new(request_client: @request_client)
@ats = Merge::Ats::Client.new(request_client: @request_client)
@crm = Merge::Crm::Client.new(request_client: @request_client)
@filestorage = Merge::Filestorage::Client.new(request_client: @request_client)
@hris = Merge::Hris::Client.new(request_client: @request_client)
@ticketing = Merge::Ticketing::Client.new(request_client: @request_client)
@accounting = Merge::Accounting::Client.new(request_client: @request_client)
end
end

class AsyncClient
# @return [Merge::Filestorage::AsyncClient]
attr_reader :filestorage
# @return [Merge::Ticketing::AsyncClient]
attr_reader :ticketing
# @return [Merge::Crm::AsyncClient]
attr_reader :crm
# @return [Merge::Ats::AsyncClient]
attr_reader :ats
# @return [Merge::Crm::AsyncClient]
attr_reader :crm
# @return [Merge::Filestorage::AsyncClient]
attr_reader :filestorage
# @return [Merge::Hris::AsyncClient]
attr_reader :hris
# @return [Merge::Ticketing::AsyncClient]
attr_reader :ticketing
# @return [Merge::Accounting::AsyncClient]
attr_reader :accounting

Expand All @@ -82,11 +82,11 @@ def initialize(api_key:, environment: Environment::PRODUCTION, base_url: nil, ma
api_key: api_key,
account_token: account_token
)
@filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client)
@ticketing = Merge::Ticketing::AsyncClient.new(request_client: @async_request_client)
@crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client)
@ats = Merge::Ats::AsyncClient.new(request_client: @async_request_client)
@crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client)
@filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client)
@hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client)
@ticketing = Merge::Ticketing::AsyncClient.new(request_client: @async_request_client)
@accounting = Merge::Accounting::AsyncClient.new(request_client: @async_request_client)
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(api_key:, environment: Environment::PRODUCTION, base_url: nil, ma
@headers = {
"X-Fern-Language": "Ruby",
"X-Fern-SDK-Name": "merge_ruby_client",
"X-Fern-SDK-Version": "0.1.1",
"X-Fern-SDK-Version": "0.1.2",
"Authorization": "Bearer #{api_key}"
}
@headers["X-Account-Token"] = account_token unless account_token.nil?
Expand Down Expand Up @@ -75,7 +75,7 @@ def initialize(api_key:, environment: Environment::PRODUCTION, base_url: nil, ma
@headers = {
"X-Fern-Language": "Ruby",
"X-Fern-SDK-Name": "merge_ruby_client",
"X-Fern-SDK-Version": "0.1.1",
"X-Fern-SDK-Version": "0.1.2",
"Authorization": "Bearer #{api_key}"
}
@headers["X-Account-Token"] = account_token unless account_token.nil?
Expand Down
Loading

0 comments on commit 23b39a4

Please sign in to comment.