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
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require "date"
|
|
4
4
|
require_relative "vendor_credit_line_account"
|
|
5
|
+
require_relative "vendor_credit_line_project"
|
|
6
|
+
require_relative "vendor_credit_line_contact"
|
|
5
7
|
require "ostruct"
|
|
6
8
|
require "json"
|
|
7
9
|
|
|
@@ -34,6 +36,10 @@ module Merge
|
|
|
34
36
|
attr_reader :account
|
|
35
37
|
# @return [String] The company the line belongs to.
|
|
36
38
|
attr_reader :company
|
|
39
|
+
# @return [Merge::Accounting::VendorCreditLineProject]
|
|
40
|
+
attr_reader :project
|
|
41
|
+
# @return [Merge::Accounting::VendorCreditLineContact]
|
|
42
|
+
attr_reader :contact
|
|
37
43
|
# @return [String] The tax rate that applies to this line item.
|
|
38
44
|
attr_reader :tax_rate
|
|
39
45
|
# @return [String] The vendor credit line item's exchange rate.
|
|
@@ -61,6 +67,8 @@ module Merge
|
|
|
61
67
|
# @param description [String] The line's description.
|
|
62
68
|
# @param account [Merge::Accounting::VendorCreditLineAccount] The line's account.
|
|
63
69
|
# @param company [String] The company the line belongs to.
|
|
70
|
+
# @param project [Merge::Accounting::VendorCreditLineProject]
|
|
71
|
+
# @param contact [Merge::Accounting::VendorCreditLineContact]
|
|
64
72
|
# @param tax_rate [String] The tax rate that applies to this line item.
|
|
65
73
|
# @param exchange_rate [String] The vendor credit line item's exchange rate.
|
|
66
74
|
# @param remote_was_deleted [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
@@ -70,7 +78,7 @@ module Merge
|
|
|
70
78
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
71
79
|
# @return [Merge::Accounting::VendorCreditLine]
|
|
72
80
|
def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, net_amount: OMIT,
|
|
73
|
-
tracking_category: OMIT, tracking_categories: OMIT, description: OMIT, account: OMIT, company: OMIT, tax_rate: OMIT, exchange_rate: OMIT, remote_was_deleted: OMIT, additional_properties: nil)
|
|
81
|
+
tracking_category: OMIT, tracking_categories: OMIT, description: OMIT, account: OMIT, company: OMIT, project: OMIT, contact: OMIT, tax_rate: OMIT, exchange_rate: OMIT, remote_was_deleted: OMIT, additional_properties: nil)
|
|
74
82
|
@id = id if id != OMIT
|
|
75
83
|
@remote_id = remote_id if remote_id != OMIT
|
|
76
84
|
@created_at = created_at if created_at != OMIT
|
|
@@ -81,6 +89,8 @@ module Merge
|
|
|
81
89
|
@description = description if description != OMIT
|
|
82
90
|
@account = account if account != OMIT
|
|
83
91
|
@company = company if company != OMIT
|
|
92
|
+
@project = project if project != OMIT
|
|
93
|
+
@contact = contact if contact != OMIT
|
|
84
94
|
@tax_rate = tax_rate if tax_rate != OMIT
|
|
85
95
|
@exchange_rate = exchange_rate if exchange_rate != OMIT
|
|
86
96
|
@remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT
|
|
@@ -96,6 +106,8 @@ module Merge
|
|
|
96
106
|
"description": description,
|
|
97
107
|
"account": account,
|
|
98
108
|
"company": company,
|
|
109
|
+
"project": project,
|
|
110
|
+
"contact": contact,
|
|
99
111
|
"tax_rate": tax_rate,
|
|
100
112
|
"exchange_rate": exchange_rate,
|
|
101
113
|
"remote_was_deleted": remote_was_deleted
|
|
@@ -126,6 +138,18 @@ module Merge
|
|
|
126
138
|
account = Merge::Accounting::VendorCreditLineAccount.from_json(json_object: account)
|
|
127
139
|
end
|
|
128
140
|
company = parsed_json["company"]
|
|
141
|
+
if parsed_json["project"].nil?
|
|
142
|
+
project = nil
|
|
143
|
+
else
|
|
144
|
+
project = parsed_json["project"].to_json
|
|
145
|
+
project = Merge::Accounting::VendorCreditLineProject.from_json(json_object: project)
|
|
146
|
+
end
|
|
147
|
+
if parsed_json["contact"].nil?
|
|
148
|
+
contact = nil
|
|
149
|
+
else
|
|
150
|
+
contact = parsed_json["contact"].to_json
|
|
151
|
+
contact = Merge::Accounting::VendorCreditLineContact.from_json(json_object: contact)
|
|
152
|
+
end
|
|
129
153
|
tax_rate = parsed_json["tax_rate"]
|
|
130
154
|
exchange_rate = parsed_json["exchange_rate"]
|
|
131
155
|
remote_was_deleted = parsed_json["remote_was_deleted"]
|
|
@@ -140,6 +164,8 @@ module Merge
|
|
|
140
164
|
description: description,
|
|
141
165
|
account: account,
|
|
142
166
|
company: company,
|
|
167
|
+
project: project,
|
|
168
|
+
contact: contact,
|
|
143
169
|
tax_rate: tax_rate,
|
|
144
170
|
exchange_rate: exchange_rate,
|
|
145
171
|
remote_was_deleted: remote_was_deleted,
|
|
@@ -171,6 +197,8 @@ module Merge
|
|
|
171
197
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
172
198
|
obj.account.nil? || Merge::Accounting::VendorCreditLineAccount.validate_raw(obj: obj.account)
|
|
173
199
|
obj.company&.is_a?(String) != false || raise("Passed value for field obj.company is not the expected type, validation failed.")
|
|
200
|
+
obj.project.nil? || Merge::Accounting::VendorCreditLineProject.validate_raw(obj: obj.project)
|
|
201
|
+
obj.contact.nil? || Merge::Accounting::VendorCreditLineContact.validate_raw(obj: obj.contact)
|
|
174
202
|
obj.tax_rate&.is_a?(String) != false || raise("Passed value for field obj.tax_rate is not the expected type, validation failed.")
|
|
175
203
|
obj.exchange_rate&.is_a?(String) != false || raise("Passed value for field obj.exchange_rate is not the expected type, validation failed.")
|
|
176
204
|
obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.")
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "json"
|
|
4
|
+
require_relative "contact"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Accounting
|
|
8
|
+
class VendorCreditLineContact
|
|
9
|
+
# Deserialize a JSON object to an instance of VendorCreditLineContact
|
|
10
|
+
#
|
|
11
|
+
# @param json_object [String]
|
|
12
|
+
# @return [Merge::Accounting::VendorCreditLineContact]
|
|
13
|
+
def self.from_json(json_object:)
|
|
14
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
15
|
+
begin
|
|
16
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
17
|
+
return struct unless struct.nil?
|
|
18
|
+
|
|
19
|
+
return nil
|
|
20
|
+
rescue StandardError
|
|
21
|
+
# noop
|
|
22
|
+
end
|
|
23
|
+
begin
|
|
24
|
+
Merge::Accounting::Contact.validate_raw(obj: struct)
|
|
25
|
+
return Merge::Accounting::Contact.from_json(json_object: struct) unless struct.nil?
|
|
26
|
+
|
|
27
|
+
return nil
|
|
28
|
+
rescue StandardError
|
|
29
|
+
# noop
|
|
30
|
+
end
|
|
31
|
+
struct
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
35
|
+
# hash and check each fields type against the current object's property
|
|
36
|
+
# definitions.
|
|
37
|
+
#
|
|
38
|
+
# @param obj [Object]
|
|
39
|
+
# @return [Void]
|
|
40
|
+
def self.validate_raw(obj:)
|
|
41
|
+
begin
|
|
42
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
43
|
+
rescue StandardError
|
|
44
|
+
# noop
|
|
45
|
+
end
|
|
46
|
+
begin
|
|
47
|
+
return Merge::Accounting::Contact.validate_raw(obj: obj)
|
|
48
|
+
rescue StandardError
|
|
49
|
+
# noop
|
|
50
|
+
end
|
|
51
|
+
raise("Passed value matched no type within the union, validation failed.")
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "json"
|
|
4
|
+
require_relative "project"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Accounting
|
|
8
|
+
class VendorCreditLineProject
|
|
9
|
+
# Deserialize a JSON object to an instance of VendorCreditLineProject
|
|
10
|
+
#
|
|
11
|
+
# @param json_object [String]
|
|
12
|
+
# @return [Merge::Accounting::VendorCreditLineProject]
|
|
13
|
+
def self.from_json(json_object:)
|
|
14
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
15
|
+
begin
|
|
16
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
17
|
+
return struct unless struct.nil?
|
|
18
|
+
|
|
19
|
+
return nil
|
|
20
|
+
rescue StandardError
|
|
21
|
+
# noop
|
|
22
|
+
end
|
|
23
|
+
begin
|
|
24
|
+
Merge::Accounting::Project.validate_raw(obj: struct)
|
|
25
|
+
return Merge::Accounting::Project.from_json(json_object: struct) unless struct.nil?
|
|
26
|
+
|
|
27
|
+
return nil
|
|
28
|
+
rescue StandardError
|
|
29
|
+
# noop
|
|
30
|
+
end
|
|
31
|
+
struct
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
35
|
+
# hash and check each fields type against the current object's property
|
|
36
|
+
# definitions.
|
|
37
|
+
#
|
|
38
|
+
# @param obj [Object]
|
|
39
|
+
# @return [Void]
|
|
40
|
+
def self.validate_raw(obj:)
|
|
41
|
+
begin
|
|
42
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
43
|
+
rescue StandardError
|
|
44
|
+
# noop
|
|
45
|
+
end
|
|
46
|
+
begin
|
|
47
|
+
return Merge::Accounting::Project.validate_raw(obj: obj)
|
|
48
|
+
rescue StandardError
|
|
49
|
+
# noop
|
|
50
|
+
end
|
|
51
|
+
raise("Passed value matched no type within the union, validation failed.")
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require_relative "vendor_credit_line_request_account"
|
|
4
|
+
require_relative "vendor_credit_line_request_project"
|
|
5
|
+
require_relative "vendor_credit_line_request_contact"
|
|
4
6
|
require "ostruct"
|
|
5
7
|
require "json"
|
|
6
8
|
|
|
@@ -27,6 +29,10 @@ module Merge
|
|
|
27
29
|
attr_reader :account
|
|
28
30
|
# @return [String] The company the line belongs to.
|
|
29
31
|
attr_reader :company
|
|
32
|
+
# @return [Merge::Accounting::VendorCreditLineRequestProject]
|
|
33
|
+
attr_reader :project
|
|
34
|
+
# @return [Merge::Accounting::VendorCreditLineRequestContact]
|
|
35
|
+
attr_reader :contact
|
|
30
36
|
# @return [String] The tax rate that applies to this line item.
|
|
31
37
|
attr_reader :tax_rate
|
|
32
38
|
# @return [String] The vendor credit line item's exchange rate.
|
|
@@ -50,6 +56,8 @@ module Merge
|
|
|
50
56
|
# @param description [String] The line's description.
|
|
51
57
|
# @param account [Merge::Accounting::VendorCreditLineRequestAccount] The line's account.
|
|
52
58
|
# @param company [String] The company the line belongs to.
|
|
59
|
+
# @param project [Merge::Accounting::VendorCreditLineRequestProject]
|
|
60
|
+
# @param contact [Merge::Accounting::VendorCreditLineRequestContact]
|
|
53
61
|
# @param tax_rate [String] The tax rate that applies to this line item.
|
|
54
62
|
# @param exchange_rate [String] The vendor credit line item's exchange rate.
|
|
55
63
|
# @param integration_params [Hash{String => Object}]
|
|
@@ -57,7 +65,7 @@ module Merge
|
|
|
57
65
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
58
66
|
# @return [Merge::Accounting::VendorCreditLineRequest]
|
|
59
67
|
def initialize(remote_id: OMIT, net_amount: OMIT, tracking_category: OMIT, tracking_categories: OMIT,
|
|
60
|
-
description: OMIT, account: OMIT, company: OMIT, tax_rate: OMIT, exchange_rate: OMIT, integration_params: OMIT, linked_account_params: OMIT, additional_properties: nil)
|
|
68
|
+
description: OMIT, account: OMIT, company: OMIT, project: OMIT, contact: OMIT, tax_rate: OMIT, exchange_rate: OMIT, integration_params: OMIT, linked_account_params: OMIT, additional_properties: nil)
|
|
61
69
|
@remote_id = remote_id if remote_id != OMIT
|
|
62
70
|
@net_amount = net_amount if net_amount != OMIT
|
|
63
71
|
@tracking_category = tracking_category if tracking_category != OMIT
|
|
@@ -65,6 +73,8 @@ module Merge
|
|
|
65
73
|
@description = description if description != OMIT
|
|
66
74
|
@account = account if account != OMIT
|
|
67
75
|
@company = company if company != OMIT
|
|
76
|
+
@project = project if project != OMIT
|
|
77
|
+
@contact = contact if contact != OMIT
|
|
68
78
|
@tax_rate = tax_rate if tax_rate != OMIT
|
|
69
79
|
@exchange_rate = exchange_rate if exchange_rate != OMIT
|
|
70
80
|
@integration_params = integration_params if integration_params != OMIT
|
|
@@ -78,6 +88,8 @@ module Merge
|
|
|
78
88
|
"description": description,
|
|
79
89
|
"account": account,
|
|
80
90
|
"company": company,
|
|
91
|
+
"project": project,
|
|
92
|
+
"contact": contact,
|
|
81
93
|
"tax_rate": tax_rate,
|
|
82
94
|
"exchange_rate": exchange_rate,
|
|
83
95
|
"integration_params": integration_params,
|
|
@@ -106,6 +118,18 @@ module Merge
|
|
|
106
118
|
account = Merge::Accounting::VendorCreditLineRequestAccount.from_json(json_object: account)
|
|
107
119
|
end
|
|
108
120
|
company = parsed_json["company"]
|
|
121
|
+
if parsed_json["project"].nil?
|
|
122
|
+
project = nil
|
|
123
|
+
else
|
|
124
|
+
project = parsed_json["project"].to_json
|
|
125
|
+
project = Merge::Accounting::VendorCreditLineRequestProject.from_json(json_object: project)
|
|
126
|
+
end
|
|
127
|
+
if parsed_json["contact"].nil?
|
|
128
|
+
contact = nil
|
|
129
|
+
else
|
|
130
|
+
contact = parsed_json["contact"].to_json
|
|
131
|
+
contact = Merge::Accounting::VendorCreditLineRequestContact.from_json(json_object: contact)
|
|
132
|
+
end
|
|
109
133
|
tax_rate = parsed_json["tax_rate"]
|
|
110
134
|
exchange_rate = parsed_json["exchange_rate"]
|
|
111
135
|
integration_params = parsed_json["integration_params"]
|
|
@@ -118,6 +142,8 @@ module Merge
|
|
|
118
142
|
description: description,
|
|
119
143
|
account: account,
|
|
120
144
|
company: company,
|
|
145
|
+
project: project,
|
|
146
|
+
contact: contact,
|
|
121
147
|
tax_rate: tax_rate,
|
|
122
148
|
exchange_rate: exchange_rate,
|
|
123
149
|
integration_params: integration_params,
|
|
@@ -147,6 +173,8 @@ module Merge
|
|
|
147
173
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
|
148
174
|
obj.account.nil? || Merge::Accounting::VendorCreditLineRequestAccount.validate_raw(obj: obj.account)
|
|
149
175
|
obj.company&.is_a?(String) != false || raise("Passed value for field obj.company is not the expected type, validation failed.")
|
|
176
|
+
obj.project.nil? || Merge::Accounting::VendorCreditLineRequestProject.validate_raw(obj: obj.project)
|
|
177
|
+
obj.contact.nil? || Merge::Accounting::VendorCreditLineRequestContact.validate_raw(obj: obj.contact)
|
|
150
178
|
obj.tax_rate&.is_a?(String) != false || raise("Passed value for field obj.tax_rate is not the expected type, validation failed.")
|
|
151
179
|
obj.exchange_rate&.is_a?(String) != false || raise("Passed value for field obj.exchange_rate is not the expected type, validation failed.")
|
|
152
180
|
obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.")
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "json"
|
|
4
|
+
require_relative "contact"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Accounting
|
|
8
|
+
class VendorCreditLineRequestContact
|
|
9
|
+
# Deserialize a JSON object to an instance of VendorCreditLineRequestContact
|
|
10
|
+
#
|
|
11
|
+
# @param json_object [String]
|
|
12
|
+
# @return [Merge::Accounting::VendorCreditLineRequestContact]
|
|
13
|
+
def self.from_json(json_object:)
|
|
14
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
15
|
+
begin
|
|
16
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
17
|
+
return struct unless struct.nil?
|
|
18
|
+
|
|
19
|
+
return nil
|
|
20
|
+
rescue StandardError
|
|
21
|
+
# noop
|
|
22
|
+
end
|
|
23
|
+
begin
|
|
24
|
+
Merge::Accounting::Contact.validate_raw(obj: struct)
|
|
25
|
+
return Merge::Accounting::Contact.from_json(json_object: struct) unless struct.nil?
|
|
26
|
+
|
|
27
|
+
return nil
|
|
28
|
+
rescue StandardError
|
|
29
|
+
# noop
|
|
30
|
+
end
|
|
31
|
+
struct
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
35
|
+
# hash and check each fields type against the current object's property
|
|
36
|
+
# definitions.
|
|
37
|
+
#
|
|
38
|
+
# @param obj [Object]
|
|
39
|
+
# @return [Void]
|
|
40
|
+
def self.validate_raw(obj:)
|
|
41
|
+
begin
|
|
42
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
43
|
+
rescue StandardError
|
|
44
|
+
# noop
|
|
45
|
+
end
|
|
46
|
+
begin
|
|
47
|
+
return Merge::Accounting::Contact.validate_raw(obj: obj)
|
|
48
|
+
rescue StandardError
|
|
49
|
+
# noop
|
|
50
|
+
end
|
|
51
|
+
raise("Passed value matched no type within the union, validation failed.")
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "json"
|
|
4
|
+
require_relative "project"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Accounting
|
|
8
|
+
class VendorCreditLineRequestProject
|
|
9
|
+
# Deserialize a JSON object to an instance of VendorCreditLineRequestProject
|
|
10
|
+
#
|
|
11
|
+
# @param json_object [String]
|
|
12
|
+
# @return [Merge::Accounting::VendorCreditLineRequestProject]
|
|
13
|
+
def self.from_json(json_object:)
|
|
14
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
15
|
+
begin
|
|
16
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
|
17
|
+
return struct unless struct.nil?
|
|
18
|
+
|
|
19
|
+
return nil
|
|
20
|
+
rescue StandardError
|
|
21
|
+
# noop
|
|
22
|
+
end
|
|
23
|
+
begin
|
|
24
|
+
Merge::Accounting::Project.validate_raw(obj: struct)
|
|
25
|
+
return Merge::Accounting::Project.from_json(json_object: struct) unless struct.nil?
|
|
26
|
+
|
|
27
|
+
return nil
|
|
28
|
+
rescue StandardError
|
|
29
|
+
# noop
|
|
30
|
+
end
|
|
31
|
+
struct
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
35
|
+
# hash and check each fields type against the current object's property
|
|
36
|
+
# definitions.
|
|
37
|
+
#
|
|
38
|
+
# @param obj [Object]
|
|
39
|
+
# @return [Void]
|
|
40
|
+
def self.validate_raw(obj:)
|
|
41
|
+
begin
|
|
42
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
|
43
|
+
rescue StandardError
|
|
44
|
+
# noop
|
|
45
|
+
end
|
|
46
|
+
begin
|
|
47
|
+
return Merge::Accounting::Project.validate_raw(obj: obj)
|
|
48
|
+
rescue StandardError
|
|
49
|
+
# noop
|
|
50
|
+
end
|
|
51
|
+
raise("Passed value matched no type within the union, validation failed.")
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -54,7 +54,7 @@ module Merge
|
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
56
56
|
# )
|
|
57
|
-
# api.accounting.vendor_credits.list
|
|
57
|
+
# api.accounting.vendor_credits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
58
58
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
59
59
|
include_deleted_data: nil, include_remote_data: 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)
|
|
60
60
|
response = @request_client.conn.get do |req|
|
|
@@ -255,7 +255,7 @@ module Merge
|
|
|
255
255
|
# environment: Merge::Environment::PRODUCTION,
|
|
256
256
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
257
257
|
# )
|
|
258
|
-
# api.accounting.vendor_credits.list
|
|
258
|
+
# api.accounting.vendor_credits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
259
259
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
260
260
|
include_deleted_data: nil, include_remote_data: 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)
|
|
261
261
|
Async do
|
|
@@ -58,7 +58,7 @@ module Merge
|
|
|
58
58
|
# environment: Merge::Environment::PRODUCTION,
|
|
59
59
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
60
60
|
# )
|
|
61
|
-
# api.ats.activities.list
|
|
61
|
+
# api.ats.activities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
62
62
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
|
63
63
|
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, user_id: nil, request_options: nil)
|
|
64
64
|
response = @request_client.conn.get do |req|
|
|
@@ -268,7 +268,7 @@ module Merge
|
|
|
268
268
|
# environment: Merge::Environment::PRODUCTION,
|
|
269
269
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
270
270
|
# )
|
|
271
|
-
# api.ats.activities.list
|
|
271
|
+
# api.ats.activities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
272
272
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
|
273
273
|
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, user_id: nil, request_options: nil)
|
|
274
274
|
Async do
|
|
@@ -57,7 +57,7 @@ module Merge
|
|
|
57
57
|
# environment: Merge::Environment::PRODUCTION,
|
|
58
58
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
59
59
|
# )
|
|
60
|
-
# api.ats.applications.list
|
|
60
|
+
# api.ats.applications.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
61
61
|
def list(candidate_id: nil, created_after: nil, created_before: nil, credited_to_id: nil, current_stage_id: nil,
|
|
62
62
|
cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, reject_reason_id: nil, remote_id: nil, source: nil, request_options: nil)
|
|
63
63
|
response = @request_client.conn.get do |req|
|
|
@@ -319,7 +319,7 @@ module Merge
|
|
|
319
319
|
# environment: Merge::Environment::PRODUCTION,
|
|
320
320
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
321
321
|
# )
|
|
322
|
-
# api.ats.applications.list
|
|
322
|
+
# api.ats.applications.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
323
323
|
def list(candidate_id: nil, created_after: nil, created_before: nil, credited_to_id: nil, current_stage_id: nil,
|
|
324
324
|
cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, reject_reason_id: nil, remote_id: nil, source: nil, request_options: nil)
|
|
325
325
|
Async do
|
|
@@ -54,7 +54,7 @@ module Merge
|
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
56
56
|
# )
|
|
57
|
-
# api.ats.attachments.list
|
|
57
|
+
# api.ats.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
58
58
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
59
59
|
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)
|
|
60
60
|
response = @request_client.conn.get do |req|
|
|
@@ -262,7 +262,7 @@ module Merge
|
|
|
262
262
|
# environment: Merge::Environment::PRODUCTION,
|
|
263
263
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
264
264
|
# )
|
|
265
|
-
# api.ats.attachments.list
|
|
265
|
+
# api.ats.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
266
266
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
267
267
|
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)
|
|
268
268
|
Async do
|
|
@@ -23,8 +23,9 @@ module Merge
|
|
|
23
23
|
# @param event_type [String] If included, will only include events with the given event type. Possible values
|
|
24
24
|
# include: `CREATED_REMOTE_PRODUCTION_API_KEY`,
|
|
25
25
|
# `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`,
|
|
26
|
-
# `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`,
|
|
27
|
-
# `
|
|
26
|
+
# `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`,
|
|
27
|
+
# `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`,
|
|
28
|
+
# `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`,
|
|
28
29
|
# `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`,
|
|
29
30
|
# `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`,
|
|
30
31
|
# `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`,
|
|
@@ -59,7 +60,7 @@ module Merge
|
|
|
59
60
|
# environment: Merge::Environment::PRODUCTION,
|
|
60
61
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
61
62
|
# )
|
|
62
|
-
# api.ats.audit_trail.list
|
|
63
|
+
# api.ats.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
63
64
|
def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil,
|
|
64
65
|
request_options: nil)
|
|
65
66
|
response = @request_client.conn.get do |req|
|
|
@@ -106,8 +107,9 @@ module Merge
|
|
|
106
107
|
# @param event_type [String] If included, will only include events with the given event type. Possible values
|
|
107
108
|
# include: `CREATED_REMOTE_PRODUCTION_API_KEY`,
|
|
108
109
|
# `DELETED_REMOTE_PRODUCTION_API_KEY`, `CREATED_TEST_API_KEY`,
|
|
109
|
-
# `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`,
|
|
110
|
-
# `
|
|
110
|
+
# `DELETED_TEST_API_KEY`, `REGENERATED_PRODUCTION_API_KEY`,
|
|
111
|
+
# `REGENERATED_WEBHOOK_SIGNATURE`, `INVITED_USER`, `TWO_FACTOR_AUTH_ENABLED`,
|
|
112
|
+
# `TWO_FACTOR_AUTH_DISABLED`, `DELETED_LINKED_ACCOUNT`,
|
|
111
113
|
# `DELETED_ALL_COMMON_MODELS_FOR_LINKED_ACCOUNT`, `CREATED_DESTINATION`,
|
|
112
114
|
# `DELETED_DESTINATION`, `CHANGED_DESTINATION`, `CHANGED_SCOPES`,
|
|
113
115
|
# `CHANGED_PERSONAL_INFORMATION`, `CHANGED_ORGANIZATION_SETTINGS`,
|
|
@@ -142,7 +144,7 @@ module Merge
|
|
|
142
144
|
# environment: Merge::Environment::PRODUCTION,
|
|
143
145
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
144
146
|
# )
|
|
145
|
-
# api.ats.audit_trail.list
|
|
147
|
+
# api.ats.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
146
148
|
def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil,
|
|
147
149
|
request_options: nil)
|
|
148
150
|
Async do
|
|
@@ -59,7 +59,7 @@ module Merge
|
|
|
59
59
|
# environment: Merge::Environment::PRODUCTION,
|
|
60
60
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
61
61
|
# )
|
|
62
|
-
# api.ats.candidates.list
|
|
62
|
+
# api.ats.candidates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
63
63
|
def list(created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil,
|
|
64
64
|
first_name: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, last_name: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, tags: nil, request_options: nil)
|
|
65
65
|
response = @request_client.conn.get do |req|
|
|
@@ -403,7 +403,7 @@ module Merge
|
|
|
403
403
|
# environment: Merge::Environment::PRODUCTION,
|
|
404
404
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
405
405
|
# )
|
|
406
|
-
# api.ats.candidates.list
|
|
406
|
+
# api.ats.candidates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
407
407
|
def list(created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil,
|
|
408
408
|
first_name: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, last_name: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, tags: nil, request_options: nil)
|
|
409
409
|
Async do
|
|
@@ -44,7 +44,7 @@ module Merge
|
|
|
44
44
|
# environment: Merge::Environment::PRODUCTION,
|
|
45
45
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
46
46
|
# )
|
|
47
|
-
# api.ats.departments.list
|
|
47
|
+
# api.ats.departments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
48
48
|
def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
|
|
49
49
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
50
50
|
response = @request_client.conn.get do |req|
|
|
@@ -153,7 +153,7 @@ module Merge
|
|
|
153
153
|
# environment: Merge::Environment::PRODUCTION,
|
|
154
154
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
155
155
|
# )
|
|
156
|
-
# api.ats.departments.list
|
|
156
|
+
# api.ats.departments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
157
157
|
def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
|
|
158
158
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
159
159
|
Async do
|
|
@@ -55,7 +55,7 @@ module Merge
|
|
|
55
55
|
# environment: Merge::Environment::PRODUCTION,
|
|
56
56
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
57
57
|
# )
|
|
58
|
-
# api.ats.eeocs.list
|
|
58
|
+
# api.ats.eeocs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
59
59
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
60
60
|
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)
|
|
61
61
|
response = @request_client.conn.get do |req|
|
|
@@ -185,7 +185,7 @@ module Merge
|
|
|
185
185
|
# environment: Merge::Environment::PRODUCTION,
|
|
186
186
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
187
187
|
# )
|
|
188
|
-
# api.ats.eeocs.list
|
|
188
|
+
# api.ats.eeocs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
189
189
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
190
190
|
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)
|
|
191
191
|
Async do
|
|
@@ -59,7 +59,7 @@ module Merge
|
|
|
59
59
|
# environment: Merge::Environment::PRODUCTION,
|
|
60
60
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
61
61
|
# )
|
|
62
|
-
# api.ats.interviews.list
|
|
62
|
+
# api.ats.interviews.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
63
63
|
def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
64
64
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, job_interview_stage_id: nil, modified_after: nil, modified_before: nil, organizer_id: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
|
65
65
|
response = @request_client.conn.get do |req|
|
|
@@ -277,7 +277,7 @@ module Merge
|
|
|
277
277
|
# environment: Merge::Environment::PRODUCTION,
|
|
278
278
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
279
279
|
# )
|
|
280
|
-
# api.ats.interviews.list
|
|
280
|
+
# api.ats.interviews.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
281
281
|
def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
|
282
282
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, job_interview_stage_id: nil, modified_after: nil, modified_before: nil, organizer_id: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
|
283
283
|
Async do
|
|
@@ -52,7 +52,7 @@ module Merge
|
|
|
52
52
|
# environment: Merge::Environment::PRODUCTION,
|
|
53
53
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
54
54
|
# )
|
|
55
|
-
# api.ats.issues.list
|
|
55
|
+
# api.ats.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
56
56
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
|
57
57
|
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
58
58
|
response = @request_client.conn.get do |req|
|
|
@@ -166,7 +166,7 @@ module Merge
|
|
|
166
166
|
# environment: Merge::Environment::PRODUCTION,
|
|
167
167
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
168
168
|
# )
|
|
169
|
-
# api.ats.issues.list
|
|
169
|
+
# api.ats.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
170
170
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
|
171
171
|
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
|
172
172
|
Async do
|
|
@@ -47,7 +47,7 @@ module Merge
|
|
|
47
47
|
# environment: Merge::Environment::PRODUCTION,
|
|
48
48
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
49
49
|
# )
|
|
50
|
-
# api.ats.job_interview_stages.list
|
|
50
|
+
# api.ats.job_interview_stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
51
51
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
|
52
52
|
include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
53
53
|
response = @request_client.conn.get do |req|
|
|
@@ -164,7 +164,7 @@ module Merge
|
|
|
164
164
|
# environment: Merge::Environment::PRODUCTION,
|
|
165
165
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
166
166
|
# )
|
|
167
|
-
# api.ats.job_interview_stages.list
|
|
167
|
+
# api.ats.job_interview_stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
168
168
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
|
169
169
|
include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
|
170
170
|
Async do
|
|
@@ -54,7 +54,7 @@ module Merge
|
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
56
56
|
# )
|
|
57
|
-
# api.ats.job_postings.list
|
|
57
|
+
# api.ats.job_postings.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
58
58
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
|
59
59
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, status: nil, request_options: nil)
|
|
60
60
|
response = @request_client.conn.get do |req|
|
|
@@ -177,7 +177,7 @@ module Merge
|
|
|
177
177
|
# environment: Merge::Environment::PRODUCTION,
|
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
|
179
179
|
# )
|
|
180
|
-
# api.ats.job_postings.list
|
|
180
|
+
# api.ats.job_postings.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
|
181
181
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
|
182
182
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, status: nil, request_options: nil)
|
|
183
183
|
Async do
|