merge_ruby_client 1.1.0 → 2.0.0

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.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/lib/merge_ruby_client/accounting/accounts/client.rb +16 -8
  3. data/lib/merge_ruby_client/accounting/audit_trail/client.rb +6 -4
  4. data/lib/merge_ruby_client/accounting/client.rb +7 -0
  5. data/lib/merge_ruby_client/accounting/contacts/client.rb +14 -6
  6. data/lib/merge_ruby_client/accounting/expenses/client.rb +12 -4
  7. data/lib/merge_ruby_client/accounting/invoices/client.rb +12 -4
  8. data/lib/merge_ruby_client/accounting/items/client.rb +332 -0
  9. data/lib/merge_ruby_client/accounting/journal_entries/client.rb +12 -4
  10. data/lib/merge_ruby_client/accounting/payments/client.rb +12 -4
  11. data/lib/merge_ruby_client/accounting/projects/client.rb +224 -0
  12. data/lib/merge_ruby_client/accounting/projects/types/projects_list_request_expand.rb +13 -0
  13. data/lib/merge_ruby_client/accounting/projects/types/projects_retrieve_request_expand.rb +13 -0
  14. data/lib/merge_ruby_client/accounting/purchase_orders/client.rb +12 -4
  15. data/lib/merge_ruby_client/accounting/tracking_categories/client.rb +16 -8
  16. data/lib/merge_ruby_client/accounting/types/account_details_and_actions.rb +10 -2
  17. data/lib/merge_ruby_client/accounting/types/audit_log_event.rb +2 -0
  18. data/lib/merge_ruby_client/accounting/types/credit_note_line_item.rb +29 -1
  19. data/lib/merge_ruby_client/accounting/types/credit_note_line_item_contact.rb +56 -0
  20. data/lib/merge_ruby_client/accounting/types/credit_note_line_item_project.rb +55 -0
  21. data/lib/merge_ruby_client/accounting/types/credit_note_line_item_request.rb +29 -1
  22. data/lib/merge_ruby_client/accounting/types/credit_note_line_item_request_contact.rb +56 -0
  23. data/lib/merge_ruby_client/accounting/types/credit_note_line_item_request_project.rb +55 -0
  24. data/lib/merge_ruby_client/accounting/types/event_type_enum.rb +2 -0
  25. data/lib/merge_ruby_client/accounting/types/expense_line.rb +15 -1
  26. data/lib/merge_ruby_client/accounting/types/expense_line_project.rb +55 -0
  27. data/lib/merge_ruby_client/accounting/types/expense_line_request.rb +15 -1
  28. data/lib/merge_ruby_client/accounting/types/expense_line_request_project.rb +55 -0
  29. data/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb +12 -1
  30. data/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb +12 -1
  31. data/lib/merge_ruby_client/accounting/types/general_ledger_transaction_line.rb +15 -1
  32. data/lib/merge_ruby_client/accounting/types/general_ledger_transaction_line_project.rb +55 -0
  33. data/lib/merge_ruby_client/accounting/types/invoice_line_item.rb +29 -1
  34. data/lib/merge_ruby_client/accounting/types/invoice_line_item_contact.rb +56 -0
  35. data/lib/merge_ruby_client/accounting/types/invoice_line_item_project.rb +55 -0
  36. data/lib/merge_ruby_client/accounting/types/invoice_line_item_request.rb +29 -1
  37. data/lib/merge_ruby_client/accounting/types/invoice_line_item_request_contact.rb +56 -0
  38. data/lib/merge_ruby_client/accounting/types/invoice_line_item_request_project.rb +55 -0
  39. data/lib/merge_ruby_client/accounting/types/item_request_request.rb +202 -0
  40. data/lib/merge_ruby_client/accounting/types/item_request_request_company.rb +56 -0
  41. data/lib/merge_ruby_client/accounting/types/item_request_request_purchase_account.rb +56 -0
  42. data/lib/merge_ruby_client/accounting/types/item_request_request_purchase_tax_rate.rb +56 -0
  43. data/lib/merge_ruby_client/accounting/types/item_request_request_sales_account.rb +56 -0
  44. data/lib/merge_ruby_client/accounting/types/item_request_request_sales_tax_rate.rb +56 -0
  45. data/lib/merge_ruby_client/accounting/types/item_response.rb +101 -0
  46. data/lib/merge_ruby_client/accounting/types/journal_line.rb +15 -1
  47. data/lib/merge_ruby_client/accounting/types/journal_line_project.rb +55 -0
  48. data/lib/merge_ruby_client/accounting/types/journal_line_request.rb +15 -1
  49. data/lib/merge_ruby_client/accounting/types/journal_line_request_project.rb +55 -0
  50. data/lib/merge_ruby_client/accounting/types/paginated_project_list.rb +80 -0
  51. data/lib/merge_ruby_client/accounting/types/patched_item_request_request.rb +172 -0
  52. data/lib/merge_ruby_client/accounting/types/project.rb +162 -0
  53. data/lib/merge_ruby_client/accounting/types/project_company.rb +56 -0
  54. data/lib/merge_ruby_client/accounting/types/project_contact.rb +56 -0
  55. data/lib/merge_ruby_client/accounting/types/remote_field_api_response.rb +12 -1
  56. data/lib/merge_ruby_client/accounting/types/type_2_bb_enum.rb +16 -0
  57. data/lib/merge_ruby_client/accounting/types/vendor_credit_line.rb +29 -1
  58. data/lib/merge_ruby_client/accounting/types/vendor_credit_line_contact.rb +55 -0
  59. data/lib/merge_ruby_client/accounting/types/vendor_credit_line_project.rb +55 -0
  60. data/lib/merge_ruby_client/accounting/types/vendor_credit_line_request.rb +29 -1
  61. data/lib/merge_ruby_client/accounting/types/vendor_credit_line_request_contact.rb +55 -0
  62. data/lib/merge_ruby_client/accounting/types/vendor_credit_line_request_project.rb +55 -0
  63. data/lib/merge_ruby_client/ats/audit_trail/client.rb +6 -4
  64. data/lib/merge_ruby_client/ats/types/account_details_and_actions.rb +10 -2
  65. data/lib/merge_ruby_client/ats/types/audit_log_event.rb +2 -0
  66. data/lib/merge_ruby_client/ats/types/event_type_enum.rb +1 -0
  67. data/lib/merge_ruby_client/crm/accounts/client.rb +6 -2
  68. data/lib/merge_ruby_client/crm/audit_trail/client.rb +6 -4
  69. data/lib/merge_ruby_client/crm/contacts/client.rb +6 -2
  70. data/lib/merge_ruby_client/crm/custom_objects/client.rb +10 -2
  71. data/lib/merge_ruby_client/crm/engagement_types/client.rb +6 -2
  72. data/lib/merge_ruby_client/crm/engagements/client.rb +6 -2
  73. data/lib/merge_ruby_client/crm/leads/client.rb +6 -2
  74. data/lib/merge_ruby_client/crm/notes/client.rb +6 -2
  75. data/lib/merge_ruby_client/crm/opportunities/client.rb +6 -2
  76. data/lib/merge_ruby_client/crm/stages/client.rb +6 -2
  77. data/lib/merge_ruby_client/crm/sync_status/client.rb +20 -6
  78. data/lib/merge_ruby_client/crm/tasks/client.rb +6 -2
  79. data/lib/merge_ruby_client/crm/types/audit_log_event.rb +2 -0
  80. data/lib/merge_ruby_client/crm/types/custom_object_request.rb +26 -3
  81. data/lib/merge_ruby_client/crm/types/event_type_enum.rb +2 -0
  82. data/lib/merge_ruby_client/crm/users/client.rb +6 -2
  83. data/lib/merge_ruby_client/filestorage/audit_trail/client.rb +6 -4
  84. data/lib/merge_ruby_client/filestorage/files/client.rb +48 -12
  85. data/lib/merge_ruby_client/filestorage/files/types/files_download_request_meta_list_request_order_by.rb +14 -0
  86. data/lib/merge_ruby_client/filestorage/files/types/files_list_request_order_by.rb +14 -0
  87. data/lib/merge_ruby_client/filestorage/sync_status/client.rb +20 -6
  88. data/lib/merge_ruby_client/filestorage/types/account_details_and_actions.rb +10 -2
  89. data/lib/merge_ruby_client/filestorage/types/audit_log_event.rb +2 -0
  90. data/lib/merge_ruby_client/filestorage/types/download_request_meta.rb +2 -9
  91. data/lib/merge_ruby_client/filestorage/types/event_type_enum.rb +2 -0
  92. data/lib/merge_ruby_client/filestorage/types/file.rb +13 -1
  93. data/lib/merge_ruby_client/filestorage/types/file_request.rb +13 -1
  94. data/lib/merge_ruby_client/hris/audit_trail/client.rb +6 -4
  95. data/lib/merge_ruby_client/hris/types/account_details_and_actions.rb +10 -2
  96. data/lib/merge_ruby_client/hris/types/audit_log_event.rb +2 -0
  97. data/lib/merge_ruby_client/hris/types/event_type_enum.rb +2 -0
  98. data/lib/merge_ruby_client/ticketing/audit_trail/client.rb +6 -4
  99. data/lib/merge_ruby_client/ticketing/tickets/client.rb +26 -10
  100. data/lib/merge_ruby_client/ticketing/types/account_details_and_actions.rb +10 -2
  101. data/lib/merge_ruby_client/ticketing/types/audit_log_event.rb +2 -0
  102. data/lib/merge_ruby_client/ticketing/types/collection.rb +18 -16
  103. data/lib/merge_ruby_client/ticketing/types/{access_level_enum.rb → collection_access_level_enum.rb} +3 -1
  104. data/lib/merge_ruby_client/ticketing/types/event_type_enum.rb +2 -0
  105. data/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb +20 -1
  106. data/lib/merge_ruby_client/ticketing/types/ticket.rb +20 -1
  107. data/lib/merge_ruby_client/ticketing/types/ticket_access_level_enum.rb +16 -0
  108. data/lib/merge_ruby_client/ticketing/types/ticket_request.rb +20 -1
  109. data/lib/merge_ruby_client.rb +7 -7
  110. data/lib/requests.rb +2 -2
  111. data/lib/types_export.rb +243 -208
  112. metadata +39 -3
