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.
- checksums.yaml +4 -4
- data/lib/merge_ruby_client/accounting/accounts/client.rb +16 -8
- data/lib/merge_ruby_client/accounting/audit_trail/client.rb +6 -4
- data/lib/merge_ruby_client/accounting/client.rb +7 -0
- data/lib/merge_ruby_client/accounting/contacts/client.rb +14 -6
- data/lib/merge_ruby_client/accounting/expenses/client.rb +12 -4
- data/lib/merge_ruby_client/accounting/invoices/client.rb +12 -4
- data/lib/merge_ruby_client/accounting/items/client.rb +332 -0
- data/lib/merge_ruby_client/accounting/journal_entries/client.rb +12 -4
- data/lib/merge_ruby_client/accounting/payments/client.rb +12 -4
- data/lib/merge_ruby_client/accounting/projects/client.rb +224 -0
- data/lib/merge_ruby_client/accounting/projects/types/projects_list_request_expand.rb +13 -0
- data/lib/merge_ruby_client/accounting/projects/types/projects_retrieve_request_expand.rb +13 -0
- data/lib/merge_ruby_client/accounting/purchase_orders/client.rb +12 -4
- data/lib/merge_ruby_client/accounting/tracking_categories/client.rb +16 -8
- data/lib/merge_ruby_client/accounting/types/account_details_and_actions.rb +10 -2
- data/lib/merge_ruby_client/accounting/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item.rb +29 -1
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item_contact.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item_request.rb +29 -1
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item_request_contact.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item_request_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/accounting/types/expense_line.rb +15 -1
- data/lib/merge_ruby_client/accounting/types/expense_line_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_line_request.rb +15 -1
- data/lib/merge_ruby_client/accounting/types/expense_line_request_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb +12 -1
- data/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb +12 -1
- data/lib/merge_ruby_client/accounting/types/general_ledger_transaction_line.rb +15 -1
- data/lib/merge_ruby_client/accounting/types/general_ledger_transaction_line_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/invoice_line_item.rb +29 -1
- data/lib/merge_ruby_client/accounting/types/invoice_line_item_contact.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/invoice_line_item_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/invoice_line_item_request.rb +29 -1
- data/lib/merge_ruby_client/accounting/types/invoice_line_item_request_contact.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/invoice_line_item_request_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/item_request_request.rb +202 -0
- data/lib/merge_ruby_client/accounting/types/item_request_request_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/item_request_request_purchase_account.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/item_request_request_purchase_tax_rate.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/item_request_request_sales_account.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/item_request_request_sales_tax_rate.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/item_response.rb +101 -0
- data/lib/merge_ruby_client/accounting/types/journal_line.rb +15 -1
- data/lib/merge_ruby_client/accounting/types/journal_line_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/journal_line_request.rb +15 -1
- data/lib/merge_ruby_client/accounting/types/journal_line_request_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/paginated_project_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/patched_item_request_request.rb +172 -0
- data/lib/merge_ruby_client/accounting/types/project.rb +162 -0
- data/lib/merge_ruby_client/accounting/types/project_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/project_contact.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/remote_field_api_response.rb +12 -1
- data/lib/merge_ruby_client/accounting/types/type_2_bb_enum.rb +16 -0
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line.rb +29 -1
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line_contact.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line_request.rb +29 -1
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line_request_contact.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line_request_project.rb +55 -0
- data/lib/merge_ruby_client/ats/audit_trail/client.rb +6 -4
- data/lib/merge_ruby_client/ats/types/account_details_and_actions.rb +10 -2
- data/lib/merge_ruby_client/ats/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/ats/types/event_type_enum.rb +1 -0
- data/lib/merge_ruby_client/crm/accounts/client.rb +6 -2
- data/lib/merge_ruby_client/crm/audit_trail/client.rb +6 -4
- data/lib/merge_ruby_client/crm/contacts/client.rb +6 -2
- data/lib/merge_ruby_client/crm/custom_objects/client.rb +10 -2
- data/lib/merge_ruby_client/crm/engagement_types/client.rb +6 -2
- data/lib/merge_ruby_client/crm/engagements/client.rb +6 -2
- data/lib/merge_ruby_client/crm/leads/client.rb +6 -2
- data/lib/merge_ruby_client/crm/notes/client.rb +6 -2
- data/lib/merge_ruby_client/crm/opportunities/client.rb +6 -2
- data/lib/merge_ruby_client/crm/stages/client.rb +6 -2
- data/lib/merge_ruby_client/crm/sync_status/client.rb +20 -6
- data/lib/merge_ruby_client/crm/tasks/client.rb +6 -2
- data/lib/merge_ruby_client/crm/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/crm/types/custom_object_request.rb +26 -3
- data/lib/merge_ruby_client/crm/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/crm/users/client.rb +6 -2
- data/lib/merge_ruby_client/filestorage/audit_trail/client.rb +6 -4
- data/lib/merge_ruby_client/filestorage/files/client.rb +48 -12
- data/lib/merge_ruby_client/filestorage/files/types/files_download_request_meta_list_request_order_by.rb +14 -0
- data/lib/merge_ruby_client/filestorage/files/types/files_list_request_order_by.rb +14 -0
- data/lib/merge_ruby_client/filestorage/sync_status/client.rb +20 -6
- data/lib/merge_ruby_client/filestorage/types/account_details_and_actions.rb +10 -2
- data/lib/merge_ruby_client/filestorage/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/filestorage/types/download_request_meta.rb +2 -9
- data/lib/merge_ruby_client/filestorage/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/filestorage/types/file.rb +13 -1
- data/lib/merge_ruby_client/filestorage/types/file_request.rb +13 -1
- data/lib/merge_ruby_client/hris/audit_trail/client.rb +6 -4
- data/lib/merge_ruby_client/hris/types/account_details_and_actions.rb +10 -2
- data/lib/merge_ruby_client/hris/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/hris/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/ticketing/audit_trail/client.rb +6 -4
- data/lib/merge_ruby_client/ticketing/tickets/client.rb +26 -10
- data/lib/merge_ruby_client/ticketing/types/account_details_and_actions.rb +10 -2
- data/lib/merge_ruby_client/ticketing/types/audit_log_event.rb +2 -0
- data/lib/merge_ruby_client/ticketing/types/collection.rb +18 -16
- data/lib/merge_ruby_client/ticketing/types/{access_level_enum.rb → collection_access_level_enum.rb} +3 -1
- data/lib/merge_ruby_client/ticketing/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb +20 -1
- data/lib/merge_ruby_client/ticketing/types/ticket.rb +20 -1
- data/lib/merge_ruby_client/ticketing/types/ticket_access_level_enum.rb +16 -0
- data/lib/merge_ruby_client/ticketing/types/ticket_request.rb +20 -1
- data/lib/merge_ruby_client.rb +7 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +243 -208
- metadata +39 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75a4be96eee8dcd990007b83d0503593dbb2f7cf876606977112e256cb30b442
|
4
|
+
data.tar.gz: 37a5aba1adab9a658c8f32c10df4e31488fa09fa42b57896c1ed67f522250913
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a02052db37d403447fd01b9790afae5c88a261350a97d972c78b424432478f0414db3d43a891c302354683632a3115ba15acafc4ecb4286f44ab79602027759e
|
7
|
+
data.tar.gz: e5c02d7dc384975af0182cfd7b38257916872d1cda5dd2e7ff98eb24d5ce407c6189424e0ad757d256ba44dea3a751e0c6938cc619cb0c0b6af7cf4acb55f7ce
|
@@ -27,7 +27,8 @@ module Merge
|
|
27
27
|
|
28
28
|
# Returns a list of `Account` objects.
|
29
29
|
#
|
30
|
-
# @param account_type [String] If provided, will only
|
30
|
+
# @param account_type [String] If provided, will only return accounts with the passed in enum.
|
31
|
+
# @param classification [String] If provided, will only return accounts with this classification.
|
31
32
|
# @param company_id [String] If provided, will only return accounts for this company.
|
32
33
|
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
|
33
34
|
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
|
@@ -52,6 +53,7 @@ module Merge
|
|
52
53
|
# @param show_enum_origins [Merge::Accounting::Accounts::AccountsListRequestShowEnumOrigins] A comma separated list of enum field names for which you'd like the original
|
53
54
|
# values to be returned, instead of Merge's normalized enum values. [Learn
|
54
55
|
# e](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
|
56
|
+
# @param status [String] If provided, will only return accounts with this status.
|
55
57
|
# @param request_options [Merge::RequestOptions]
|
56
58
|
# @return [Merge::Accounting::PaginatedAccountList]
|
57
59
|
# @example
|
@@ -61,8 +63,8 @@ module Merge
|
|
61
63
|
# api_key: "YOUR_AUTH_TOKEN"
|
62
64
|
# )
|
63
65
|
# api.accounting.accounts.list
|
64
|
-
def list(account_type: nil,
|
65
|
-
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)
|
66
|
+
def list(account_type: nil, classification: nil, company_id: nil, created_after: nil, created_before: nil,
|
67
|
+
cursor: nil, expand: 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, status: nil, request_options: nil)
|
66
68
|
response = @request_client.conn.get do |req|
|
67
69
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
68
70
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -75,6 +77,7 @@ module Merge
|
|
75
77
|
req.params = {
|
76
78
|
**(request_options&.additional_query_parameters || {}),
|
77
79
|
"account_type": account_type,
|
80
|
+
"classification": classification,
|
78
81
|
"company_id": company_id,
|
79
82
|
"created_after": created_after,
|
80
83
|
"created_before": created_before,
|
@@ -89,7 +92,8 @@ module Merge
|
|
89
92
|
"page_size": page_size,
|
90
93
|
"remote_fields": remote_fields,
|
91
94
|
"remote_id": remote_id,
|
92
|
-
"show_enum_origins": show_enum_origins
|
95
|
+
"show_enum_origins": show_enum_origins,
|
96
|
+
"status": status
|
93
97
|
}.compact
|
94
98
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
95
99
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
@@ -241,7 +245,8 @@ module Merge
|
|
241
245
|
|
242
246
|
# Returns a list of `Account` objects.
|
243
247
|
#
|
244
|
-
# @param account_type [String] If provided, will only
|
248
|
+
# @param account_type [String] If provided, will only return accounts with the passed in enum.
|
249
|
+
# @param classification [String] If provided, will only return accounts with this classification.
|
245
250
|
# @param company_id [String] If provided, will only return accounts for this company.
|
246
251
|
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
|
247
252
|
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
|
@@ -266,6 +271,7 @@ module Merge
|
|
266
271
|
# @param show_enum_origins [Merge::Accounting::Accounts::AccountsListRequestShowEnumOrigins] A comma separated list of enum field names for which you'd like the original
|
267
272
|
# values to be returned, instead of Merge's normalized enum values. [Learn
|
268
273
|
# e](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
|
274
|
+
# @param status [String] If provided, will only return accounts with this status.
|
269
275
|
# @param request_options [Merge::RequestOptions]
|
270
276
|
# @return [Merge::Accounting::PaginatedAccountList]
|
271
277
|
# @example
|
@@ -275,8 +281,8 @@ module Merge
|
|
275
281
|
# api_key: "YOUR_AUTH_TOKEN"
|
276
282
|
# )
|
277
283
|
# api.accounting.accounts.list
|
278
|
-
def list(account_type: nil,
|
279
|
-
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)
|
284
|
+
def list(account_type: nil, classification: nil, company_id: nil, created_after: nil, created_before: nil,
|
285
|
+
cursor: nil, expand: 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, status: nil, request_options: nil)
|
280
286
|
Async do
|
281
287
|
response = @request_client.conn.get do |req|
|
282
288
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -290,6 +296,7 @@ module Merge
|
|
290
296
|
req.params = {
|
291
297
|
**(request_options&.additional_query_parameters || {}),
|
292
298
|
"account_type": account_type,
|
299
|
+
"classification": classification,
|
293
300
|
"company_id": company_id,
|
294
301
|
"created_after": created_after,
|
295
302
|
"created_before": created_before,
|
@@ -304,7 +311,8 @@ module Merge
|
|
304
311
|
"page_size": page_size,
|
305
312
|
"remote_fields": remote_fields,
|
306
313
|
"remote_id": remote_id,
|
307
|
-
"show_enum_origins": show_enum_origins
|
314
|
+
"show_enum_origins": show_enum_origins,
|
315
|
+
"status": status
|
308
316
|
}.compact
|
309
317
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
310
318
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
@@ -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`,
|
27
|
-
# `
|
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`,
|
110
|
-
# `
|
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`,
|
@@ -37,6 +37,7 @@ require_relative "payment_methods/client"
|
|
37
37
|
require_relative "payment_terms/client"
|
38
38
|
require_relative "payments/client"
|
39
39
|
require_relative "phone_numbers/client"
|
40
|
+
require_relative "projects/client"
|
40
41
|
require_relative "purchase_orders/client"
|
41
42
|
require_relative "regenerate_key/client"
|
42
43
|
require_relative "sync_status/client"
|
@@ -122,6 +123,8 @@ module Merge
|
|
122
123
|
attr_reader :payments
|
123
124
|
# @return [Merge::Accounting::PhoneNumbersClient]
|
124
125
|
attr_reader :phone_numbers
|
126
|
+
# @return [Merge::Accounting::ProjectsClient]
|
127
|
+
attr_reader :projects
|
125
128
|
# @return [Merge::Accounting::PurchaseOrdersClient]
|
126
129
|
attr_reader :purchase_orders
|
127
130
|
# @return [Merge::Accounting::RegenerateKeyClient]
|
@@ -180,6 +183,7 @@ module Merge
|
|
180
183
|
@payment_terms = Merge::Accounting::PaymentTermsClient.new(request_client: request_client)
|
181
184
|
@payments = Merge::Accounting::PaymentsClient.new(request_client: request_client)
|
182
185
|
@phone_numbers = Merge::Accounting::PhoneNumbersClient.new(request_client: request_client)
|
186
|
+
@projects = Merge::Accounting::ProjectsClient.new(request_client: request_client)
|
183
187
|
@purchase_orders = Merge::Accounting::PurchaseOrdersClient.new(request_client: request_client)
|
184
188
|
@regenerate_key = Merge::Accounting::RegenerateKeyClient.new(request_client: request_client)
|
185
189
|
@sync_status = Merge::Accounting::SyncStatusClient.new(request_client: request_client)
|
@@ -265,6 +269,8 @@ module Merge
|
|
265
269
|
attr_reader :payments
|
266
270
|
# @return [Merge::Accounting::AsyncPhoneNumbersClient]
|
267
271
|
attr_reader :phone_numbers
|
272
|
+
# @return [Merge::Accounting::AsyncProjectsClient]
|
273
|
+
attr_reader :projects
|
268
274
|
# @return [Merge::Accounting::AsyncPurchaseOrdersClient]
|
269
275
|
attr_reader :purchase_orders
|
270
276
|
# @return [Merge::Accounting::AsyncRegenerateKeyClient]
|
@@ -323,6 +329,7 @@ module Merge
|
|
323
329
|
@payment_terms = Merge::Accounting::AsyncPaymentTermsClient.new(request_client: request_client)
|
324
330
|
@payments = Merge::Accounting::AsyncPaymentsClient.new(request_client: request_client)
|
325
331
|
@phone_numbers = Merge::Accounting::AsyncPhoneNumbersClient.new(request_client: request_client)
|
332
|
+
@projects = Merge::Accounting::AsyncProjectsClient.new(request_client: request_client)
|
326
333
|
@purchase_orders = Merge::Accounting::AsyncPurchaseOrdersClient.new(request_client: request_client)
|
327
334
|
@regenerate_key = Merge::Accounting::AsyncRegenerateKeyClient.new(request_client: request_client)
|
328
335
|
@sync_status = Merge::Accounting::AsyncSyncStatusClient.new(request_client: request_client)
|
@@ -55,6 +55,7 @@ module Merge
|
|
55
55
|
# @param show_enum_origins [String] A comma separated list of enum field names for which you'd like the original
|
56
56
|
# values to be returned, instead of Merge's normalized enum values. [Learn
|
57
57
|
# e](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
|
58
|
+
# @param status [String] If provided, will only return Contacts that match this status.
|
58
59
|
# @param request_options [Merge::RequestOptions]
|
59
60
|
# @return [Merge::Accounting::PaginatedContactList]
|
60
61
|
# @example
|
@@ -65,7 +66,7 @@ module Merge
|
|
65
66
|
# )
|
66
67
|
# api.accounting.contacts.list
|
67
68
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, email_address: nil, expand: nil,
|
68
|
-
include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_customer: nil, is_supplier: 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)
|
69
|
+
include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_customer: nil, is_supplier: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil)
|
69
70
|
response = @request_client.conn.get do |req|
|
70
71
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
71
72
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -95,7 +96,8 @@ module Merge
|
|
95
96
|
"page_size": page_size,
|
96
97
|
"remote_fields": remote_fields,
|
97
98
|
"remote_id": remote_id,
|
98
|
-
"show_enum_origins": show_enum_origins
|
99
|
+
"show_enum_origins": show_enum_origins,
|
100
|
+
"status": status
|
99
101
|
}.compact
|
100
102
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
101
103
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
@@ -250,6 +252,7 @@ module Merge
|
|
250
252
|
# contain some metadata but all other fields are null).
|
251
253
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
252
254
|
# is_common_model_field value
|
255
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
253
256
|
# @param page_size [Integer] Number of results to return per page.
|
254
257
|
# @param request_options [Merge::RequestOptions]
|
255
258
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -261,7 +264,7 @@ module Merge
|
|
261
264
|
# )
|
262
265
|
# api.accounting.contacts.remote_field_classes_list
|
263
266
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
264
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
267
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
265
268
|
response = @request_client.conn.get do |req|
|
266
269
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
267
270
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -278,6 +281,7 @@ module Merge
|
|
278
281
|
"include_remote_data": include_remote_data,
|
279
282
|
"include_shell_data": include_shell_data,
|
280
283
|
"is_common_model_field": is_common_model_field,
|
284
|
+
"is_custom": is_custom,
|
281
285
|
"page_size": page_size
|
282
286
|
}.compact
|
283
287
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -330,6 +334,7 @@ module Merge
|
|
330
334
|
# @param show_enum_origins [String] A comma separated list of enum field names for which you'd like the original
|
331
335
|
# values to be returned, instead of Merge's normalized enum values. [Learn
|
332
336
|
# e](https://help.merge.dev/en/articles/8950958-show_enum_origins-query-parameter)
|
337
|
+
# @param status [String] If provided, will only return Contacts that match this status.
|
333
338
|
# @param request_options [Merge::RequestOptions]
|
334
339
|
# @return [Merge::Accounting::PaginatedContactList]
|
335
340
|
# @example
|
@@ -340,7 +345,7 @@ module Merge
|
|
340
345
|
# )
|
341
346
|
# api.accounting.contacts.list
|
342
347
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, email_address: nil, expand: nil,
|
343
|
-
include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_customer: nil, is_supplier: 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)
|
348
|
+
include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_customer: nil, is_supplier: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil)
|
344
349
|
Async do
|
345
350
|
response = @request_client.conn.get do |req|
|
346
351
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -371,7 +376,8 @@ module Merge
|
|
371
376
|
"page_size": page_size,
|
372
377
|
"remote_fields": remote_fields,
|
373
378
|
"remote_id": remote_id,
|
374
|
-
"show_enum_origins": show_enum_origins
|
379
|
+
"show_enum_origins": show_enum_origins,
|
380
|
+
"status": status
|
375
381
|
}.compact
|
376
382
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
377
383
|
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
@@ -533,6 +539,7 @@ module Merge
|
|
533
539
|
# contain some metadata but all other fields are null).
|
534
540
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
535
541
|
# is_common_model_field value
|
542
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
536
543
|
# @param page_size [Integer] Number of results to return per page.
|
537
544
|
# @param request_options [Merge::RequestOptions]
|
538
545
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -544,7 +551,7 @@ module Merge
|
|
544
551
|
# )
|
545
552
|
# api.accounting.contacts.remote_field_classes_list
|
546
553
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
547
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
554
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
548
555
|
Async do
|
549
556
|
response = @request_client.conn.get do |req|
|
550
557
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -562,6 +569,7 @@ module Merge
|
|
562
569
|
"include_remote_data": include_remote_data,
|
563
570
|
"include_shell_data": include_shell_data,
|
564
571
|
"is_common_model_field": is_common_model_field,
|
572
|
+
"is_custom": is_custom,
|
565
573
|
"page_size": page_size
|
566
574
|
}.compact
|
567
575
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -207,6 +207,7 @@ module Merge
|
|
207
207
|
# contain some metadata but all other fields are null).
|
208
208
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
209
209
|
# is_common_model_field value
|
210
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
210
211
|
# @param page_size [Integer] Number of results to return per page.
|
211
212
|
# @param request_options [Merge::RequestOptions]
|
212
213
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -218,7 +219,7 @@ module Merge
|
|
218
219
|
# )
|
219
220
|
# api.accounting.expenses.lines_remote_field_classes_list
|
220
221
|
def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
221
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
222
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
222
223
|
response = @request_client.conn.get do |req|
|
223
224
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
224
225
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -235,6 +236,7 @@ module Merge
|
|
235
236
|
"include_remote_data": include_remote_data,
|
236
237
|
"include_shell_data": include_shell_data,
|
237
238
|
"is_common_model_field": is_common_model_field,
|
239
|
+
"is_custom": is_custom,
|
238
240
|
"page_size": page_size
|
239
241
|
}.compact
|
240
242
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -290,6 +292,7 @@ module Merge
|
|
290
292
|
# contain some metadata but all other fields are null).
|
291
293
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
292
294
|
# is_common_model_field value
|
295
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
293
296
|
# @param page_size [Integer] Number of results to return per page.
|
294
297
|
# @param request_options [Merge::RequestOptions]
|
295
298
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -301,7 +304,7 @@ module Merge
|
|
301
304
|
# )
|
302
305
|
# api.accounting.expenses.remote_field_classes_list
|
303
306
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
304
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
307
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
305
308
|
response = @request_client.conn.get do |req|
|
306
309
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
307
310
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -318,6 +321,7 @@ module Merge
|
|
318
321
|
"include_remote_data": include_remote_data,
|
319
322
|
"include_shell_data": include_shell_data,
|
320
323
|
"is_common_model_field": is_common_model_field,
|
324
|
+
"is_custom": is_custom,
|
321
325
|
"page_size": page_size
|
322
326
|
}.compact
|
323
327
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -528,6 +532,7 @@ module Merge
|
|
528
532
|
# contain some metadata but all other fields are null).
|
529
533
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
530
534
|
# is_common_model_field value
|
535
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
531
536
|
# @param page_size [Integer] Number of results to return per page.
|
532
537
|
# @param request_options [Merge::RequestOptions]
|
533
538
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -539,7 +544,7 @@ module Merge
|
|
539
544
|
# )
|
540
545
|
# api.accounting.expenses.lines_remote_field_classes_list
|
541
546
|
def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
542
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
547
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
543
548
|
Async do
|
544
549
|
response = @request_client.conn.get do |req|
|
545
550
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -557,6 +562,7 @@ module Merge
|
|
557
562
|
"include_remote_data": include_remote_data,
|
558
563
|
"include_shell_data": include_shell_data,
|
559
564
|
"is_common_model_field": is_common_model_field,
|
565
|
+
"is_custom": is_custom,
|
560
566
|
"page_size": page_size
|
561
567
|
}.compact
|
562
568
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -615,6 +621,7 @@ module Merge
|
|
615
621
|
# contain some metadata but all other fields are null).
|
616
622
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
617
623
|
# is_common_model_field value
|
624
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
618
625
|
# @param page_size [Integer] Number of results to return per page.
|
619
626
|
# @param request_options [Merge::RequestOptions]
|
620
627
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -626,7 +633,7 @@ module Merge
|
|
626
633
|
# )
|
627
634
|
# api.accounting.expenses.remote_field_classes_list
|
628
635
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
629
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
636
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
630
637
|
Async do
|
631
638
|
response = @request_client.conn.get do |req|
|
632
639
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -644,6 +651,7 @@ module Merge
|
|
644
651
|
"include_remote_data": include_remote_data,
|
645
652
|
"include_shell_data": include_shell_data,
|
646
653
|
"is_common_model_field": is_common_model_field,
|
654
|
+
"is_custom": is_custom,
|
647
655
|
"page_size": page_size
|
648
656
|
}.compact
|
649
657
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -309,6 +309,7 @@ module Merge
|
|
309
309
|
# contain some metadata but all other fields are null).
|
310
310
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
311
311
|
# is_common_model_field value
|
312
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
312
313
|
# @param page_size [Integer] Number of results to return per page.
|
313
314
|
# @param request_options [Merge::RequestOptions]
|
314
315
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -320,7 +321,7 @@ module Merge
|
|
320
321
|
# )
|
321
322
|
# api.accounting.invoices.line_items_remote_field_classes_list
|
322
323
|
def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
323
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
324
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
324
325
|
response = @request_client.conn.get do |req|
|
325
326
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
326
327
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -337,6 +338,7 @@ module Merge
|
|
337
338
|
"include_remote_data": include_remote_data,
|
338
339
|
"include_shell_data": include_shell_data,
|
339
340
|
"is_common_model_field": is_common_model_field,
|
341
|
+
"is_custom": is_custom,
|
340
342
|
"page_size": page_size
|
341
343
|
}.compact
|
342
344
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -425,6 +427,7 @@ module Merge
|
|
425
427
|
# contain some metadata but all other fields are null).
|
426
428
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
427
429
|
# is_common_model_field value
|
430
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
428
431
|
# @param page_size [Integer] Number of results to return per page.
|
429
432
|
# @param request_options [Merge::RequestOptions]
|
430
433
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -436,7 +439,7 @@ module Merge
|
|
436
439
|
# )
|
437
440
|
# api.accounting.invoices.remote_field_classes_list
|
438
441
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
439
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
442
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
440
443
|
response = @request_client.conn.get do |req|
|
441
444
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
442
445
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
@@ -453,6 +456,7 @@ module Merge
|
|
453
456
|
"include_remote_data": include_remote_data,
|
454
457
|
"include_shell_data": include_shell_data,
|
455
458
|
"is_common_model_field": is_common_model_field,
|
459
|
+
"is_custom": is_custom,
|
456
460
|
"page_size": page_size
|
457
461
|
}.compact
|
458
462
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -765,6 +769,7 @@ module Merge
|
|
765
769
|
# contain some metadata but all other fields are null).
|
766
770
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
767
771
|
# is_common_model_field value
|
772
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
768
773
|
# @param page_size [Integer] Number of results to return per page.
|
769
774
|
# @param request_options [Merge::RequestOptions]
|
770
775
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -776,7 +781,7 @@ module Merge
|
|
776
781
|
# )
|
777
782
|
# api.accounting.invoices.line_items_remote_field_classes_list
|
778
783
|
def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
779
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
784
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
780
785
|
Async do
|
781
786
|
response = @request_client.conn.get do |req|
|
782
787
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -794,6 +799,7 @@ module Merge
|
|
794
799
|
"include_remote_data": include_remote_data,
|
795
800
|
"include_shell_data": include_shell_data,
|
796
801
|
"is_common_model_field": is_common_model_field,
|
802
|
+
"is_custom": is_custom,
|
797
803
|
"page_size": page_size
|
798
804
|
}.compact
|
799
805
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
@@ -887,6 +893,7 @@ module Merge
|
|
887
893
|
# contain some metadata but all other fields are null).
|
888
894
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
889
895
|
# is_common_model_field value
|
896
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
890
897
|
# @param page_size [Integer] Number of results to return per page.
|
891
898
|
# @param request_options [Merge::RequestOptions]
|
892
899
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
@@ -898,7 +905,7 @@ module Merge
|
|
898
905
|
# )
|
899
906
|
# api.accounting.invoices.remote_field_classes_list
|
900
907
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
901
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
908
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
902
909
|
Async do
|
903
910
|
response = @request_client.conn.get do |req|
|
904
911
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -916,6 +923,7 @@ module Merge
|
|
916
923
|
"include_remote_data": include_remote_data,
|
917
924
|
"include_shell_data": include_shell_data,
|
918
925
|
"is_common_model_field": is_common_model_field,
|
926
|
+
"is_custom": is_custom,
|
919
927
|
"page_size": page_size
|
920
928
|
}.compact
|
921
929
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|