Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions lib/merge_ruby_client/accounting/accounting_periods/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, inclu
# @param id [String]
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param request_options [Merge::RequestOptions]
# @return [Merge::Accounting::AccountingPeriod]
# @example
Expand All @@ -79,7 +81,7 @@ def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, inclu
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.accounting_periods.retrieve(id: "id")
def retrieve(id:, include_remote_data: nil, request_options: nil)
def retrieve(id:, include_remote_data: nil, include_shell_data: nil, request_options: nil)
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
Expand All @@ -91,7 +93,8 @@ def retrieve(id:, include_remote_data: nil, request_options: nil)
}.compact
req.params = {
**(request_options&.additional_query_parameters || {}),
"include_remote_data": include_remote_data
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data
}.compact
unless request_options.nil? || request_options&.additional_body_parameters.nil?
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
Expand Down Expand Up @@ -167,6 +170,8 @@ def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, inclu
# @param id [String]
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param request_options [Merge::RequestOptions]
# @return [Merge::Accounting::AccountingPeriod]
# @example
Expand All @@ -176,7 +181,7 @@ def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, inclu
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.accounting_periods.retrieve(id: "id")
def retrieve(id:, include_remote_data: nil, request_options: nil)
def retrieve(id:, include_remote_data: nil, include_shell_data: nil, request_options: nil)
Async do
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
Expand All @@ -189,7 +194,8 @@ def retrieve(id:, include_remote_data: nil, request_options: nil)
}.compact
req.params = {
**(request_options&.additional_query_parameters || {}),
"include_remote_data": include_remote_data
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data
}.compact
unless request_options.nil? || request_options&.additional_body_parameters.nil?
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
Expand Down
22 changes: 16 additions & 6 deletions lib/merge_ruby_client/accounting/accounts/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def initialize(request_client:)
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
# returned.
# @param name [String] If provided, will only return Accounts with this name.
# @param page_size [Integer] Number of results to return per page.
# @param remote_fields [Merge::Accounting::Accounts::AccountsListRequestRemoteFields] Deprecated. Use show_enum_origins.
# @param remote_id [String] The API provider's ID for the given object.
Expand All @@ -61,7 +62,7 @@ def initialize(request_client:)
# )
# api.accounting.accounts.list
def list(account_type: nil, company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
Expand All @@ -84,6 +85,7 @@ def list(account_type: nil, company_id: nil, created_after: nil, created_before:
"include_shell_data": include_shell_data,
"modified_after": modified_after,
"modified_before": modified_before,
"name": name,
"page_size": page_size,
"remote_fields": remote_fields,
"remote_id": remote_id,
Expand Down Expand Up @@ -152,6 +154,8 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# should be comma separated without spaces.
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param remote_fields [Merge::Accounting::Accounts::AccountsRetrieveRequestRemoteFields] Deprecated. Use show_enum_origins.
# @param show_enum_origins [Merge::Accounting::Accounts::AccountsRetrieveRequestShowEnumOrigins] A comma separated list of enum field names for which you'd like the original
# values to be returned, instead of Merge's normalized enum values. [Learn
Expand All @@ -165,8 +169,8 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.accounts.retrieve(id: "id")
def retrieve(id:, expand: nil, include_remote_data: nil, remote_fields: nil, show_enum_origins: nil,
request_options: nil)
def retrieve(id:, expand: nil, include_remote_data: nil, include_shell_data: nil, remote_fields: nil,
show_enum_origins: nil, request_options: nil)
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
Expand All @@ -180,6 +184,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, remote_fields: nil, sho
**(request_options&.additional_query_parameters || {}),
"expand": expand,
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data,
"remote_fields": remote_fields,
"show_enum_origins": show_enum_origins
}.compact
Expand Down Expand Up @@ -254,6 +259,7 @@ def initialize(request_client:)
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
# returned.
# @param name [String] If provided, will only return Accounts with this name.
# @param page_size [Integer] Number of results to return per page.
# @param remote_fields [Merge::Accounting::Accounts::AccountsListRequestRemoteFields] Deprecated. Use show_enum_origins.
# @param remote_id [String] The API provider's ID for the given object.
Expand All @@ -270,7 +276,7 @@ def initialize(request_client:)
# )
# api.accounting.accounts.list
def list(account_type: nil, company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
Async do
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
Expand All @@ -294,6 +300,7 @@ def list(account_type: nil, company_id: nil, created_after: nil, created_before:
"include_shell_data": include_shell_data,
"modified_after": modified_after,
"modified_before": modified_before,
"name": name,
"page_size": page_size,
"remote_fields": remote_fields,
"remote_id": remote_id,
Expand Down Expand Up @@ -365,6 +372,8 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# should be comma separated without spaces.
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param remote_fields [Merge::Accounting::Accounts::AccountsRetrieveRequestRemoteFields] Deprecated. Use show_enum_origins.
# @param show_enum_origins [Merge::Accounting::Accounts::AccountsRetrieveRequestShowEnumOrigins] A comma separated list of enum field names for which you'd like the original
# values to be returned, instead of Merge's normalized enum values. [Learn
Expand All @@ -378,8 +387,8 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.accounts.retrieve(id: "id")
def retrieve(id:, expand: nil, include_remote_data: nil, remote_fields: nil, show_enum_origins: nil,
request_options: nil)
def retrieve(id:, expand: nil, include_remote_data: nil, include_shell_data: nil, remote_fields: nil,
show_enum_origins: nil, request_options: nil)
Async do
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
Expand All @@ -394,6 +403,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, remote_fields: nil, sho
**(request_options&.additional_query_parameters || {}),
"expand": expand,
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data,
"remote_fields": remote_fields,
"show_enum_origins": show_enum_origins
}.compact
Expand Down
12 changes: 10 additions & 2 deletions lib/merge_ruby_client/accounting/addresses/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def initialize(request_client:)
# @param id [String]
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param remote_fields [String] Deprecated. Use show_enum_origins.
# @param show_enum_origins [String] A comma separated list of enum field names for which you'd like the original
# values to be returned, instead of Merge's normalized enum values. [Learn
Expand All @@ -34,7 +36,8 @@ def initialize(request_client:)
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.addresses.retrieve(id: "id")
def retrieve(id:, include_remote_data: nil, remote_fields: nil, show_enum_origins: nil, request_options: nil)
def retrieve(id:, include_remote_data: nil, include_shell_data: nil, remote_fields: nil, show_enum_origins: nil,
request_options: nil)
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
Expand All @@ -47,6 +50,7 @@ def retrieve(id:, include_remote_data: nil, remote_fields: nil, show_enum_origin
req.params = {
**(request_options&.additional_query_parameters || {}),
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data,
"remote_fields": remote_fields,
"show_enum_origins": show_enum_origins
}.compact
Expand Down Expand Up @@ -74,6 +78,8 @@ def initialize(request_client:)
# @param id [String]
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param remote_fields [String] Deprecated. Use show_enum_origins.
# @param show_enum_origins [String] A comma separated list of enum field names for which you'd like the original
# values to be returned, instead of Merge's normalized enum values. [Learn
Expand All @@ -87,7 +93,8 @@ def initialize(request_client:)
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.addresses.retrieve(id: "id")
def retrieve(id:, include_remote_data: nil, remote_fields: nil, show_enum_origins: nil, request_options: nil)
def retrieve(id:, include_remote_data: nil, include_shell_data: nil, remote_fields: nil, show_enum_origins: nil,
request_options: nil)
Async do
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
Expand All @@ -101,6 +108,7 @@ def retrieve(id:, include_remote_data: nil, remote_fields: nil, show_enum_origin
req.params = {
**(request_options&.additional_query_parameters || {}),
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data,
"remote_fields": remote_fields,
"show_enum_origins": show_enum_origins
}.compact
Expand Down
14 changes: 10 additions & 4 deletions lib/merge_ruby_client/accounting/attachments/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# @param id [String]
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param request_options [Merge::RequestOptions]
# @return [Merge::Accounting::AccountingAttachment]
# @example
Expand All @@ -136,7 +138,7 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.attachments.retrieve(id: "id")
def retrieve(id:, include_remote_data: nil, request_options: nil)
def retrieve(id:, include_remote_data: nil, include_shell_data: nil, request_options: nil)
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
Expand All @@ -148,7 +150,8 @@ def retrieve(id:, include_remote_data: nil, request_options: nil)
}.compact
req.params = {
**(request_options&.additional_query_parameters || {}),
"include_remote_data": include_remote_data
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data
}.compact
unless request_options.nil? || request_options&.additional_body_parameters.nil?
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
Expand Down Expand Up @@ -311,6 +314,8 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# @param id [String]
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
# produce these models.
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
# contain some metadata but all other fields are null).
# @param request_options [Merge::RequestOptions]
# @return [Merge::Accounting::AccountingAttachment]
# @example
Expand All @@ -320,7 +325,7 @@ def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
# api_key: "YOUR_AUTH_TOKEN"
# )
# api.accounting.attachments.retrieve(id: "id")
def retrieve(id:, include_remote_data: nil, request_options: nil)
def retrieve(id:, include_remote_data: nil, include_shell_data: nil, request_options: nil)
Async do
response = @request_client.conn.get do |req|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
Expand All @@ -333,7 +338,8 @@ def retrieve(id:, include_remote_data: nil, request_options: nil)
}.compact
req.params = {
**(request_options&.additional_query_parameters || {}),
"include_remote_data": include_remote_data
"include_remote_data": include_remote_data,
"include_shell_data": include_shell_data
}.compact
unless request_options.nil? || request_options&.additional_body_parameters.nil?
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
Expand Down
Loading