@@ -8,6 +8,10 @@ module Merge
8
8
  class CustomObjectRequest
9
9
  # @return [Hash{String => Object}]
10
10
  attr_reader :fields
11
+ # @return [Hash{String => Object}]
12
+ attr_reader :integration_params
13
+ # @return [Hash{String => Object}]
14
+ attr_reader :linked_account_params
11
15
  # @return [OpenStruct] Additional properties unmapped to the current class definition
12
16
  attr_reader :additional_properties
13
17
  # @return [Object]
@@ -17,12 +21,22 @@ module Merge
17
21
  OMIT = Object.new
18
22
 
19
23
  # @param fields [Hash{String => Object}]
24
+ # @param integration_params [Hash{String => Object}]
25
+ # @param linked_account_params [Hash{String => Object}]
20
26
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
21
27
  # @return [Merge::Crm::CustomObjectRequest]
22
- def initialize(fields:, additional_properties: nil)
28
+ def initialize(fields:, integration_params: OMIT, linked_account_params: OMIT, additional_properties: nil)
23
29
  @fields = fields
30
+ @integration_params = integration_params if integration_params != OMIT
31
+ @linked_account_params = linked_account_params if linked_account_params != OMIT
24
32
  @additional_properties = additional_properties
25
- @_field_set = { "fields": fields }
33
+ @_field_set = {
34
+ "fields": fields,
35
+ "integration_params": integration_params,
36
+ "linked_account_params": linked_account_params
37
+ }.reject do |_k, v|
38
+ v == OMIT
39
+ end
26
40
  end
