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
|
@@ -4,8 +4,12 @@ require_relative "../../../requests"
|
|
|
4
4
|
require "date"
|
|
5
5
|
require_relative "types/items_list_request_expand"
|
|
6
6
|
require_relative "../types/paginated_item_list"
|
|
7
|
+
require_relative "../types/item_request_request"
|
|
8
|
+
require_relative "../types/item_response"
|
|
7
9
|
require_relative "types/items_retrieve_request_expand"
|
|
8
10
|
require_relative "../types/item"
|
|
11
|
+
require_relative "../types/patched_item_request_request"
|
|
12
|
+
require_relative "../types/meta_response"
|
|
9
13
|
require "async"
|
|
10
14
|
|
|
11
15
|
module Merge
|
|
@@ -53,7 +57,7 @@ module Merge
|
|
|
53
57
|
# environment: Merge::Environment::PRODUCTION,
|
|
54
58
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
55
59
|
# )
|
|
56
|
-
# api.accounting.items.list
|
|
60
|
+
# api.accounting.items.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
57
61
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
58
62
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
|
59
63
|
response = @request_client.conn.get do |req|
|
|
@@ -90,6 +94,53 @@ module Merge
|
|
|
90
94
|
Merge::Accounting::PaginatedItemList.from_json(json_object: response.body)
|
|
91
95
|
end
|
|
92
96
|
|
|
97
|
+
# Creates an `Item` object with the given values.
|
|
98
|
+
#
|
|
99
|
+
# @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response.
|
|
100
|
+
# @param run_async [Boolean] Whether or not third-party updates should be run asynchronously.
|
|
101
|
+
# @param model [Hash] Request of type Merge::Accounting::ItemRequestRequest, as a Hash
|
|
102
|
+
# * :name (String)
|
|
103
|
+
# * :status (Merge::Accounting::Status7D1Enum)
|
|
104
|
+
# * :type (Merge::Accounting::Type2BbEnum)
|
|
105
|
+
# * :unit_price (Float)
|
|
106
|
+
# * :purchase_price (Float)
|
|
107
|
+
# * :purchase_account (Hash)
|
|
108
|
+
# * :sales_account (Hash)
|
|
109
|
+
# * :company (Hash)
|
|
110
|
+
# * :purchase_tax_rate (Hash)
|
|
111
|
+
# * :sales_tax_rate (Hash)
|
|
112
|
+
# * :integration_params (Hash{String => Object})
|
|
113
|
+
# * :linked_account_params (Hash{String => Object})
|
|
114
|
+
# @param request_options [Merge::RequestOptions]
|
|
115
|
+
# @return [Merge::Accounting::ItemResponse]
|
|
116
|
+
# @example
|
|
117
|
+
# api = Merge::Client.new(
|
|
118
|
+
# base_url: "https://api.example.com",
|
|
119
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
120
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
121
|
+
# )
|
|
122
|
+
# api.accounting.items.create(model: { })
|
|
123
|
+
def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
|
|
124
|
+
response = @request_client.conn.post do |req|
|
|
125
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
126
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
127
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
128
|
+
req.headers = {
|
|
129
|
+
**(req.headers || {}),
|
|
130
|
+
**@request_client.get_headers,
|
|
131
|
+
**(request_options&.additional_headers || {})
|
|
132
|
+
}.compact
|
|
133
|
+
req.params = {
|
|
134
|
+
**(request_options&.additional_query_parameters || {}),
|
|
135
|
+
"is_debug_mode": is_debug_mode,
|
|
136
|
+
"run_async": run_async
|
|
137
|
+
}.compact
|
|
138
|
+
req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact
|
|
139
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items"
|
|
140
|
+
end
|
|
141
|
+
Merge::Accounting::ItemResponse.from_json(json_object: response.body)
|
|
142
|
+
end
|
|
143
|
+
|
|
93
144
|
# Returns an `Item` object with the given `id`.
|
|
94
145
|
#
|
|
95
146
|
# @param id [String]
|
|
@@ -138,6 +189,119 @@ module Merge
|
|
|
138
189
|
end
|
|
139
190
|
Merge::Accounting::Item.from_json(json_object: response.body)
|
|
140
191
|
end
|
|
192
|
+
|
|
193
|
+
# Updates an `Item` object with the given `id`.
|
|
194
|
+
#
|
|
195
|
+
# @param id [String]
|
|
196
|
+
# @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response.
|
|
197
|
+
# @param run_async [Boolean] Whether or not third-party updates should be run asynchronously.
|
|
198
|
+
# @param model [Hash] Request of type Merge::Accounting::PatchedItemRequestRequest, as a Hash
|
|
199
|
+
# * :name (String)
|
|
200
|
+
# * :status (Merge::Accounting::Status7D1Enum)
|
|
201
|
+
# * :type (Merge::Accounting::Type2BbEnum)
|
|
202
|
+
# * :unit_price (Float)
|
|
203
|
+
# * :purchase_price (Float)
|
|
204
|
+
# * :purchase_account (String)
|
|
205
|
+
# * :sales_account (String)
|
|
206
|
+
# * :company (String)
|
|
207
|
+
# * :purchase_tax_rate (String)
|
|
208
|
+
# * :sales_tax_rate (String)
|
|
209
|
+
# * :integration_params (Hash{String => Object})
|
|
210
|
+
# * :linked_account_params (Hash{String => Object})
|
|
211
|
+
# @param request_options [Merge::RequestOptions]
|
|
212
|
+
# @return [Merge::Accounting::ItemResponse]
|
|
213
|
+
# @example
|
|
214
|
+
# api = Merge::Client.new(
|
|
215
|
+
# base_url: "https://api.example.com",
|
|
216
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
217
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
218
|
+
# )
|
|
219
|
+
# api.accounting.items.partial_update(id: "id", model: { })
|
|
220
|
+
def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_options: nil)
|
|
221
|
+
response = @request_client.conn.patch do |req|
|
|
222
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
223
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
224
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
225
|
+
req.headers = {
|
|
226
|
+
**(req.headers || {}),
|
|
227
|
+
**@request_client.get_headers,
|
|
228
|
+
**(request_options&.additional_headers || {})
|
|
229
|
+
}.compact
|
|
230
|
+
req.params = {
|
|
231
|
+
**(request_options&.additional_query_parameters || {}),
|
|
232
|
+
"is_debug_mode": is_debug_mode,
|
|
233
|
+
"run_async": run_async
|
|
234
|
+
}.compact
|
|
235
|
+
req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact
|
|
236
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items/#{id}"
|
|
237
|
+
end
|
|
238
|
+
Merge::Accounting::ItemResponse.from_json(json_object: response.body)
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# Returns metadata for `Item` PATCHs.
|
|
242
|
+
#
|
|
243
|
+
# @param id [String]
|
|
244
|
+
# @param request_options [Merge::RequestOptions]
|
|
245
|
+
# @return [Merge::Accounting::MetaResponse]
|
|
246
|
+
# @example
|
|
247
|
+
# api = Merge::Client.new(
|
|
248
|
+
# base_url: "https://api.example.com",
|
|
249
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
250
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
251
|
+
# )
|
|
252
|
+
# api.accounting.items.meta_patch_retrieve(id: "id")
|
|
253
|
+
def meta_patch_retrieve(id:, request_options: nil)
|
|
254
|
+
response = @request_client.conn.get do |req|
|
|
255
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
256
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
257
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
258
|
+
req.headers = {
|
|
259
|
+
**(req.headers || {}),
|
|
260
|
+
**@request_client.get_headers,
|
|
261
|
+
**(request_options&.additional_headers || {})
|
|
262
|
+
}.compact
|
|
263
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
264
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
265
|
+
end
|
|
266
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
267
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
268
|
+
end
|
|
269
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items/meta/patch/#{id}"
|
|
270
|
+
end
|
|
271
|
+
Merge::Accounting::MetaResponse.from_json(json_object: response.body)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Returns metadata for `Item` POSTs.
|
|
275
|
+
#
|
|
276
|
+
# @param request_options [Merge::RequestOptions]
|
|
277
|
+
# @return [Merge::Accounting::MetaResponse]
|
|
278
|
+
# @example
|
|
279
|
+
# api = Merge::Client.new(
|
|
280
|
+
# base_url: "https://api.example.com",
|
|
281
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
282
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
283
|
+
# )
|
|
284
|
+
# api.accounting.items.meta_post_retrieve
|
|
285
|
+
def meta_post_retrieve(request_options: nil)
|
|
286
|
+
response = @request_client.conn.get do |req|
|
|
287
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
288
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
289
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
290
|
+
req.headers = {
|
|
291
|
+
**(req.headers || {}),
|
|
292
|
+
**@request_client.get_headers,
|
|
293
|
+
**(request_options&.additional_headers || {})
|
|
294
|
+
}.compact
|
|
295
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
296
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
297
|
+
end
|
|
298
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
299
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
300
|
+
end
|
|
301
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items/meta/post"
|
|
302
|
+
end
|
|
303
|
+
Merge::Accounting::MetaResponse.from_json(json_object: response.body)
|
|
304
|
+
end
|
|
141
305
|
end
|
|
142
306
|
|
|
143
307
|
class AsyncItemsClient
|
|
@@ -183,7 +347,7 @@ module Merge
|
|
|
183
347
|
# environment: Merge::Environment::PRODUCTION,
|
|
184
348
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
185
349
|
# )
|
|
186
|
-
# api.accounting.items.list
|
|
350
|
+
# api.accounting.items.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
187
351
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
188
352
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
|
189
353
|
Async do
|
|
@@ -222,6 +386,55 @@ module Merge
|
|
|
222
386
|
end
|
|
223
387
|
end
|
|
224
388
|
|
|
389
|
+
# Creates an `Item` object with the given values.
|
|
390
|
+
#
|
|
391
|
+
# @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response.
|
|
392
|
+
# @param run_async [Boolean] Whether or not third-party updates should be run asynchronously.
|
|
393
|
+
# @param model [Hash] Request of type Merge::Accounting::ItemRequestRequest, as a Hash
|
|
394
|
+
# * :name (String)
|
|
395
|
+
# * :status (Merge::Accounting::Status7D1Enum)
|
|
396
|
+
# * :type (Merge::Accounting::Type2BbEnum)
|
|
397
|
+
# * :unit_price (Float)
|
|
398
|
+
# * :purchase_price (Float)
|
|
399
|
+
# * :purchase_account (Hash)
|
|
400
|
+
# * :sales_account (Hash)
|
|
401
|
+
# * :company (Hash)
|
|
402
|
+
# * :purchase_tax_rate (Hash)
|
|
403
|
+
# * :sales_tax_rate (Hash)
|
|
404
|
+
# * :integration_params (Hash{String => Object})
|
|
405
|
+
# * :linked_account_params (Hash{String => Object})
|
|
406
|
+
# @param request_options [Merge::RequestOptions]
|
|
407
|
+
# @return [Merge::Accounting::ItemResponse]
|
|
408
|
+
# @example
|
|
409
|
+
# api = Merge::Client.new(
|
|
410
|
+
# base_url: "https://api.example.com",
|
|
411
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
412
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
413
|
+
# )
|
|
414
|
+
# api.accounting.items.create(model: { })
|
|
415
|
+
def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil)
|
|
416
|
+
Async do
|
|
417
|
+
response = @request_client.conn.post do |req|
|
|
418
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
419
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
420
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
421
|
+
req.headers = {
|
|
422
|
+
**(req.headers || {}),
|
|
423
|
+
**@request_client.get_headers,
|
|
424
|
+
**(request_options&.additional_headers || {})
|
|
425
|
+
}.compact
|
|
426
|
+
req.params = {
|
|
427
|
+
**(request_options&.additional_query_parameters || {}),
|
|
428
|
+
"is_debug_mode": is_debug_mode,
|
|
429
|
+
"run_async": run_async
|
|
430
|
+
}.compact
|
|
431
|
+
req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact
|
|
432
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items"
|
|
433
|
+
end
|
|
434
|
+
Merge::Accounting::ItemResponse.from_json(json_object: response.body)
|
|
435
|
+
end
|
|
436
|
+
end
|
|
437
|
+
|
|
225
438
|
# Returns an `Item` object with the given `id`.
|
|
226
439
|
#
|
|
227
440
|
# @param id [String]
|
|
@@ -272,6 +485,125 @@ module Merge
|
|
|
272
485
|
Merge::Accounting::Item.from_json(json_object: response.body)
|
|
273
486
|
end
|
|
274
487
|
end
|
|
488
|
+
|
|
489
|
+
# Updates an `Item` object with the given `id`.
|
|
490
|
+
#
|
|
491
|
+
# @param id [String]
|
|
492
|
+
# @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response.
|
|
493
|
+
# @param run_async [Boolean] Whether or not third-party updates should be run asynchronously.
|
|
494
|
+
# @param model [Hash] Request of type Merge::Accounting::PatchedItemRequestRequest, as a Hash
|
|
495
|
+
# * :name (String)
|
|
496
|
+
# * :status (Merge::Accounting::Status7D1Enum)
|
|
497
|
+
# * :type (Merge::Accounting::Type2BbEnum)
|
|
498
|
+
# * :unit_price (Float)
|
|
499
|
+
# * :purchase_price (Float)
|
|
500
|
+
# * :purchase_account (String)
|
|
501
|
+
# * :sales_account (String)
|
|
502
|
+
# * :company (String)
|
|
503
|
+
# * :purchase_tax_rate (String)
|
|
504
|
+
# * :sales_tax_rate (String)
|
|
505
|
+
# * :integration_params (Hash{String => Object})
|
|
506
|
+
# * :linked_account_params (Hash{String => Object})
|
|
507
|
+
# @param request_options [Merge::RequestOptions]
|
|
508
|
+
# @return [Merge::Accounting::ItemResponse]
|
|
509
|
+
# @example
|
|
510
|
+
# api = Merge::Client.new(
|
|
511
|
+
# base_url: "https://api.example.com",
|
|
512
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
513
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
514
|
+
# )
|
|
515
|
+
# api.accounting.items.partial_update(id: "id", model: { })
|
|
516
|
+
def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_options: nil)
|
|
517
|
+
Async do
|
|
518
|
+
response = @request_client.conn.patch do |req|
|
|
519
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
520
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
521
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
522
|
+
req.headers = {
|
|
523
|
+
**(req.headers || {}),
|
|
524
|
+
**@request_client.get_headers,
|
|
525
|
+
**(request_options&.additional_headers || {})
|
|
526
|
+
}.compact
|
|
527
|
+
req.params = {
|
|
528
|
+
**(request_options&.additional_query_parameters || {}),
|
|
529
|
+
"is_debug_mode": is_debug_mode,
|
|
530
|
+
"run_async": run_async
|
|
531
|
+
}.compact
|
|
532
|
+
req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact
|
|
533
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items/#{id}"
|
|
534
|
+
end
|
|
535
|
+
Merge::Accounting::ItemResponse.from_json(json_object: response.body)
|
|
536
|
+
end
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# Returns metadata for `Item` PATCHs.
|
|
540
|
+
#
|
|
541
|
+
# @param id [String]
|
|
542
|
+
# @param request_options [Merge::RequestOptions]
|
|
543
|
+
# @return [Merge::Accounting::MetaResponse]
|
|
544
|
+
# @example
|
|
545
|
+
# api = Merge::Client.new(
|
|
546
|
+
# base_url: "https://api.example.com",
|
|
547
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
548
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
549
|
+
# )
|
|
550
|
+
# api.accounting.items.meta_patch_retrieve(id: "id")
|
|
551
|
+
def meta_patch_retrieve(id:, request_options: nil)
|
|
552
|
+
Async do
|
|
553
|
+
response = @request_client.conn.get do |req|
|
|
554
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
555
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
556
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
557
|
+
req.headers = {
|
|
558
|
+
**(req.headers || {}),
|
|
559
|
+
**@request_client.get_headers,
|
|
560
|
+
**(request_options&.additional_headers || {})
|
|
561
|
+
}.compact
|
|
562
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
563
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
564
|
+
end
|
|
565
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
566
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
567
|
+
end
|
|
568
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items/meta/patch/#{id}"
|
|
569
|
+
end
|
|
570
|
+
Merge::Accounting::MetaResponse.from_json(json_object: response.body)
|
|
571
|
+
end
|
|
572
|
+
end
|
|
573
|
+
|
|
574
|
+
# Returns metadata for `Item` POSTs.
|
|
575
|
+
#
|
|
576
|
+
# @param request_options [Merge::RequestOptions]
|
|
577
|
+
# @return [Merge::Accounting::MetaResponse]
|
|
578
|
+
# @example
|
|
579
|
+
# api = Merge::Client.new(
|
|
580
|
+
# base_url: "https://api.example.com",
|
|
581
|
+
# environment: Merge::Environment::PRODUCTION,
|
|
582
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
583
|
+
# )
|
|
584
|
+
# api.accounting.items.meta_post_retrieve
|
|
585
|
+
def meta_post_retrieve(request_options: nil)
|
|
586
|
+
Async do
|
|
587
|
+
response = @request_client.conn.get do |req|
|
|
588
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
589
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
590
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
591
|
+
req.headers = {
|
|
592
|
+
**(req.headers || {}),
|
|
593
|
+
**@request_client.get_headers,
|
|
594
|
+
**(request_options&.additional_headers || {})
|
|
595
|
+
}.compact
|
|
596
|
+
unless request_options.nil? || request_options&.additional_query_parameters.nil?
|
|
597
|
+
req.params = { **(request_options&.additional_query_parameters || {}) }.compact
|
|
598
|
+
end
|
|
599
|
+
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
600
|
+
req.body = { **(request_options&.additional_body_parameters || {}) }.compact
|
|
601
|
+
end
|
|
602
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/items/meta/post"
|
|
603
|
+
end
|
|
604
|
+
Merge::Accounting::MetaResponse.from_json(json_object: response.body)
|
|
605
|
+
end
|
|
606
|
+
end
|
|
275
607
|
end
|
|
276
608
|
end
|
|
277
609
|
end
|
|
@@ -57,7 +57,7 @@ module Merge
|
|
|
57
57
|
# environment: Merge::Environment::PRODUCTION,
|
|
58
58
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
59
59
|
# )
|
|
60
|
-
# api.accounting.journal_entries.list
|
|
60
|
+
# api.accounting.journal_entries.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
61
61
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
62
62
|
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)
|
|
63
63
|
response = @request_client.conn.get do |req|
|
|
@@ -203,6 +203,7 @@ module Merge
|
|
|
203
203
|
# contain some metadata but all other fields are null).
|
|
204
204
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
205
205
|
# is_common_model_field value
|
|
206
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
206
207
|
# @param page_size [Integer] Number of results to return per page.
|
|
207
208
|
# @param request_options [Merge::RequestOptions]
|
|
208
209
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -212,9 +213,9 @@ module Merge
|
|
|
212
213
|
# environment: Merge::Environment::PRODUCTION,
|
|
213
214
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
214
215
|
# )
|
|
215
|
-
# api.accounting.journal_entries.lines_remote_field_classes_list
|
|
216
|
+
# api.accounting.journal_entries.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
216
217
|
def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
217
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
218
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
218
219
|
response = @request_client.conn.get do |req|
|
|
219
220
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
220
221
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -231,6 +232,7 @@ module Merge
|
|
|
231
232
|
"include_remote_data": include_remote_data,
|
|
232
233
|
"include_shell_data": include_shell_data,
|
|
233
234
|
"is_common_model_field": is_common_model_field,
|
|
235
|
+
"is_custom": is_custom,
|
|
234
236
|
"page_size": page_size
|
|
235
237
|
}.compact
|
|
236
238
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -286,6 +288,7 @@ module Merge
|
|
|
286
288
|
# contain some metadata but all other fields are null).
|
|
287
289
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
288
290
|
# is_common_model_field value
|
|
291
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
289
292
|
# @param page_size [Integer] Number of results to return per page.
|
|
290
293
|
# @param request_options [Merge::RequestOptions]
|
|
291
294
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -295,9 +298,9 @@ module Merge
|
|
|
295
298
|
# environment: Merge::Environment::PRODUCTION,
|
|
296
299
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
297
300
|
# )
|
|
298
|
-
# api.accounting.journal_entries.remote_field_classes_list
|
|
301
|
+
# api.accounting.journal_entries.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
299
302
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
300
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
303
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
301
304
|
response = @request_client.conn.get do |req|
|
|
302
305
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
303
306
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -314,6 +317,7 @@ module Merge
|
|
|
314
317
|
"include_remote_data": include_remote_data,
|
|
315
318
|
"include_shell_data": include_shell_data,
|
|
316
319
|
"is_common_model_field": is_common_model_field,
|
|
320
|
+
"is_custom": is_custom,
|
|
317
321
|
"page_size": page_size
|
|
318
322
|
}.compact
|
|
319
323
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -368,7 +372,7 @@ module Merge
|
|
|
368
372
|
# environment: Merge::Environment::PRODUCTION,
|
|
369
373
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
370
374
|
# )
|
|
371
|
-
# api.accounting.journal_entries.list
|
|
375
|
+
# api.accounting.journal_entries.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
372
376
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
373
377
|
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)
|
|
374
378
|
Async do
|
|
@@ -520,6 +524,7 @@ module Merge
|
|
|
520
524
|
# contain some metadata but all other fields are null).
|
|
521
525
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
522
526
|
# is_common_model_field value
|
|
527
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
523
528
|
# @param page_size [Integer] Number of results to return per page.
|
|
524
529
|
# @param request_options [Merge::RequestOptions]
|
|
525
530
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -529,9 +534,9 @@ module Merge
|
|
|
529
534
|
# environment: Merge::Environment::PRODUCTION,
|
|
530
535
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
531
536
|
# )
|
|
532
|
-
# api.accounting.journal_entries.lines_remote_field_classes_list
|
|
537
|
+
# api.accounting.journal_entries.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
533
538
|
def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
534
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
539
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
535
540
|
Async do
|
|
536
541
|
response = @request_client.conn.get do |req|
|
|
537
542
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -549,6 +554,7 @@ module Merge
|
|
|
549
554
|
"include_remote_data": include_remote_data,
|
|
550
555
|
"include_shell_data": include_shell_data,
|
|
551
556
|
"is_common_model_field": is_common_model_field,
|
|
557
|
+
"is_custom": is_custom,
|
|
552
558
|
"page_size": page_size
|
|
553
559
|
}.compact
|
|
554
560
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -607,6 +613,7 @@ module Merge
|
|
|
607
613
|
# contain some metadata but all other fields are null).
|
|
608
614
|
# @param is_common_model_field [Boolean] If provided, will only return remote field classes with this
|
|
609
615
|
# is_common_model_field value
|
|
616
|
+
# @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value
|
|
610
617
|
# @param page_size [Integer] Number of results to return per page.
|
|
611
618
|
# @param request_options [Merge::RequestOptions]
|
|
612
619
|
# @return [Merge::Accounting::PaginatedRemoteFieldClassList]
|
|
@@ -616,9 +623,9 @@ module Merge
|
|
|
616
623
|
# environment: Merge::Environment::PRODUCTION,
|
|
617
624
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
618
625
|
# )
|
|
619
|
-
# api.accounting.journal_entries.remote_field_classes_list
|
|
626
|
+
# api.accounting.journal_entries.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
620
627
|
def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil,
|
|
621
|
-
include_shell_data: nil, is_common_model_field: nil, page_size: nil, request_options: nil)
|
|
628
|
+
include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil)
|
|
622
629
|
Async do
|
|
623
630
|
response = @request_client.conn.get do |req|
|
|
624
631
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -636,6 +643,7 @@ module Merge
|
|
|
636
643
|
"include_remote_data": include_remote_data,
|
|
637
644
|
"include_shell_data": include_shell_data,
|
|
638
645
|
"is_common_model_field": is_common_model_field,
|
|
646
|
+
"is_custom": is_custom,
|
|
639
647
|
"page_size": page_size
|
|
640
648
|
}.compact
|
|
641
649
|
unless request_options.nil? || request_options&.additional_body_parameters.nil?
|
|
@@ -56,7 +56,7 @@ module Merge
|
|
|
56
56
|
# environment: Merge::Environment::PRODUCTION,
|
|
57
57
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
58
58
|
# )
|
|
59
|
-
# api.accounting.linked_accounts.list
|
|
59
|
+
# api.accounting.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
60
60
|
def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil,
|
|
61
61
|
end_user_origin_id: nil, end_user_origin_ids: nil, id: nil, ids: nil, include_duplicates: nil, integration_name: nil, is_test_account: nil, page_size: nil, status: nil, request_options: nil)
|
|
62
62
|
response = @request_client.conn.get do |req|
|
|
@@ -142,7 +142,7 @@ module Merge
|
|
|
142
142
|
# environment: Merge::Environment::PRODUCTION,
|
|
143
143
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
144
144
|
# )
|
|
145
|
-
# api.accounting.linked_accounts.list
|
|
145
|
+
# api.accounting.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
146
146
|
def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil,
|
|
147
147
|
end_user_origin_id: nil, end_user_origin_ids: nil, id: nil, ids: nil, include_duplicates: nil, integration_name: nil, is_test_account: nil, page_size: nil, status: nil, request_options: nil)
|
|
148
148
|
Async do
|
|
@@ -37,7 +37,7 @@ module Merge
|
|
|
37
37
|
# environment: Merge::Environment::PRODUCTION,
|
|
38
38
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
39
39
|
# )
|
|
40
|
-
# api.accounting.payment_methods.list
|
|
40
|
+
# api.accounting.payment_methods.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
41
41
|
def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil,
|
|
42
42
|
page_size: nil, request_options: nil)
|
|
43
43
|
response = @request_client.conn.get do |req|
|
|
@@ -135,7 +135,7 @@ module Merge
|
|
|
135
135
|
# environment: Merge::Environment::PRODUCTION,
|
|
136
136
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
137
137
|
# )
|
|
138
|
-
# api.accounting.payment_methods.list
|
|
138
|
+
# api.accounting.payment_methods.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
139
139
|
def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil,
|
|
140
140
|
page_size: nil, request_options: nil)
|
|
141
141
|
Async do
|
|
@@ -39,7 +39,7 @@ module Merge
|
|
|
39
39
|
# environment: Merge::Environment::PRODUCTION,
|
|
40
40
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
41
41
|
# )
|
|
42
|
-
# api.accounting.payment_terms.list
|
|
42
|
+
# api.accounting.payment_terms.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
43
43
|
def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil,
|
|
44
44
|
page_size: nil, request_options: nil)
|
|
45
45
|
response = @request_client.conn.get do |req|
|
|
@@ -143,7 +143,7 @@ module Merge
|
|
|
143
143
|
# environment: Merge::Environment::PRODUCTION,
|
|
144
144
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
145
145
|
# )
|
|
146
|
-
# api.accounting.payment_terms.list
|
|
146
|
+
# api.accounting.payment_terms.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
147
147
|
def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil,
|
|
148
148
|
page_size: nil, request_options: nil)
|
|
149
149
|
Async do
|