merge_ruby_client 1.1.0 → 2.1.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/accounting_periods/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/accounts/client.rb +18 -10
- data/lib/merge_ruby_client/accounting/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/audit_trail/client.rb +8 -6
- data/lib/merge_ruby_client/accounting/balance_sheets/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/bank_feed_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/bank_feed_transactions/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/cash_flow_statements/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/client.rb +14 -0
- data/lib/merge_ruby_client/accounting/company_info/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/contacts/client.rb +187 -10
- data/lib/merge_ruby_client/accounting/credit_notes/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/employees/client.rb +35 -8
- data/lib/merge_ruby_client/accounting/expense_reports/client.rb +765 -0
- data/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand.rb +73 -0
- data/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand.rb +25 -0
- data/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand.rb +25 -0
- data/lib/merge_ruby_client/accounting/expenses/client.rb +18 -10
- data/lib/merge_ruby_client/accounting/general_ledger_transactions/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/income_statements/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/invoices/client.rb +18 -10
- data/lib/merge_ruby_client/accounting/issues/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/items/client.rb +334 -2
- data/lib/merge_ruby_client/accounting/journal_entries/client.rb +18 -10
- data/lib/merge_ruby_client/accounting/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/payment_methods/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/payment_terms/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/payments/client.rb +18 -10
- data/lib/merge_ruby_client/accounting/projects/client.rb +251 -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 +18 -10
- data/lib/merge_ruby_client/accounting/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/tax_rates/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/tracking_categories/client.rb +18 -10
- data/lib/merge_ruby_client/accounting/transactions/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/transactions/types/transactions_list_request_expand.rb +32 -0
- data/lib/merge_ruby_client/accounting/transactions/types/transactions_retrieve_request_expand.rb +32 -0
- 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/expense_report.rb +869 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line.rb +921 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_account.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_contact.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_employee.rb +57 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request.rb +899 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_account.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_contact.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_employee.rb +57 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_tax_rate.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_tax_rate.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request.rb +819 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request_accounting_period.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request_employee.rb +57 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_response.rb +101 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_status_enum.rb +16 -0
- data/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb +23 -1
- data/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb +23 -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.rb +18 -1
- 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_expense_report_line_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/paginated_expense_report_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/paginated_project_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/patched_contact_request.rb +188 -0
- data/lib/merge_ruby_client/accounting/types/patched_contact_request_addresses_item.rb +55 -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/remote_field_class.rb +9 -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/accounting/vendor_credits/client.rb +2 -2
- data/lib/merge_ruby_client/ats/activities/client.rb +2 -2
- data/lib/merge_ruby_client/ats/applications/client.rb +2 -2
- data/lib/merge_ruby_client/ats/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/ats/audit_trail/client.rb +8 -6
- data/lib/merge_ruby_client/ats/candidates/client.rb +2 -2
- data/lib/merge_ruby_client/ats/departments/client.rb +2 -2
- data/lib/merge_ruby_client/ats/eeocs/client.rb +2 -2
- data/lib/merge_ruby_client/ats/interviews/client.rb +2 -2
- data/lib/merge_ruby_client/ats/issues/client.rb +2 -2
- data/lib/merge_ruby_client/ats/job_interview_stages/client.rb +2 -2
- data/lib/merge_ruby_client/ats/job_postings/client.rb +2 -2
- data/lib/merge_ruby_client/ats/jobs/client.rb +4 -4
- data/lib/merge_ruby_client/ats/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/ats/offers/client.rb +2 -2
- data/lib/merge_ruby_client/ats/offices/client.rb +2 -2
- data/lib/merge_ruby_client/ats/reject_reasons/client.rb +2 -2
- data/lib/merge_ruby_client/ats/scorecards/client.rb +2 -2
- data/lib/merge_ruby_client/ats/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/ats/tags/client.rb +2 -2
- 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 +2 -0
- data/lib/merge_ruby_client/ats/users/client.rb +2 -2
- data/lib/merge_ruby_client/crm/accounts/client.rb +10 -6
- data/lib/merge_ruby_client/crm/association_types/client.rb +2 -2
- data/lib/merge_ruby_client/crm/associations/client.rb +10 -2
- data/lib/merge_ruby_client/crm/audit_trail/client.rb +8 -6
- data/lib/merge_ruby_client/crm/contacts/client.rb +10 -6
- data/lib/merge_ruby_client/crm/custom_object_classes/client.rb +2 -2
- data/lib/merge_ruby_client/crm/custom_objects/client.rb +14 -6
- data/lib/merge_ruby_client/crm/engagement_types/client.rb +10 -6
- data/lib/merge_ruby_client/crm/engagements/client.rb +10 -6
- data/lib/merge_ruby_client/crm/issues/client.rb +2 -2
- data/lib/merge_ruby_client/crm/leads/client.rb +10 -6
- data/lib/merge_ruby_client/crm/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/crm/notes/client.rb +10 -6
- data/lib/merge_ruby_client/crm/opportunities/client.rb +10 -6
- data/lib/merge_ruby_client/crm/stages/client.rb +10 -6
- data/lib/merge_ruby_client/crm/sync_status/client.rb +22 -8
- data/lib/merge_ruby_client/crm/tasks/client.rb +10 -6
- 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/types/remote_field_class.rb +9 -1
- data/lib/merge_ruby_client/crm/users/client.rb +10 -6
- data/lib/merge_ruby_client/filestorage/audit_trail/client.rb +8 -6
- data/lib/merge_ruby_client/filestorage/drives/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/files/client.rb +70 -16
- 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/folders/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/groups/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/issues/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/sync_status/client.rb +22 -8
- 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/filestorage/users/client.rb +2 -2
- data/lib/merge_ruby_client/hris/audit_trail/client.rb +8 -6
- data/lib/merge_ruby_client/hris/bank_info/client.rb +2 -2
- data/lib/merge_ruby_client/hris/benefits/client.rb +2 -2
- data/lib/merge_ruby_client/hris/companies/client.rb +2 -2
- data/lib/merge_ruby_client/hris/dependents/client.rb +8 -4
- data/lib/merge_ruby_client/hris/employee_payroll_runs/client.rb +2 -2
- data/lib/merge_ruby_client/hris/employees/client.rb +8 -4
- data/lib/merge_ruby_client/hris/employer_benefits/client.rb +2 -2
- data/lib/merge_ruby_client/hris/employments/client.rb +2 -2
- data/lib/merge_ruby_client/hris/groups/client.rb +2 -2
- data/lib/merge_ruby_client/hris/issues/client.rb +2 -2
- data/lib/merge_ruby_client/hris/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/hris/locations/client.rb +2 -2
- data/lib/merge_ruby_client/hris/pay_groups/client.rb +2 -2
- data/lib/merge_ruby_client/hris/payroll_runs/client.rb +2 -2
- data/lib/merge_ruby_client/hris/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/hris/teams/client.rb +2 -2
- data/lib/merge_ruby_client/hris/time_off/client.rb +2 -2
- data/lib/merge_ruby_client/hris/time_off_balances/client.rb +2 -2
- data/lib/merge_ruby_client/hris/timesheet_entries/client.rb +2 -2
- 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/benefit.rb +9 -9
- data/lib/merge_ruby_client/hris/types/event_type_enum.rb +2 -0
- data/lib/merge_ruby_client/ticketing/accounts/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/audit_trail/client.rb +8 -6
- data/lib/merge_ruby_client/ticketing/collections/client.rb +4 -4
- data/lib/merge_ruby_client/ticketing/comments/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/contacts/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/issues/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/projects/client.rb +4 -4
- data/lib/merge_ruby_client/ticketing/roles/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/tags/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/teams/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/tickets/client.rb +40 -20
- 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 +28 -9
- data/lib/merge_ruby_client/ticketing/types/remote_field_class.rb +9 -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/ticketing/users/client.rb +2 -2
- data/lib/merge_ruby_client.rb +14 -14
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +473 -409
- metadata +69 -3
|
@@ -60,7 +60,7 @@ module Merge
|
|
|
60
60
|
# environment: Merge::Environment::PRODUCTION,
|
|
61
61
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
62
62
|
# )
|
|
63
|
-
# api.accounting.payments.list
|
|
63
|
+
# api.accounting.payments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
64
64
|
def list(account_id: nil, company_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil,
|
|
65
65
|
expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil)
|
|
66
66
|
response = @request_client.conn.get do |req|
|
|
@@ -260,6 +260,7 @@ module Merge
|
|
|
260
260
|
# contain some metadata but all other fields are null).
|
|
261
261
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
262
262
|
# is_common_model_field value
|
|
263
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
263
264
|
# @param page_size [Integer] Number of results to return per page.
|
|
264
265
|
# @param request_options [Merge::RequestOptions]
|
|
265
266
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -269,9 +270,9 @@ module Merge
|
|
|
269
270
|
# environment: Merge::Environment::PRODUCTION,
|
|
270
271
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
271
272
|
# )
|
|
272
|
-
# api.accounting.payments.line_items_remote_field_classes_list
|
|
273
|
+
# api.accounting.payments.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
273
274
|
def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
274
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
275
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
275
276
|
response = @request_client.conn.get do |req|
|
|
276
277
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
277
278
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -288,6 +289,7 @@ module Merge
|
|
|
288
289
|
"include_remote_data": include_remote_data,
|
|
289
290
|
"include_shell_data": include_shell_data,
|
|
290
291
|
"is_common_model_field": is_common_model_field,
|
|
292
|
+
"is_custom": is_custom,
|
|
291
293
|
"page_size": page_size
|
|
292
294
|
}.compact
|
|
293
295
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -376,6 +378,7 @@ module Merge
|
|
|
376
378
|
# contain some metadata but all other fields are null).
|
|
377
379
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
378
380
|
# is_common_model_field value
|
|
381
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
379
382
|
# @param page_size [Integer] Number of results to return per page.
|
|
380
383
|
# @param request_options [Merge::RequestOptions]
|
|
381
384
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -385,9 +388,9 @@ module Merge
|
|
|
385
388
|
# environment: Merge::Environment::PRODUCTION,
|
|
386
389
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
387
390
|
# )
|
|
388
|
-
# api.accounting.payments.remote_field_classes_list
|
|
391
|
+
# api.accounting.payments.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
389
392
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
390
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
393
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
391
394
|
response = @request_client.conn.get do |req|
|
|
392
395
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
393
396
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -404,6 +407,7 @@ module Merge
|
|
|
404
407
|
"include_remote_data": include_remote_data,
|
|
405
408
|
"include_shell_data": include_shell_data,
|
|
406
409
|
"is_common_model_field": is_common_model_field,
|
|
410
|
+
"is_custom": is_custom,
|
|
407
411
|
"page_size": page_size
|
|
408
412
|
}.compact
|
|
409
413
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -460,7 +464,7 @@ module Merge
|
|
|
460
464
|
# environment: Merge::Environment::PRODUCTION,
|
|
461
465
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
462
466
|
# )
|
|
463
|
-
# api.accounting.payments.list
|
|
467
|
+
# api.accounting.payments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
464
468
|
def list(account_id: nil, company_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil,
|
|
465
469
|
expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil)
|
|
466
470
|
Async do
|
|
@@ -668,6 +672,7 @@ module Merge
|
|
|
668
672
|
# contain some metadata but all other fields are null).
|
|
669
673
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
670
674
|
# is_common_model_field value
|
|
675
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
671
676
|
# @param page_size [Integer] Number of results to return per page.
|
|
672
677
|
# @param request_options [Merge::RequestOptions]
|
|
673
678
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -677,9 +682,9 @@ module Merge
|
|
|
677
682
|
# environment: Merge::Environment::PRODUCTION,
|
|
678
683
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
679
684
|
# )
|
|
680
|
-
# api.accounting.payments.line_items_remote_field_classes_list
|
|
685
|
+
# api.accounting.payments.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
681
686
|
def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
682
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
687
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
683
688
|
Async do
|
|
684
689
|
response = @request_client.conn.get do |req|
|
|
685
690
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -697,6 +702,7 @@ module Merge
|
|
|
697
702
|
"include_remote_data": include_remote_data,
|
|
698
703
|
"include_shell_data": include_shell_data,
|
|
699
704
|
"is_common_model_field": is_common_model_field,
|
|
705
|
+
"is_custom": is_custom,
|
|
700
706
|
"page_size": page_size
|
|
701
707
|
}.compact
|
|
702
708
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -790,6 +796,7 @@ module Merge
|
|
|
790
796
|
# contain some metadata but all other fields are null).
|
|
791
797
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
792
798
|
# is_common_model_field value
|
|
799
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
793
800
|
# @param page_size [Integer] Number of results to return per page.
|
|
794
801
|
# @param request_options [Merge::RequestOptions]
|
|
795
802
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -799,9 +806,9 @@ module Merge
|
|
|
799
806
|
# environment: Merge::Environment::PRODUCTION,
|
|
800
807
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
801
808
|
# )
|
|
802
|
-
# api.accounting.payments.remote_field_classes_list
|
|
809
|
+
# api.accounting.payments.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
803
810
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
804
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
811
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
805
812
|
Async do
|
|
806
813
|
response = @request_client.conn.get do |req|
|
|
807
814
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -819,6 +826,7 @@ module Merge
|
|
|
819
826
|
"include_remote_data": include_remote_data,
|
|
820
827
|
"include_shell_data": include_shell_data,
|
|
821
828
|
"is_common_model_field": is_common_model_field,
|
|
829
|
+
"is_custom": is_custom,
|
|
822
830
|
"page_size": page_size
|
|
823
831
|
}.compact
|
|
824
832
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../../requests"
|
|
4
|
+
require "date"
|
|
5
|
+
require_relative "types/projects_list_request_expand"
|
|
6
|
+
require_relative "../types/paginated_project_list"
|
|
7
|
+
require_relative "types/projects_retrieve_request_expand"
|
|
8
|
+
require_relative "../types/project"
|
|
9
|
+
require "async"
|
|
10
|
+
|
|
11
|
+
module Merge
|
|
12
|
+
module Accounting
|
|
13
|
+
class ProjectsClient
|
|
14
|
+
# @return [Merge::RequestClient]
|
|
15
|
+
attr_reader :request_client
|
|
16
|
+
|
|
17
|
+
# @param request_client [Merge::RequestClient]
|
|
18
|
+
# @return [Merge::Accounting::ProjectsClient]
|
|
19
|
+
def initialize(request_client:)
|
|
20
|
+
@request_client = request_client
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Returns a list of `Project` objects.
|
|
24
|
+
#
|
|
25
|
+
# @param company_id [String] If provided, will only return projects for this company.
|
|
26
|
+
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
|
|
27
|
+
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
|
|
28
|
+
# @param cursor [String] The pagination cursor value.
|
|
29
|
+
# @param expand [Merge::Accounting::Projects::ProjectsListRequestExpand] Which relations should be returned in expanded form. Multiple relation names
|
|
30
|
+
# should be comma separated without spaces.
|
|
31
|
+
# @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
32
|
+
# platform. Full coverage deletion detection is a premium add-on. Native deletion
|
|
33
|
+
# detection is offered for free with limited coverage. [Learn
|
|
34
|
+
# more](https://docs.merge.dev/integrations/hris/supported-features/).
|
|
35
|
+
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
36
|
+
# produce these models.
|
|
37
|
+
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
|
|
38
|
+
# contain some metadata but all other fields are null).
|
|
39
|
+
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
|
|
40
|
+
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
|
|
41
|
+
# returned.
|
|
42
|
+
# @param page_size [Integer] Number of results to return per page.
|
|
43
|
+
# @param remote_id [String] The API provider's ID for the given object.
|
|
44
|
+
# @param request_options [Merge::RequestOptions]
|
|
45
|
+
# @return [Merge::Accounting::PaginatedProjectList]
|
|
46
|
+
# @example
|
|
47
|
+
# api = Merge::Client.new(
|
|
48
|
+
# base_url: "https://api.example.com",
|
|
49
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
50
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
51
|
+
# )
|
|
52
|
+
# api.accounting.projects.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
53
|
+
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
54
|
+
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
55
|
+
response = @request_client.conn.get do |req|
|
|
56
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
57
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
58
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
59
|
+
req.headers = {
|
|
60
|
+
**(req.headers || {}),
|
|
61
|
+
**@request_client.get_headers,
|
|
62
|
+
**(request_options&.additional_headers || {})
|
|
63
|
+
}.compact
|
|
64
|
+
req.params = {
|
|
65
|
+
**(request_options&.additional_query_parameters || {}),
|
|
66
|
+
"company_id": company_id,
|
|
67
|
+
"created_after": created_after,
|
|
68
|
+
"created_before": created_before,
|
|
69
|
+
"cursor": cursor,
|
|
70
|
+
"expand": expand,
|
|
71
|
+
"include_deleted_data": include_deleted_data,
|
|
72
|
+
"include_remote_data": include_remote_data,
|
|
73
|
+
"include_shell_data": include_shell_data,
|
|
74
|
+
"modified_after": modified_after,
|
|
75
|
+
"modified_before": modified_before,
|
|
76
|
+
"page_size": page_size,
|
|
77
|
+
"remote_id": remote_id
|
|
78
|
+
}.compact
|
|
79
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
80
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
81
|
+
end
|
|
82
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/projects"
|
|
83
|
+
end
|
|
84
|
+
Merge::Accounting::PaginatedProjectList.from_json(json_object: response.body)
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# Returns a `Project` object with the given `id`.
|
|
88
|
+
#
|
|
89
|
+
# @param id [String]
|
|
90
|
+
# @param expand [Merge::Accounting::Projects::ProjectsRetrieveRequestExpand] Which relations should be returned in expanded form. Multiple relation names
|
|
91
|
+
# should be comma separated without spaces.
|
|
92
|
+
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
93
|
+
# produce these models.
|
|
94
|
+
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
|
|
95
|
+
# contain some metadata but all other fields are null).
|
|
96
|
+
# @param request_options [Merge::RequestOptions]
|
|
97
|
+
# @return [Merge::Accounting::Project]
|
|
98
|
+
# @example
|
|
99
|
+
# api = Merge::Client.new(
|
|
100
|
+
# base_url: "https://api.example.com",
|
|
101
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
102
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
103
|
+
# )
|
|
104
|
+
# api.accounting.projects.retrieve(id: "id")
|
|
105
|
+
def retrieve(id:, expand: nil, include_remote_data: nil, include_shell_data: nil, request_options: nil)
|
|
106
|
+
response = @request_client.conn.get do |req|
|
|
107
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
108
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
109
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
110
|
+
req.headers = {
|
|
111
|
+
**(req.headers || {}),
|
|
112
|
+
**@request_client.get_headers,
|
|
113
|
+
**(request_options&.additional_headers || {})
|
|
114
|
+
}.compact
|
|
115
|
+
req.params = {
|
|
116
|
+
**(request_options&.additional_query_parameters || {}),
|
|
117
|
+
"expand": expand,
|
|
118
|
+
"include_remote_data": include_remote_data,
|
|
119
|
+
"include_shell_data": include_shell_data
|
|
120
|
+
}.compact
|
|
121
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
122
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
123
|
+
end
|
|
124
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/projects/#{id}"
|
|
125
|
+
end
|
|
126
|
+
Merge::Accounting::Project.from_json(json_object: response.body)
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
class AsyncProjectsClient
|
|
131
|
+
# @return [Merge::AsyncRequestClient]
|
|
132
|
+
attr_reader :request_client
|
|
133
|
+
|
|
134
|
+
# @param request_client [Merge::AsyncRequestClient]
|
|
135
|
+
# @return [Merge::Accounting::AsyncProjectsClient]
|
|
136
|
+
def initialize(request_client:)
|
|
137
|
+
@request_client = request_client
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Returns a list of `Project` objects.
|
|
141
|
+
#
|
|
142
|
+
# @param company_id [String] If provided, will only return projects for this company.
|
|
143
|
+
# @param created_after [DateTime] If provided, will only return objects created after this datetime.
|
|
144
|
+
# @param created_before [DateTime] If provided, will only return objects created before this datetime.
|
|
145
|
+
# @param cursor [String] The pagination cursor value.
|
|
146
|
+
# @param expand [Merge::Accounting::Projects::ProjectsListRequestExpand] Which relations should be returned in expanded form. Multiple relation names
|
|
147
|
+
# should be comma separated without spaces.
|
|
148
|
+
# @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
149
|
+
# platform. Full coverage deletion detection is a premium add-on. Native deletion
|
|
150
|
+
# detection is offered for free with limited coverage. [Learn
|
|
151
|
+
# more](https://docs.merge.dev/integrations/hris/supported-features/).
|
|
152
|
+
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
153
|
+
# produce these models.
|
|
154
|
+
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
|
|
155
|
+
# contain some metadata but all other fields are null).
|
|
156
|
+
# @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned.
|
|
157
|
+
# @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be
|
|
158
|
+
# returned.
|
|
159
|
+
# @param page_size [Integer] Number of results to return per page.
|
|
160
|
+
# @param remote_id [String] The API provider's ID for the given object.
|
|
161
|
+
# @param request_options [Merge::RequestOptions]
|
|
162
|
+
# @return [Merge::Accounting::PaginatedProjectList]
|
|
163
|
+
# @example
|
|
164
|
+
# api = Merge::Client.new(
|
|
165
|
+
# base_url: "https://api.example.com",
|
|
166
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
167
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
168
|
+
# )
|
|
169
|
+
# api.accounting.projects.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
170
|
+
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
171
|
+
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
172
|
+
Async do
|
|
173
|
+
response = @request_client.conn.get do |req|
|
|
174
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
175
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
176
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
177
|
+
req.headers = {
|
|
178
|
+
**(req.headers || {}),
|
|
179
|
+
**@request_client.get_headers,
|
|
180
|
+
**(request_options&.additional_headers || {})
|
|
181
|
+
}.compact
|
|
182
|
+
req.params = {
|
|
183
|
+
**(request_options&.additional_query_parameters || {}),
|
|
184
|
+
"company_id": company_id,
|
|
185
|
+
"created_after": created_after,
|
|
186
|
+
"created_before": created_before,
|
|
187
|
+
"cursor": cursor,
|
|
188
|
+
"expand": expand,
|
|
189
|
+
"include_deleted_data": include_deleted_data,
|
|
190
|
+
"include_remote_data": include_remote_data,
|
|
191
|
+
"include_shell_data": include_shell_data,
|
|
192
|
+
"modified_after": modified_after,
|
|
193
|
+
"modified_before": modified_before,
|
|
194
|
+
"page_size": page_size,
|
|
195
|
+
"remote_id": remote_id
|
|
196
|
+
}.compact
|
|
197
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
198
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
199
|
+
end
|
|
200
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/projects"
|
|
201
|
+
end
|
|
202
|
+
Merge::Accounting::PaginatedProjectList.from_json(json_object: response.body)
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Returns a `Project` object with the given `id`.
|
|
207
|
+
#
|
|
208
|
+
# @param id [String]
|
|
209
|
+
# @param expand [Merge::Accounting::Projects::ProjectsRetrieveRequestExpand] Which relations should be returned in expanded form. Multiple relation names
|
|
210
|
+
# should be comma separated without spaces.
|
|
211
|
+
# @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to
|
|
212
|
+
# produce these models.
|
|
213
|
+
# @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may
|
|
214
|
+
# contain some metadata but all other fields are null).
|
|
215
|
+
# @param request_options [Merge::RequestOptions]
|
|
216
|
+
# @return [Merge::Accounting::Project]
|
|
217
|
+
# @example
|
|
218
|
+
# api = Merge::Client.new(
|
|
219
|
+
# base_url: "https://api.example.com",
|
|
220
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
221
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
222
|
+
# )
|
|
223
|
+
# api.accounting.projects.retrieve(id: "id")
|
|
224
|
+
def retrieve(id:, expand: nil, include_remote_data: nil, include_shell_data: nil, request_options: nil)
|
|
225
|
+
Async do
|
|
226
|
+
response = @request_client.conn.get do |req|
|
|
227
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
228
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
229
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
230
|
+
req.headers = {
|
|
231
|
+
**(req.headers || {}),
|
|
232
|
+
**@request_client.get_headers,
|
|
233
|
+
**(request_options&.additional_headers || {})
|
|
234
|
+
}.compact
|
|
235
|
+
req.params = {
|
|
236
|
+
**(request_options&.additional_query_parameters || {}),
|
|
237
|
+
"expand": expand,
|
|
238
|
+
"include_remote_data": include_remote_data,
|
|
239
|
+
"include_shell_data": include_shell_data
|
|
240
|
+
}.compact
|
|
241
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
242
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
243
|
+
end
|
|
244
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/projects/#{id}"
|
|
245
|
+
end
|
|
246
|
+
Merge::Accounting::Project.from_json(json_object: response.body)
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
end
|
|
250
|
+
end
|
|
251
|
+
end
|
|
@@ -61,7 +61,7 @@ module Merge
|
|
|
61
61
|
# environment: Merge::Environment::PRODUCTION,
|
|
62
62
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
63
63
|
# )
|
|
64
|
-
# api.accounting.purchase_orders.list
|
|
64
|
+
# api.accounting.purchase_orders.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
65
65
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
66
66
|
include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, issue_date_after: nil, issue_date_before: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
|
67
67
|
response = @request_client.conn.get do |req|
|
|
@@ -219,6 +219,7 @@ module Merge
|
|
|
219
219
|
# contain some metadata but all other fields are null).
|
|
220
220
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
221
221
|
# is_common_model_field value
|
|
222
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
222
223
|
# @param page_size [Integer] Number of results to return per page.
|
|
223
224
|
# @param request_options [Merge::RequestOptions]
|
|
224
225
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -228,9 +229,9 @@ module Merge
|
|
|
228
229
|
# environment: Merge::Environment::PRODUCTION,
|
|
229
230
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
230
231
|
# )
|
|
231
|
-
# api.accounting.purchase_orders.line_items_remote_field_classes_list
|
|
232
|
+
# api.accounting.purchase_orders.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
232
233
|
def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
233
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
234
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
234
235
|
response = @request_client.conn.get do |req|
|
|
235
236
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
236
237
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -247,6 +248,7 @@ module Merge
|
|
|
247
248
|
"include_remote_data": include_remote_data,
|
|
248
249
|
"include_shell_data": include_shell_data,
|
|
249
250
|
"is_common_model_field": is_common_model_field,
|
|
251
|
+
"is_custom": is_custom,
|
|
250
252
|
"page_size": page_size
|
|
251
253
|
}.compact
|
|
252
254
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -302,6 +304,7 @@ module Merge
|
|
|
302
304
|
# contain some metadata but all other fields are null).
|
|
303
305
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
304
306
|
# is_common_model_field value
|
|
307
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
305
308
|
# @param page_size [Integer] Number of results to return per page.
|
|
306
309
|
# @param request_options [Merge::RequestOptions]
|
|
307
310
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -311,9 +314,9 @@ module Merge
|
|
|
311
314
|
# environment: Merge::Environment::PRODUCTION,
|
|
312
315
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
313
316
|
# )
|
|
314
|
-
# api.accounting.purchase_orders.remote_field_classes_list
|
|
317
|
+
# api.accounting.purchase_orders.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
315
318
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
316
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
319
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
317
320
|
response = @request_client.conn.get do |req|
|
|
318
321
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
319
322
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -330,6 +333,7 @@ module Merge
|
|
|
330
333
|
"include_remote_data": include_remote_data,
|
|
331
334
|
"include_shell_data": include_shell_data,
|
|
332
335
|
"is_common_model_field": is_common_model_field,
|
|
336
|
+
"is_custom": is_custom,
|
|
333
337
|
"page_size": page_size
|
|
334
338
|
}.compact
|
|
335
339
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -388,7 +392,7 @@ module Merge
|
|
|
388
392
|
# environment: Merge::Environment::PRODUCTION,
|
|
389
393
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
390
394
|
# )
|
|
391
|
-
# api.accounting.purchase_orders.list
|
|
395
|
+
# api.accounting.purchase_orders.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
392
396
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
393
397
|
include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, issue_date_after: nil, issue_date_before: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
|
394
398
|
Async do
|
|
@@ -552,6 +556,7 @@ module Merge
|
|
|
552
556
|
# contain some metadata but all other fields are null).
|
|
553
557
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
554
558
|
# is_common_model_field value
|
|
559
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
555
560
|
# @param page_size [Integer] Number of results to return per page.
|
|
556
561
|
# @param request_options [Merge::RequestOptions]
|
|
557
562
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -561,9 +566,9 @@ module Merge
|
|
|
561
566
|
# environment: Merge::Environment::PRODUCTION,
|
|
562
567
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
563
568
|
# )
|
|
564
|
-
# api.accounting.purchase_orders.line_items_remote_field_classes_list
|
|
569
|
+
# api.accounting.purchase_orders.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
565
570
|
def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
566
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
571
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
567
572
|
Async do
|
|
568
573
|
response = @request_client.conn.get do |req|
|
|
569
574
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -581,6 +586,7 @@ module Merge
|
|
|
581
586
|
"include_remote_data": include_remote_data,
|
|
582
587
|
"include_shell_data": include_shell_data,
|
|
583
588
|
"is_common_model_field": is_common_model_field,
|
|
589
|
+
"is_custom": is_custom,
|
|
584
590
|
"page_size": page_size
|
|
585
591
|
}.compact
|
|
586
592
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -639,6 +645,7 @@ module Merge
|
|
|
639
645
|
# contain some metadata but all other fields are null).
|
|
640
646
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
641
647
|
# is_common_model_field value
|
|
648
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
642
649
|
# @param page_size [Integer] Number of results to return per page.
|
|
643
650
|
# @param request_options [Merge::RequestOptions]
|
|
644
651
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -648,9 +655,9 @@ module Merge
|
|
|
648
655
|
# environment: Merge::Environment::PRODUCTION,
|
|
649
656
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
650
657
|
# )
|
|
651
|
-
# api.accounting.purchase_orders.remote_field_classes_list
|
|
658
|
+
# api.accounting.purchase_orders.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
652
659
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
653
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
660
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
654
661
|
Async do
|
|
655
662
|
response = @request_client.conn.get do |req|
|
|
656
663
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -668,6 +675,7 @@ module Merge
|
|
|
668
675
|
"include_remote_data": include_remote_data,
|
|
669
676
|
"include_shell_data": include_shell_data,
|
|
670
677
|
"is_common_model_field": is_common_model_field,
|
|
678
|
+
"is_custom": is_custom,
|
|
671
679
|
"page_size": page_size
|
|
672
680
|
}.compact
|
|
673
681
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -37,7 +37,7 @@ module Merge
|
|
|
37
37
|
# environment: Merge::Environment::PRODUCTION,
|
|
38
38
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
39
39
|
# )
|
|
40
|
-
# api.accounting.sync_status.list
|
|
40
|
+
# api.accounting.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
41
41
|
def list(cursor: nil, page_size: nil, request_options: nil)
|
|
42
42
|
response = @request_client.conn.get do |req|
|
|
43
43
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -93,7 +93,7 @@ module Merge
|
|
|
93
93
|
# environment: Merge::Environment::PRODUCTION,
|
|
94
94
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
95
95
|
# )
|
|
96
|
-
# api.accounting.sync_status.list
|
|
96
|
+
# api.accounting.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
97
97
|
def list(cursor: nil, page_size: nil, request_options: nil)
|
|
98
98
|
Async do
|
|
99
99
|
response = @request_client.conn.get do |req|
|
|
@@ -48,7 +48,7 @@ module Merge
|
|
|
48
48
|
# environment: Merge::Environment::PRODUCTION,
|
|
49
49
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
50
50
|
# )
|
|
51
|
-
# api.accounting.tax_rates.list
|
|
51
|
+
# api.accounting.tax_rates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
52
52
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
53
53
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
54
54
|
response = @request_client.conn.get do |req|
|
|
@@ -167,7 +167,7 @@ module Merge
|
|
|
167
167
|
# environment: Merge::Environment::PRODUCTION,
|
|
168
168
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
169
169
|
# )
|
|
170
|
-
# api.accounting.tax_rates.list
|
|
170
|
+
# api.accounting.tax_rates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
171
171
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
172
172
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
173
173
|
Async do
|