27
41
 
28
42
  # Deserialize a JSON object to an instance of CustomObjectRequest
@@ -33,7 +47,14 @@ module Merge
33
47
  struct = JSON.parse(json_object, object_class: OpenStruct)
34
48
  parsed_json = JSON.parse(json_object)
35
49
  fields = parsed_json["fields"]
36
- new(fields: fields, additional_properties: struct)
50
+ integration_params = parsed_json["integration_params"]
51
+ linked_account_params = parsed_json["linked_account_params"]
52
+ new(
53
+ fields: fields,
54
+ integration_params: integration_params,
55
+ linked_account_params: linked_account_params,
56
+ additional_properties: struct
57
+ )
37
58
  end
38
59
 
39
60
  # Serialize an instance of CustomObjectRequest to a JSON object
@@ -51,6 +72,8 @@ module Merge
51
72
  # @return [Void]
52
73
  def self.validate_raw(obj:)
53
74
  obj.fields.is_a?(Hash) != false || raise("Passed value for field obj.fields is not the expected type, validation failed.")
75
+ obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.")
76
+ obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.")
54
77
  end
55
78
  end
56
79
  end
@@ -7,6 +7,7 @@ module Merge
7
7
  # * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY
8
8
  # * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY
9
9
  # * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY
10
+ # * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE
10
11
  # * `INVITED_USER` - INVITED_USER
11
12
  # * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED
12
13
  # * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED
@@ -61,6 +62,7 @@ module Merge
61
62
  CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY"
62
63
  DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY"
63
64
  REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY"
65
+ REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE"
64
66
  INVITED_USER = "INVITED_USER"
65
67
  TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED"
66
68
  TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED"
@@ -178,6 +178,7 @@ module Merge
178
178
  # contain some metadata but all other fields are null).
179
179
  # @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
180
180
  # is_common_model_field value
181
+ # @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
181
182
  # @param page_size [Integer] Number of results to return per page.
182
183
  # @param request_options [Merge::RequestOptions]
183
184
  # @return [Merge::Crm::PaginatedRemoteFieldClassList]
@@ -189,7 +190,7 @@ module Merge
189
190
  # )
190
191
  # api.crm.users.remote_field_classes_list
191
192
  def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
192
- include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
193
+ include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
193
194
  response = @request_client.conn.get do |req|
194
195
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
195
196
  req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
@@ -207,6 +208,7 @@ module Merge
207
208
  "include_remote_fields": include_remote_fields,
208
209
  "include_shell_data": include_shell_data,
209
210
  "is_common_model_field": is_common_model_field,
211
+ "is_custom": is_custom,
210
212
  "page_size": page_size
211
213
  }.compact
212
214
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
@@ -392,6 +394,7 @@ module Merge
392
394
  # contain some metadata but all other fields are null).
393
395
  # @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
394
396
  # is_common_model_field value
397
+ # @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
395
398
  # @param page_size [Integer] Number of results to return per page.
396
399
  # @param request_options [Merge::RequestOptions]
397
400
  # @return [Merge::Crm::PaginatedRemoteFieldClassList]
@@ -403,7 +406,7 @@ module Merge
403
406
  # )
404
407
  # api.crm.users.remote_field_classes_list
405
408
  def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
406
- include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
409
+ include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
407
410
  Async do
408
411
  response = @request_client.conn.get do |req|
409
412
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -422,6 +425,7 @@ module Merge
422
425
  "include_remote_fields": include_remote_fields,
423
426
  "include_shell_data": include_shell_data,
424
427
  "is_common_model_field": is_common_model_field,
