@@ -27,15 +27,21 @@ def initialize(request_client:)
27
27
28
28
# Returns a list of `Account` objects.
29
29
#
30
+ # @param account_type [String] If provided, will only provide accounts with the passed in enum.
30
31
# @param company_id [String] If provided, will only return accounts for this company.
31
32
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
32
33
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
33
34
# @param cursor [String] The pagination cursor value.
34
35
# @param expand [String] Which relations should be returned in expanded form. Multiple relation names
35
36
# should be comma separated without spaces.
36
- # @param include_deleted_data [Boolean] Whether to include data that was marked as deleted by third party webhooks.
37
+ # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party
38
+ # platform. Full coverage deletion detection is a premium add-on. Native deletion
39
+ # detection is offered for free with limited coverage. [Learn
40
+ # more](https://docs.merge.dev/integrations/hris/supported-features/).
37
41
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
38
42
# produce these models.
43
+ # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
44
+ # contain some metadata but all other fields are null).
39
45
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
40
46
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
41
47
# returned.
@@ -54,8 +60,8 @@ def initialize(request_client:)
54
60
# api_key: "YOUR_AUTH_TOKEN"
55
61
# )
56
62
# api.accounting.accounts.list
57
- def list ( company_id : nil , created_after : nil , created_before : nil , cursor : nil , expand : nil ,
58
- include_deleted_data : nil , include_remote_data : nil , modified_after : nil , modified_before : nil , page_size : nil , remote_fields : nil , remote_id : nil , show_enum_origins : nil , request_options : nil )
63
+ def list ( account_type : nil , company_id : nil , created_after : nil , created_before : nil , cursor : nil , expand : nil ,
64
+ 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 )
59
65
response = @request_client . conn . get do |req |
60
66
req . options . timeout = request_options . timeout_in_seconds unless request_options &.timeout_in_seconds . nil?
61
67
req . headers [ "Authorization" ] = request_options . api_key unless request_options &.api_key . nil?
@@ -67,13 +73,15 @@ def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil,
67
73
} . compact
68
74
req . params = {
69
75
**( request_options &.additional_query_parameters || { } ) ,
76
+ "account_type" : account_type ,
70
77
"company_id" : company_id ,
71
78
"created_after" : created_after ,
72
79
"created_before" : created_before ,
73
80
"cursor" : cursor ,
74
81
"expand" : expand ,
75
82
"include_deleted_data" : include_deleted_data ,
76
83
"include_remote_data" : include_remote_data ,
84
+ "include_shell_data" : include_shell_data ,
77
85
"modified_after" : modified_after ,
78
86
"modified_before" : modified_before ,
79
87
"page_size" : page_size ,
@@ -98,9 +106,10 @@ def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil,
98
106
# * :description (String)
99
107
# * :classification (Merge::Accounting::ClassificationEnum)
100
108
# * :type (String)
109
+ # * :account_type (Merge::Accounting::AccountAccountTypeEnum)
101
110
# * :status (Merge::Accounting::AccountStatusEnum)
102
111
# * :current_balance (Float)
103
- # * :currency (Merge::Accounting::CurrencyEnum )
112
+ # * :currency (Merge::Accounting::TransactionCurrencyEnum )
104
113
# * :account_number (String)
105
114
# * :parent_account (String)
106
115
# * :company (String)
@@ -227,15 +236,21 @@ def initialize(request_client:)
227
236
228
237
# Returns a list of `Account` objects.
229
238
#
239
+ # @param account_type [String] If provided, will only provide accounts with the passed in enum.
230
240
# @param company_id [String] If provided, will only return accounts for this company.
231
241
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
232
242
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
233
243
# @param cursor [String] The pagination cursor value.
234
244
# @param expand [String] Which relations should be returned in expanded form. Multiple relation names
235
245
# should be comma separated without spaces.
236
- # @param include_deleted_data [Boolean] Whether to include data that was marked as deleted by third party webhooks.
246
+ # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party
247
+ # platform. Full coverage deletion detection is a premium add-on. Native deletion
248
+ # detection is offered for free with limited coverage. [Learn
249
+ # more](https://docs.merge.dev/integrations/hris/supported-features/).
237
250
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
238
251
# produce these models.
252
+ # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
253
+ # contain some metadata but all other fields are null).
239
254
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
240
255
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
241
256
# returned.
@@ -254,8 +269,8 @@ def initialize(request_client:)
254
269
# api_key: "YOUR_AUTH_TOKEN"
255
270
# )
256
271
# api.accounting.accounts.list
257
- def list ( company_id : nil , created_after : nil , created_before : nil , cursor : nil , expand : nil ,
258
- include_deleted_data : nil , include_remote_data : nil , modified_after : nil , modified_before : nil , page_size : nil , remote_fields : nil , remote_id : nil , show_enum_origins : nil , request_options : nil )
272
+ def list ( account_type : nil , company_id : nil , created_after : nil , created_before : nil , cursor : nil , expand : nil ,
273
+ 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 )
259
274
Async do
260
275
response = @request_client . conn . get do |req |
261
276
req . options . timeout = request_options . timeout_in_seconds unless request_options &.timeout_in_seconds . nil?
@@ -268,13 +283,15 @@ def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil,
268
283
} . compact
269
284
req . params = {
270
285
**( request_options &.additional_query_parameters || { } ) ,
286
+ "account_type" : account_type ,
271
287
"company_id" : company_id ,
272
288
"created_after" : created_after ,
273
289
"created_before" : created_before ,
274
290
"cursor" : cursor ,
275
291
"expand" : expand ,
276
292
"include_deleted_data" : include_deleted_data ,
277
293
"include_remote_data" : include_remote_data ,
294
+ "include_shell_data" : include_shell_data ,
278
295
"modified_after" : modified_after ,
279
296
"modified_before" : modified_before ,
280
297
"page_size" : page_size ,
@@ -300,9 +317,10 @@ def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil,
300
317
# * :description (String)
301
318
# * :classification (Merge::Accounting::ClassificationEnum)
302
319
# * :type (String)
320
+ # * :account_type (Merge::Accounting::AccountAccountTypeEnum)
303
321
# * :status (Merge::Accounting::AccountStatusEnum)
304
322
# * :current_balance (Float)
305
- # * :currency (Merge::Accounting::CurrencyEnum )
323
+ # * :currency (Merge::Accounting::TransactionCurrencyEnum )
306
324
# * :account_number (String)
307
325
# * :parent_account (String)
308
326
# * :company (String)
0 commit comments