428
+ "is_custom": is_custom,
425
429
  "page_size": page_size
426
430
  }.compact
427
431
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
@@ -23,8 +23,9 @@ module Merge
23
23
  # @param event_type [String] If included, will only include events with the given event type. Possible values
24
24
  # include: `CREATED_REMOTE_PRODUCTION_API_KEY`,
25
25
  # `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`,
26
- # `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`,
27
- # `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`,
26
+ # `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`,
27
+ # `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`,
28
+ # `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`,
28
29
  # `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`,
29
30
  # `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`,
30
31
  # `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`,
@@ -106,8 +107,9 @@ module Merge
106
107
  # @param event_type [String] If included, will only include events with the given event type. Possible values
107
108
  # include: `CREATED_REMOTE_PRODUCTION_API_KEY`,
108
109
  # `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`,
109
- # `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`, `INVITED_USER`,
110
- # `TWO_FACTOR_AUTH_ENABLED`, `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`,
110
+ # `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`,
111
+ # `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`,
112
+ # `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`,
111
113
  # `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`,
112
114
  # `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`,
113
115
  # `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`,
@@ -3,12 +3,14 @@
3
3
  require_relative "../../../requests"
4
4
  require "date"
5
5
  require_relative "types/files_list_request_expand"
6
+ require_relative "types/files_list_request_order_by"
6
7
  require_relative "../types/paginated_file_list"
7
8
  require_relative "../types/file_request"
8
9
  require_relative "../types/file_storage_file_response"
9
10
  require_relative "types/files_retrieve_request_expand"
10
11
  require_relative "../types/file"
11
12
  require_relative "../types/download_request_meta"
13
+ require_relative "types/files_download_request_meta_list_request_order_by"
12
14
  require_relative "../types/paginated_download_request_meta_list"
13
15
  require_relative "../types/meta_response"
14
16
  require "async"
@@ -51,6 +53,8 @@ module Merge
51
53
  # returned.
52
54
  # @param name [String] If provided, will only return files with this name. This performs an exact
53
55
  # match.
56
+ # @param order_by [Merge::Filestorage::Files::FilesListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
57
+ # created_at, -created_at, modified_at, -modified_at.
54
58
  # @param page_size [Integer] Number of results to return per page.
55
59
  # @param remote_id [String] The API provider's ID for the given object.
56
60
  # @param request_options [Merge::RequestOptions]
@@ -63,7 +67,7 @@ module Merge
63
67
  # )
64
68
  # api.filestorage.files.list
65
69
  def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, expand: nil, folder_id: nil,
66
- include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil)
70
+ include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, order_by: nil, page_size: nil, remote_id: nil, request_options: nil)
67
71
  response = @request_client.conn.get do |req|
68
72
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
69
73
  req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
@@ -88,6 +92,7 @@ module Merge
88
92
  "modified_after": modified_after,
89
93
  "modified_before": modified_before,
90
94
  "name": name,
95
+ "order_by": order_by,
91
96
  "page_size": page_size,
92
97
  "remote_id": remote_id
93
98
  }.compact
@@ -111,6 +116,7 @@ module Merge
111
116
  # * :mime_type (String)
112
117
  # * :description (String)
113
118
  # * :folder (Hash)
119
+ # * :checksum (Hash{String => Object})
114
120
  # * :permissions (Hash)
115
121
  # * :drive (Hash)
116
122
  # * :integration_params (Hash{String => Object})
@@ -264,15 +270,23 @@ module Merge
264
270
  # Returns metadata to construct authenticated file download requests, allowing you
265
271
  # to download files directly from the third-party.
266
272
  #
273
+ # @param created_after [String] If provided, will only return objects created after this datetime.
274
+ # @param created_before [String] If provided, will only return objects created before this datetime.
267
275
  # @param cursor [String] The pagination cursor value.
268
276
  # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party
269
277
  # platform. Full coverage deletion detection is a premium add-on. Native deletion
270
278
  # detection is offered for free with limited coverage. [Learn
271
279
  # more](https://docs.merge.dev/integrations/hris/supported-features/).
272
- # @param mime_type [String] If provided, specifies the export format of the files to be downloaded. For
273
- # information on supported export formats, please refer to our <a
280
+ # @param mime_types [String] A comma-separated list of preferred MIME types in order of priority. If
281
+ # supported by the third-party provider, the file(s) will be returned in the first
282
+ # supported MIME type from the list. The default MIME type is PDF. To see
283
+ # supported MIME types by file type, refer to our <a
274
284
  # tps://help.merge.dev/en/articles/8615316-file-export-and-download-specification'
275
285
  # target='_blank'>export format help center article</a>.
286
+ # @param modified_after [String] If provided, will only return objects modified after this datetime.
287
+ # @param modified_before [String] If provided, will only return objects modified before this datetime.
288
+ # @param order_by [Merge::Filestorage::Files::FilesDownloadRequestMetaListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
289
+ # created_at, -created_at, modified_at, -modified_at.
276
290
  # @param page_size [Integer] Number of results to return per page.
277
291
  # @param request_options [Merge::RequestOptions]
278
292
  # @return [Merge::Filestorage::PaginatedDownloadRequestMetaList]
@@ -283,8 +297,8 @@ module Merge
283
297
  # api_key: "YOUR_AUTH_TOKEN"
284
298
  # )
285
299
  # api.filestorage.files.download_request_meta_list
286
- def download_request_meta_list(cursor: nil, include_deleted_data: nil, mime_type: nil, page_size: nil,
287
- request_options: nil)
300
+ def download_request_meta_list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
301
+ mime_types: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, request_options: nil)
288
302
  response = @request_client.conn.get do |req|
289
303
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
290
304
  req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
@@ -296,9 +310,14 @@ module Merge
296
310
  }.compact
297
311
  req.params = {
298
312
  **(request_options&.additional_query_parameters || {}),
313
+ "created_after": created_after,
314
+ "created_before": created_before,
299
315
  "cursor": cursor,
300
316
  "include_deleted_data": include_deleted_data,
301
- "mime_type": mime_type,
317
+ "mime_types": mime_types,
318
+ "modified_after": modified_after,
319
+ "modified_before": modified_before,
320
+ "order_by": order_by,
302
321
  "page_size": page_size
303
322
  }.compact
304
323
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
@@ -378,6 +397,8 @@ module Merge
378
397
  # returned.
379
398
  # @param name [String] If provided, will only return files with this name. This performs an exact
380
399
  # match.
400
+ # @param order_by [Merge::Filestorage::Files::FilesListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
401
+ # created_at, -created_at, modified_at, -modified_at.
381
402
  # @param page_size [Integer] Number of results to return per page.
382
403
  # @param remote_id [String] The API provider's ID for the given object.
383
404
  # @param request_options [Merge::RequestOptions]
@@ -390,7 +411,7 @@ module Merge
390
411
  # )
391
412
  # api.filestorage.files.list
392
413
  def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, expand: nil, folder_id: nil,
393
- include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil)
414
+ include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, order_by: nil, page_size: nil, remote_id: nil, request_options: nil)
394
415
  Async do
395
416
  response = @request_client.conn.get do |req|
396
417
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -416,6 +437,7 @@ module Merge
416
437
  "modified_after": modified_after,
417
438
  "modified_before": modified_before,
418
439
  "name": name,
440
+ "order_by": order_by,
419
441
  "page_size": page_size,
420
442
  "remote_id": remote_id
421
443
  }.compact
@@ -440,6 +462,7 @@ module Merge
440
462
  # * :mime_type (String)
441
463
  # * :description (String)
442
464
  # * :folder (Hash)
465
+ # * :checksum (Hash{String => Object})
443
466
  # * :permissions (Hash)
444
467
  # * :drive (Hash)
445
468
  # * :integration_params (Hash{String => Object})
@@ -601,15 +624,23 @@ module Merge
601
624
  # Returns metadata to construct authenticated file download requests, allowing you
602
625
  # to download files directly from the third-party.
603
626
  #
627
+ # @param created_after [String] If provided, will only return objects created after this datetime.
628
+ # @param created_before [String] If provided, will only return objects created before this datetime.
604
629
  # @param cursor [String] The pagination cursor value.
605
630
  # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party
606
631
  # platform. Full coverage deletion detection is a premium add-on. Native deletion
607
632
  # detection is offered for free with limited coverage. [Learn
608
633
  # more](https://docs.merge.dev/integrations/hris/supported-features/).
609
- # @param mime_type [String] If provided, specifies the export format of the files to be downloaded. For
610
- # information on supported export formats, please refer to our <a
634
+ # @param mime_types [String] A comma-separated list of preferred MIME types in order of priority. If
635
+ # supported by the third-party provider, the file(s) will be returned in the first
636
+ # supported MIME type from the list. The default MIME type is PDF. To see
637
+ # supported MIME types by file type, refer to our <a
611
638
  # tps://help.merge.dev/en/articles/8615316-file-export-and-download-specification'
612
639
  # target='_blank'>export format help center article</a>.
640
+ # @param modified_after [String] If provided, will only return objects modified after this datetime.
641
+ # @param modified_before [String] If provided, will only return objects modified before this datetime.
642
+ # @param order_by [Merge::Filestorage::Files::FilesDownloadRequestMetaListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include:
643
+ # created_at, -created_at, modified_at, -modified_at.
613
644
  # @param page_size [Integer] Number of results to return per page.
614
645
  # @param request_options [Merge::RequestOptions]
615
646
  # @return [Merge::Filestorage::PaginatedDownloadRequestMetaList]
@@ -620,8 +651,8 @@ module Merge
620
651
  # api_key: "YOUR_AUTH_TOKEN"
621
652
  # )
622
653
  # api.filestorage.files.download_request_meta_list
623
- def download_request_meta_list(cursor: nil, include_deleted_data: nil, mime_type: nil, page_size: nil,
624
- request_options: nil)
654
+ def download_request_meta_list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
655
+ mime_types: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, request_options: nil)
625
656
  Async do
626
657
  response = @request_client.conn.get do |req|
627
658
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -634,9 +665,14 @@ module Merge
634
665
  }.compact
635
666
  req.params = {
636
667
  **(request_options&.additional_query_parameters || {}),
668
+ "created_after": created_after,
669
+ "created_before": created_before,
637
670
  "cursor": cursor,
638
671
  "include_deleted_data": include_deleted_data,
639
- "mime_type": mime_type,
672
+ "mime_types": mime_types,
673
+ "modified_after": modified_after,
674
+ "modified_before": modified_before,
675
+ "order_by": order_by,
640
676
  "page_size": page_size
641
677
  }.compact
642
678
  unless request_options.nil? || request_options&.additional_body_parameters.nil?
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Merge
4
+ module Filestorage
5
+ class Files
6
+ class FilesDownloadRequestMetaListRequestOrderBy
7
+ CREATED_AT_DESCENDING = "-created_at"
8
+ MODIFIED_AT_DESCENDING = "-modified_at"
9
+ CREATED_AT_ASCENDING = "created_at"
10
+ MODIFIED_AT_ASCENDING = "modified_at"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Merge
4
+ module Filestorage
5
+ class Files
6
+ class FilesListRequestOrderBy
7
+ CREATED_AT_DESCENDING = "-created_at"
8
+ MODIFIED_AT_DESCENDING = "-modified_at"
9
+ CREATED_AT_ASCENDING = "created_at"
10
+ MODIFIED_AT_ASCENDING = "modified_at"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -16,9 +16,16 @@ module Merge
16
16
  @request_client = request_client
17
17
  end
18
18
 
19
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`,
20
- # `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our
21
- # [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
19
+ # Get sync status for the current sync and the most recently finished sync.
20
+ # `last_sync_start` represents the most recent time any sync began.
21
+ # `last_sync_finished` represents the most recent time any sync completed. These
22
+ # timestamps may correspond to different sync instances which may result in a sync
23
+ # start time being later than a separate sync completed time. To ensure you are
24
+ # retrieving the latest available data reference the `last_sync_finished`
25
+ # timestamp where `last_sync_result` is `DONE`. Possible values for `status` and
26
+ # `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`,
27
+ # `PAUSED`, `SYNCING`. Learn more about sync status in our [Help
28
+ # Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
22
29
  #
23
30
  # @param cursor [String] The pagination cursor value.
24
31
  # @param page_size [Integer] Number of results to return per page.
@@ -65,9 +72,16 @@ module Merge
65
72
  @request_client = request_client
66
73
  end
67
74
 
68
- # Get syncing status. Possible values: `DISABLED`, `DONE`, `FAILED`,
69
- # `PARTIALLY_SYNCED`, `PAUSED`, `SYNCING`. Learn more about sync status in our
70
- # [Help Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
75
+ # Get sync status for the current sync and the most recently finished sync.
76
+ # `last_sync_start` represents the most recent time any sync began.
77
+ # `last_sync_finished` represents the most recent time any sync completed. These
78
+ # timestamps may correspond to different sync instances which may result in a sync
79
+ # start time being later than a separate sync completed time. To ensure you are
80
+ # retrieving the latest available data reference the `last_sync_finished`
81
+ # timestamp where `last_sync_result` is `DONE`. Possible values for `status` and
82
+ # `last_sync_result` are `DISABLED`, `DONE`, `FAILED`, `PARTIALLY_SYNCED`,
83
+ # `PAUSED`, `SYNCING`. Learn more about sync status in our [Help
84
+ # Center](https://help.merge.dev/en/articles/8184193-merge-sync-statuses).
71
85
  #
72
86
  # @param cursor [String] The pagination cursor value.
73
87
  # @param page_size [Integer] Number of results to return per page.
@@ -45,6 +45,8 @@ module Merge
45
45
  attr_reader :account_type
46
46
  # @return [DateTime]
47
47
  attr_reader :completed_at
48
+ # @return [Hash{String => Object}]
49
+ attr_reader :integration_specific_fields
48
50
  # @return [OpenStruct] Additional properties unmapped to the current class definition
49
51
  attr_reader :additional_properties
50
52
  # @return [Object]
@@ -69,10 +71,11 @@ module Merge
69
71
  # @param integration [Merge::Filestorage::AccountDetailsAndActionsIntegration]
70
72
  # @param account_type [String]
71
73
  # @param completed_at [DateTime]
74
+ # @param integration_specific_fields [Hash{String => Object}]
72
75
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
73
76
  # @return [Merge::Filestorage::AccountDetailsAndActions]
74
77
  def initialize(id:, status:, end_user_organization_name:, end_user_email_address:, webhook_listener_url:,
75
- account_type:, completed_at:, category: OMIT, status_detail: OMIT, end_user_origin_id: OMIT, subdomain: OMIT, is_duplicate: OMIT, integration: OMIT, additional_properties: nil)
78
+ account_type:, completed_at:, category: OMIT, status_detail: OMIT, end_user_origin_id: OMIT, subdomain: OMIT, is_duplicate: OMIT, integration: OMIT, integration_specific_fields: OMIT, additional_properties: nil)
76
79
  @id = id
77
80
  @category = category if category != OMIT
78
81
  @status = status
@@ -86,6 +89,7 @@ module Merge
86
89
  @integration = integration if integration != OMIT
87
90
  @account_type = account_type
88
91
  @completed_at = completed_at
92
+ @integration_specific_fields = integration_specific_fields if integration_specific_fields != OMIT
89
93
  @additional_properties = additional_properties
90
94
  @_field_set = {
91
95
  "id": id,
@@ -100,7 +104,8 @@ module Merge
100
104
  "is_duplicate": is_duplicate,
101
105
  "integration": integration,
102
106
  "account_type": account_type,
103
- "completed_at": completed_at
107
+ "completed_at": completed_at,
108
+ "integration_specific_fields": integration_specific_fields
104
109
  }.reject do |_k, v|
105
110
  v == OMIT
106
111
  end
@@ -131,6 +136,7 @@ module Merge
131
136
  end
132
137
  account_type = parsed_json["account_type"]
133
138
  completed_at = (DateTime.parse(parsed_json["completed_at"]) unless parsed_json["completed_at"].nil?)
139
+ integration_specific_fields = parsed_json["integration_specific_fields"]
134
140
  new(
135
141
  id: id,
136
142
  category: category,
@@ -145,6 +151,7 @@ module Merge
145
151
  integration: integration,
146
152
  account_type: account_type,
147
153
  completed_at: completed_at,
154
+ integration_specific_fields: integration_specific_fields,
148
155
  additional_properties: struct
149
156
  )
150
157
  end
@@ -176,6 +183,7 @@ module Merge
176
183
  obj.integration.nil? || Merge::Filestorage::AccountDetailsAndActionsIntegration.validate_raw(obj: obj.integration)
177
184
  obj.account_type.is_a?(String) != false || raise("Passed value for field obj.account_type is not the expected type, validation failed.")
178
185
  obj.completed_at.is_a?(DateTime) != false || raise("Passed value for field obj.completed_at is not the expected type, validation failed.")
186
+ obj.integration_specific_fields&.is_a?(Hash) != false || raise("Passed value for field obj.integration_specific_fields is not the expected type, validation failed.")
179
187
  end
180
188
  end
181
189
  end
@@ -32,6 +32,7 @@ module Merge
32
32
  # * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY
33
33
  # * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY
34
34
  # * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY
35
+ # * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE
35
36
  # * `INVITED_USER` - INVITED_USER
36
37
  # * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED
37
38
  # * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED
@@ -111,6 +112,7 @@ module Merge
111
112
  # * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY
112
113
  # * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY
113
114
  # * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY
115
+ # * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE
114
116
  # * `INVITED_USER` - INVITED_USER
115
117
  # * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED
116
118
  # * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED
@@ -14,8 +14,6 @@ module Merge
14
14
  attr_reader :method
15
15
  # @return [Hash{String => Object}]
16
16
  attr_reader :headers
17
- # @return [Hash{String => Object}]
18
- attr_reader :body
19
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
20
18
  attr_reader :additional_properties
21
19
  # @return [Object]
@@ -28,17 +26,15 @@ module Merge
28
26
  # @param url [String]
29
27
  # @param method [String]
30
28
  # @param headers [Hash{String => Object}]
31
- # @param body [Hash{String => Object}]
32
29
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
30
  # @return [Merge::Filestorage::DownloadRequestMeta]
34
- def initialize(id:, url:, method:, headers:, body:, additional_properties: nil)
31
+ def initialize(id:, url:, method:, headers:, additional_properties: nil)
35
32
  @id = id
36
33
  @url = url
37
34
  @method = method
38
35
  @headers = headers
39
- @body = body
40
36
  @additional_properties = additional_properties
41
- @_field_set = { "id": id, "url": url, "method": method, "headers": headers, "body": body }
37
+ @_field_set = { "id": id, "url": url, "method": method, "headers": headers }
42
38
  end
43
39
 
44
40
  # Deserialize a JSON object to an instance of DownloadRequestMeta
@@ -52,13 +48,11 @@ module Merge
52
48
  url = parsed_json["url"]
53
49
  method = parsed_json["method"]
54
50
  headers = parsed_json["headers"]
55
- body = parsed_json["body"]
56
51
  new(
57
52
  id: id,
58
53
  url: url,
59
54
  method: method,
60
55
  headers: headers,
61
- body: body,
62
56
  additional_properties: struct
63
57
  )
64
58
  end
@@ -81,7 +75,6 @@ module Merge
81
75
  obj.url.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
82
76
  obj.method.is_a?(String) != false || raise("Passed value for field obj.method is not the expected type, validation failed.")
83
77
  obj.headers.is_a?(Hash) != false || raise("Passed value for field obj.headers is not the expected type, validation failed.")
84
- obj.body.is_a?(Hash) != false || raise("Passed value for field obj.body is not the expected type, validation failed.")
85
78
  end
86
79
  end
87
80
  end
@@ -7,6 +7,7 @@ module Merge
7
7
  # * `CREATED_TEST_API_KEY` - CREATED_TEST_API_KEY
8
8
  # * `DELETED_TEST_API_KEY` - DELETED_TEST_API_KEY
9
9
  # * `REGENERATED_PRODUCTION_API_KEY` - REGENERATED_PRODUCTION_API_KEY
10
+ # * `REGENERATED_WEBHOOK_SIGNATURE` - REGENERATED_WEBHOOK_SIGNATURE
10
11
  # * `INVITED_USER` - INVITED_USER
11
12
  # * `TWO_FACTOR_AUTH_ENABLED` - TWO_FACTOR_AUTH_ENABLED
12
13
  # * `TWO_FACTOR_AUTH_DISABLED` - TWO_FACTOR_AUTH_DISABLED
@@ -61,6 +62,7 @@ module Merge
61
62
  CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY"
62
63
  DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY"
63
64
  REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY"
65
+ REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE"
64
66
  INVITED_USER = "INVITED_USER"
65
67
  TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED"
66
68
  TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED"
@@ -39,6 +39,10 @@ module Merge
39
39
  attr_reader :description
40
40
  # @return [Merge::Filestorage::FileFolder] The folder that the file belongs to.
41
41
  attr_reader :folder
42
+ # @return [Hash{String => Object}] This field stores file checksum data. 'type' indicates the algorithm (e.g.
43
+ # crc_32, sha1, sha256, quickXor, or md5), and 'content_hash' is the unique hash
44
+ # used to verify file integrity and detect alterations.
45
+ attr_reader :checksum
42
46
  # @return [Merge::Filestorage::FilePermissions] The Permission object is used to represent a user's or group's access to a File
43
47
  # or Folder. Permissions are unexpanded by default. Use the query param
44
48
  # `expand=permissions` to see more details under `GET /files`.
@@ -77,6 +81,9 @@ module Merge
77
81
  # @param mime_type [String] The file's mime type.
78
82
  # @param description [String] The file's description.
79
83
  # @param folder [Merge::Filestorage::FileFolder] The folder that the file belongs to.
84
+ # @param checksum [Hash{String => Object}] This field stores file checksum data. 'type' indicates the algorithm (e.g.
85
+ # crc_32, sha1, sha256, quickXor, or md5), and 'content_hash' is the unique hash
86
+ # used to verify file integrity and detect alterations.
80
87
  # @param permissions [Merge::Filestorage::FilePermissions] The Permission object is used to represent a user's or group's access to a File
81
88
  # or Folder. Permissions are unexpanded by default. Use the query param
82
89
  # `expand=permissions` to see more details under `GET /files`.
@@ -92,7 +99,7 @@ module Merge
92
99
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
93
100
  # @return [Merge::Filestorage::File]
94
101
  def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, name: OMIT, file_url: OMIT,
95
- file_thumbnail_url: OMIT, size: OMIT, mime_type: OMIT, description: OMIT, folder: OMIT, permissions: OMIT, drive: OMIT, remote_created_at: OMIT, remote_updated_at: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil)
102
+ file_thumbnail_url: OMIT, size: OMIT, mime_type: OMIT, description: OMIT, folder: OMIT, checksum: OMIT, permissions: OMIT, drive: OMIT, remote_created_at: OMIT, remote_updated_at: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil)
96
103
  @id = id if id != OMIT
97
104
  @remote_id = remote_id if remote_id != OMIT
98
105
  @created_at = created_at if created_at != OMIT
@@ -104,6 +111,7 @@ module Merge
104
111
  @mime_type = mime_type if mime_type != OMIT
105
112
  @description = description if description != OMIT
106
113
  @folder = folder if folder != OMIT
114
+ @checksum = checksum if checksum != OMIT
107
115
  @permissions = permissions if permissions != OMIT
108
116
  @drive = drive if drive != OMIT
109
117
  @remote_created_at = remote_created_at if remote_created_at != OMIT
@@ -124,6 +132,7 @@ module Merge
124
132
  "mime_type": mime_type,
125
133
  "description": description,
126
134
  "folder": folder,
135
+ "checksum": checksum,
127
136
  "permissions": permissions,
128
137
  "drive": drive,
129
138
  "remote_created_at": remote_created_at,
@@ -159,6 +168,7 @@ module Merge
159
168
  folder = parsed_json["folder"].to_json
160
169
  folder = Merge::Filestorage::FileFolder.from_json(json_object: folder)
161
170
  end
171
+ checksum = parsed_json["checksum"]
162
172
  if parsed_json["permissions"].nil?
163
173
  permissions = nil
164
174
  else
@@ -195,6 +205,7 @@ module Merge
195
205
  mime_type: mime_type,
196
206
  description: description,
197
207
  folder: folder,
208
+ checksum: checksum,
198
209
  permissions: permissions,
199
210
  drive: drive,
200
211
  remote_created_at: remote_created_at,
@@ -231,6 +242,7 @@ module Merge
231
242
  obj.mime_type&.is_a?(String) != false || raise("Passed value for field obj.mime_type is not the expected type, validation failed.")
232
243
  obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
233
244
  obj.folder.nil? || Merge::Filestorage::FileFolder.validate_raw(obj: obj.folder)
245
+ obj.checksum&.is_a?(Hash) != false || raise("Passed value for field obj.checksum is not the expected type, validation failed.")
234
246
  obj.permissions.nil? || Merge::Filestorage::FilePermissions.validate_raw(obj: obj.permissions)
235
247
  obj.drive.nil? || Merge::Filestorage::FileDrive.validate_raw(obj: obj.drive)
236
248
  obj.remote_created_at&.is_a?(DateTime) != false || raise("Passed value for field obj.remote_created_at is not the expected type, validation failed.")