From 79bb0e211c0a2d6592ef395c400d3f0f72991207 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 03:15:15 +0000 Subject: [PATCH] SDK regeneration --- .mock/definition/accounting/__package__.yml | 3132 +++++++++++++++++ .../definition/accounting/accountDetails.yml | 3 +- .mock/definition/accounting/accountToken.yml | 2 + .../accounting/accountingPeriods.yml | 8 +- .mock/definition/accounting/accounts.yml | 14 +- .mock/definition/accounting/addresses.yml | 3 +- .../accounting/asyncPassthrough.yml | 6 +- .mock/definition/accounting/asyncTasks.yml | 3 +- .mock/definition/accounting/attachments.yml | 14 +- .mock/definition/accounting/auditTrail.yml | 6 +- .../accounting/availableActions.yml | 3 +- .mock/definition/accounting/balanceSheets.yml | 8 +- .../accounting/bankFeedAccounts.yml | 14 +- .../accounting/bankFeedTransactions.yml | 14 +- .../accounting/cashFlowStatements.yml | 8 +- .mock/definition/accounting/companyInfo.yml | 8 +- .mock/definition/accounting/contacts.yml | 300 +- .mock/definition/accounting/creditNotes.yml | 15 +- .mock/definition/accounting/deleteAccount.yml | 3 +- .mock/definition/accounting/employees.yml | 32 +- .../definition/accounting/expenseReports.yml | 955 +++++ .mock/definition/accounting/expenses.yml | 28 +- .mock/definition/accounting/fieldMapping.yml | 38 +- .mock/definition/accounting/forceResync.yml | 3 +- .../accounting/generalLedgerTransactions.yml | 8 +- .mock/definition/accounting/generateKey.yml | 4 +- .../accounting/incomeStatements.yml | 8 +- .mock/definition/accounting/invoices.yml | 33 +- .mock/definition/accounting/issues.yml | 8 +- .mock/definition/accounting/items.yml | 24 +- .../definition/accounting/journalEntries.yml | 28 +- .mock/definition/accounting/linkToken.yml | 4 +- .../definition/accounting/linkedAccounts.yml | 6 +- .mock/definition/accounting/passthrough.yml | 3 +- .../definition/accounting/paymentMethods.yml | 8 +- .mock/definition/accounting/paymentTerms.yml | 8 +- .mock/definition/accounting/payments.yml | 48 +- .mock/definition/accounting/phoneNumbers.yml | 3 +- .mock/definition/accounting/projects.yml | 32 +- .../definition/accounting/purchaseOrders.yml | 28 +- .mock/definition/accounting/regenerateKey.yml | 4 +- .mock/definition/accounting/scopes.yml | 10 +- .mock/definition/accounting/syncStatus.yml | 5 +- .mock/definition/accounting/taxRates.yml | 8 +- .../accounting/trackingCategories.yml | 8 +- .mock/definition/accounting/transactions.yml | 138 +- .mock/definition/accounting/vendorCredits.yml | 16 +- .../accounting/webhookReceivers.yml | 6 +- .mock/definition/ats/__package__.yml | 1 + .mock/definition/ats/accountDetails.yml | 3 +- .mock/definition/ats/accountToken.yml | 2 + .mock/definition/ats/activities.yml | 14 +- .mock/definition/ats/applications.yml | 17 +- .mock/definition/ats/asyncPassthrough.yml | 6 +- .mock/definition/ats/attachments.yml | 14 +- .mock/definition/ats/auditTrail.yml | 6 +- .mock/definition/ats/availableActions.yml | 3 +- .mock/definition/ats/candidates.yml | 23 +- .mock/definition/ats/deleteAccount.yml | 3 +- .mock/definition/ats/departments.yml | 8 +- .mock/definition/ats/eeocs.yml | 8 +- .mock/definition/ats/fieldMapping.yml | 18 +- .mock/definition/ats/forceResync.yml | 3 +- .mock/definition/ats/generateKey.yml | 4 +- .mock/definition/ats/interviews.yml | 14 +- .mock/definition/ats/issues.yml | 8 +- .mock/definition/ats/jobInterviewStages.yml | 8 +- .mock/definition/ats/jobPostings.yml | 8 +- .mock/definition/ats/jobs.yml | 13 +- .mock/definition/ats/linkToken.yml | 4 +- .mock/definition/ats/linkedAccounts.yml | 6 +- .mock/definition/ats/offers.yml | 8 +- .mock/definition/ats/offices.yml | 8 +- .mock/definition/ats/passthrough.yml | 3 +- .mock/definition/ats/regenerateKey.yml | 4 +- .mock/definition/ats/rejectReasons.yml | 8 +- .mock/definition/ats/scopes.yml | 10 +- .mock/definition/ats/scorecards.yml | 8 +- .mock/definition/ats/syncStatus.yml | 5 +- .mock/definition/ats/tags.yml | 5 +- .mock/definition/ats/users.yml | 8 +- .mock/definition/ats/webhookReceivers.yml | 6 +- .mock/definition/crm/__package__.yml | 1 + .mock/definition/crm/accountDetails.yml | 3 +- .mock/definition/crm/accountToken.yml | 2 + .mock/definition/crm/accounts.yml | 26 +- .mock/definition/crm/associationTypes.yml | 14 +- .mock/definition/crm/associations.yml | 8 +- .mock/definition/crm/asyncPassthrough.yml | 6 +- .mock/definition/crm/auditTrail.yml | 6 +- .mock/definition/crm/availableActions.yml | 3 +- .mock/definition/crm/contacts.yml | 29 +- .mock/definition/crm/customObjectClasses.yml | 8 +- .mock/definition/crm/customObjects.yml | 20 +- .mock/definition/crm/deleteAccount.yml | 3 +- .mock/definition/crm/engagementTypes.yml | 14 +- .mock/definition/crm/engagements.yml | 26 +- .mock/definition/crm/fieldMapping.yml | 18 +- .mock/definition/crm/forceResync.yml | 3 +- .mock/definition/crm/generateKey.yml | 4 +- .mock/definition/crm/issues.yml | 8 +- .mock/definition/crm/leads.yml | 20 +- .mock/definition/crm/linkToken.yml | 4 +- .mock/definition/crm/linkedAccounts.yml | 6 +- .mock/definition/crm/notes.yml | 20 +- .mock/definition/crm/opportunities.yml | 26 +- .mock/definition/crm/passthrough.yml | 3 +- .mock/definition/crm/regenerateKey.yml | 4 +- .mock/definition/crm/scopes.yml | 10 +- .mock/definition/crm/stages.yml | 14 +- .mock/definition/crm/syncStatus.yml | 5 +- .mock/definition/crm/tasks.yml | 26 +- .mock/definition/crm/users.yml | 17 +- .mock/definition/crm/webhookReceivers.yml | 6 +- .../definition/filestorage/accountDetails.yml | 3 +- .mock/definition/filestorage/accountToken.yml | 2 + .../filestorage/asyncPassthrough.yml | 6 +- .mock/definition/filestorage/auditTrail.yml | 6 +- .../filestorage/availableActions.yml | 3 +- .../definition/filestorage/deleteAccount.yml | 3 +- .mock/definition/filestorage/drives.yml | 8 +- .mock/definition/filestorage/fieldMapping.yml | 18 +- .mock/definition/filestorage/files.yml | 38 +- .mock/definition/filestorage/folders.yml | 14 +- .mock/definition/filestorage/forceResync.yml | 3 +- .mock/definition/filestorage/generateKey.yml | 4 +- .mock/definition/filestorage/groups.yml | 8 +- .mock/definition/filestorage/issues.yml | 8 +- .mock/definition/filestorage/linkToken.yml | 4 +- .../definition/filestorage/linkedAccounts.yml | 6 +- .mock/definition/filestorage/passthrough.yml | 3 +- .../definition/filestorage/regenerateKey.yml | 4 +- .mock/definition/filestorage/scopes.yml | 10 +- .mock/definition/filestorage/syncStatus.yml | 5 +- .mock/definition/filestorage/users.yml | 8 +- .../filestorage/webhookReceivers.yml | 6 +- .mock/definition/hris/__package__.yml | 10 +- .mock/definition/hris/accountDetails.yml | 3 +- .mock/definition/hris/accountToken.yml | 2 + .mock/definition/hris/asyncPassthrough.yml | 6 +- .mock/definition/hris/auditTrail.yml | 6 +- .mock/definition/hris/availableActions.yml | 3 +- .mock/definition/hris/bankInfo.yml | 8 +- .mock/definition/hris/benefits.yml | 14 +- .mock/definition/hris/companies.yml | 8 +- .mock/definition/hris/deleteAccount.yml | 3 +- .mock/definition/hris/dependents.yml | 11 +- .mock/definition/hris/employeePayrollRuns.yml | 8 +- .mock/definition/hris/employees.yml | 26 +- .mock/definition/hris/employerBenefits.yml | 8 +- .mock/definition/hris/employments.yml | 8 +- .mock/definition/hris/fieldMapping.yml | 18 +- .mock/definition/hris/forceResync.yml | 3 +- .mock/definition/hris/generateKey.yml | 4 +- .mock/definition/hris/groups.yml | 8 +- .mock/definition/hris/issues.yml | 8 +- .mock/definition/hris/linkToken.yml | 4 +- .mock/definition/hris/linkedAccounts.yml | 6 +- .mock/definition/hris/locations.yml | 8 +- .mock/definition/hris/passthrough.yml | 3 +- .mock/definition/hris/payGroups.yml | 8 +- .mock/definition/hris/payrollRuns.yml | 8 +- .mock/definition/hris/regenerateKey.yml | 4 +- .mock/definition/hris/scopes.yml | 10 +- .mock/definition/hris/syncStatus.yml | 5 +- .mock/definition/hris/teams.yml | 8 +- .mock/definition/hris/timeOff.yml | 14 +- .mock/definition/hris/timeOffBalances.yml | 8 +- .mock/definition/hris/timesheetEntries.yml | 14 +- .mock/definition/hris/webhookReceivers.yml | 6 +- .mock/definition/ticketing/__package__.yml | 7 +- .mock/definition/ticketing/accountDetails.yml | 3 +- .mock/definition/ticketing/accountToken.yml | 2 + .mock/definition/ticketing/accounts.yml | 8 +- .../definition/ticketing/asyncPassthrough.yml | 6 +- .mock/definition/ticketing/attachments.yml | 14 +- .mock/definition/ticketing/auditTrail.yml | 6 +- .../definition/ticketing/availableActions.yml | 3 +- .mock/definition/ticketing/collections.yml | 13 +- .mock/definition/ticketing/comments.yml | 14 +- .mock/definition/ticketing/contacts.yml | 14 +- .mock/definition/ticketing/deleteAccount.yml | 3 +- .mock/definition/ticketing/fieldMapping.yml | 18 +- .mock/definition/ticketing/forceResync.yml | 3 +- .mock/definition/ticketing/generateKey.yml | 4 +- .mock/definition/ticketing/issues.yml | 8 +- .mock/definition/ticketing/linkToken.yml | 4 +- .mock/definition/ticketing/linkedAccounts.yml | 6 +- .mock/definition/ticketing/passthrough.yml | 3 +- .mock/definition/ticketing/projects.yml | 13 +- .mock/definition/ticketing/regenerateKey.yml | 4 +- .mock/definition/ticketing/roles.yml | 8 +- .mock/definition/ticketing/scopes.yml | 10 +- .mock/definition/ticketing/syncStatus.yml | 5 +- .mock/definition/ticketing/tags.yml | 8 +- .mock/definition/ticketing/teams.yml | 8 +- .mock/definition/ticketing/tickets.yml | 34 +- .mock/definition/ticketing/users.yml | 8 +- .../definition/ticketing/webhookReceivers.yml | 6 +- .mock/fern.config.json | 2 +- lib/merge_ruby_client.rb | 14 +- .../accounting/accounting_periods/client.rb | 4 +- .../accounting/accounts/client.rb | 4 +- .../accounting/attachments/client.rb | 4 +- .../accounting/audit_trail/client.rb | 4 +- .../accounting/balance_sheets/client.rb | 4 +- .../accounting/bank_feed_accounts/client.rb | 4 +- .../bank_feed_transactions/client.rb | 4 +- .../accounting/cash_flow_statements/client.rb | 4 +- lib/merge_ruby_client/accounting/client.rb | 7 + .../accounting/company_info/client.rb | 4 +- .../accounting/contacts/client.rb | 177 +- .../accounting/credit_notes/client.rb | 4 +- .../accounting/employees/client.rb | 43 +- .../accounting/expense_reports/client.rb | 765 ++++ ...pense_reports_lines_list_request_expand.rb | 73 + .../expense_reports_list_request_expand.rb | 25 + ...expense_reports_retrieve_request_expand.rb | 25 + .../accounting/expenses/client.rb | 12 +- .../general_ledger_transactions/client.rb | 4 +- .../accounting/income_statements/client.rb | 4 +- .../accounting/invoices/client.rb | 12 +- .../accounting/issues/client.rb | 4 +- .../accounting/items/client.rb | 4 +- .../accounting/journal_entries/client.rb | 12 +- .../accounting/linked_accounts/client.rb | 4 +- .../accounting/payment_methods/client.rb | 4 +- .../accounting/payment_terms/client.rb | 4 +- .../accounting/payments/client.rb | 12 +- .../accounting/projects/client.rb | 43 +- .../accounting/purchase_orders/client.rb | 12 +- .../accounting/sync_status/client.rb | 4 +- .../accounting/tax_rates/client.rb | 4 +- .../accounting/tracking_categories/client.rb | 4 +- .../accounting/transactions/client.rb | 4 +- .../types/transactions_list_request_expand.rb | 32 + .../transactions_retrieve_request_expand.rb | 32 + .../accounting/types/expense_report.rb | 869 +++++ .../types/expense_report_company.rb | 56 + .../accounting/types/expense_report_line.rb | 921 +++++ .../types/expense_report_line_account.rb | 55 + .../types/expense_report_line_company.rb | 56 + .../types/expense_report_line_contact.rb | 55 + .../types/expense_report_line_employee.rb | 57 + .../types/expense_report_line_project.rb | 55 + .../types/expense_report_line_request.rb | 899 +++++ .../expense_report_line_request_account.rb | 55 + .../expense_report_line_request_company.rb | 56 + .../expense_report_line_request_contact.rb | 55 + .../expense_report_line_request_employee.rb | 57 + .../expense_report_line_request_project.rb | 55 + .../expense_report_line_request_tax_rate.rb | 55 + .../types/expense_report_line_tax_rate.rb | 55 + .../types/expense_report_request.rb | 819 +++++ ...xpense_report_request_accounting_period.rb | 56 + .../types/expense_report_request_company.rb | 56 + .../types/expense_report_request_employee.rb | 57 + .../types/expense_report_response.rb | 101 + .../types/expense_report_status_enum.rb | 16 + .../external_target_field_api_response.rb | 13 +- .../field_mapping_api_instance_response.rb | 13 +- .../accounting/types/item.rb | 19 +- .../paginated_expense_report_line_list.rb | 80 + .../types/paginated_expense_report_list.rb | 80 + .../types/patched_contact_request.rb | 188 + .../patched_contact_request_addresses_item.rb | 55 + .../accounting/types/remote_field_class.rb | 10 +- .../accounting/vendor_credits/client.rb | 4 +- .../ats/activities/client.rb | 4 +- .../ats/applications/client.rb | 4 +- .../ats/attachments/client.rb | 4 +- .../ats/audit_trail/client.rb | 4 +- .../ats/candidates/client.rb | 4 +- .../ats/departments/client.rb | 4 +- lib/merge_ruby_client/ats/eeocs/client.rb | 4 +- .../ats/interviews/client.rb | 4 +- lib/merge_ruby_client/ats/issues/client.rb | 4 +- .../ats/job_interview_stages/client.rb | 4 +- .../ats/job_postings/client.rb | 4 +- lib/merge_ruby_client/ats/jobs/client.rb | 8 +- .../ats/linked_accounts/client.rb | 4 +- lib/merge_ruby_client/ats/offers/client.rb | 4 +- lib/merge_ruby_client/ats/offices/client.rb | 4 +- .../ats/reject_reasons/client.rb | 4 +- .../ats/scorecards/client.rb | 4 +- .../ats/sync_status/client.rb | 4 +- lib/merge_ruby_client/ats/tags/client.rb | 4 +- .../ats/types/event_type_enum.rb | 1 + lib/merge_ruby_client/ats/users/client.rb | 4 +- lib/merge_ruby_client/crm/accounts/client.rb | 8 +- .../crm/association_types/client.rb | 4 +- .../crm/associations/client.rb | 12 +- .../crm/audit_trail/client.rb | 4 +- lib/merge_ruby_client/crm/contacts/client.rb | 8 +- .../crm/custom_object_classes/client.rb | 4 +- .../crm/custom_objects/client.rb | 8 +- .../crm/engagement_types/client.rb | 8 +- .../crm/engagements/client.rb | 8 +- lib/merge_ruby_client/crm/issues/client.rb | 4 +- lib/merge_ruby_client/crm/leads/client.rb | 8 +- .../crm/linked_accounts/client.rb | 4 +- lib/merge_ruby_client/crm/notes/client.rb | 8 +- .../crm/opportunities/client.rb | 8 +- lib/merge_ruby_client/crm/stages/client.rb | 8 +- .../crm/sync_status/client.rb | 4 +- lib/merge_ruby_client/crm/tasks/client.rb | 8 +- .../crm/types/remote_field_class.rb | 10 +- lib/merge_ruby_client/crm/users/client.rb | 8 +- .../filestorage/audit_trail/client.rb | 4 +- .../filestorage/drives/client.rb | 4 +- .../filestorage/files/client.rb | 38 +- .../filestorage/folders/client.rb | 4 +- .../filestorage/groups/client.rb | 4 +- .../filestorage/issues/client.rb | 4 +- .../filestorage/linked_accounts/client.rb | 4 +- .../filestorage/sync_status/client.rb | 4 +- .../filestorage/users/client.rb | 4 +- .../hris/audit_trail/client.rb | 4 +- .../hris/bank_info/client.rb | 4 +- lib/merge_ruby_client/hris/benefits/client.rb | 4 +- .../hris/companies/client.rb | 4 +- .../hris/dependents/client.rb | 12 +- .../hris/employee_payroll_runs/client.rb | 4 +- .../hris/employees/client.rb | 12 +- .../hris/employer_benefits/client.rb | 4 +- .../hris/employments/client.rb | 4 +- lib/merge_ruby_client/hris/groups/client.rb | 4 +- lib/merge_ruby_client/hris/issues/client.rb | 4 +- .../hris/linked_accounts/client.rb | 4 +- .../hris/locations/client.rb | 4 +- .../hris/pay_groups/client.rb | 4 +- .../hris/payroll_runs/client.rb | 4 +- .../hris/sync_status/client.rb | 4 +- lib/merge_ruby_client/hris/teams/client.rb | 4 +- lib/merge_ruby_client/hris/time_off/client.rb | 4 +- .../hris/time_off_balances/client.rb | 4 +- .../hris/timesheet_entries/client.rb | 4 +- lib/merge_ruby_client/hris/types/benefit.rb | 18 +- .../ticketing/accounts/client.rb | 4 +- .../ticketing/attachments/client.rb | 4 +- .../ticketing/audit_trail/client.rb | 4 +- .../ticketing/collections/client.rb | 8 +- .../ticketing/comments/client.rb | 4 +- .../ticketing/contacts/client.rb | 4 +- .../ticketing/issues/client.rb | 4 +- .../ticketing/linked_accounts/client.rb | 4 +- .../ticketing/projects/client.rb | 8 +- .../ticketing/roles/client.rb | 4 +- .../ticketing/sync_status/client.rb | 4 +- .../ticketing/tags/client.rb | 4 +- .../ticketing/teams/client.rb | 4 +- .../ticketing/tickets/client.rb | 24 +- .../ticketing/types/patched_ticket_request.rb | 18 +- .../ticketing/types/remote_field_class.rb | 10 +- .../ticketing/users/client.rb | 4 +- lib/requests.rb | 4 +- lib/types_export.rb | 431 +-- merge_ruby_client.gemspec | 2 +- 358 files changed, 12664 insertions(+), 1034 deletions(-) create mode 100644 .mock/definition/accounting/expenseReports.yml create mode 100644 lib/merge_ruby_client/accounting/expense_reports/client.rb create mode 100644 lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand.rb create mode 100644 lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand.rb create mode 100644 lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_company.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_account.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_company.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_contact.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_employee.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_project.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request_account.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request_company.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request_contact.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request_employee.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request_project.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_request_tax_rate.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_line_tax_rate.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_request.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_request_accounting_period.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_request_company.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_request_employee.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_response.rb create mode 100644 lib/merge_ruby_client/accounting/types/expense_report_status_enum.rb create mode 100644 lib/merge_ruby_client/accounting/types/paginated_expense_report_line_list.rb create mode 100644 lib/merge_ruby_client/accounting/types/paginated_expense_report_list.rb create mode 100644 lib/merge_ruby_client/accounting/types/patched_contact_request.rb create mode 100644 lib/merge_ruby_client/accounting/types/patched_contact_request_addresses_item.rb diff --git a/.mock/definition/accounting/__package__.yml b/.mock/definition/accounting/__package__.yml index 70df743e..56b7caa3 100644 --- a/.mock/definition/accounting/__package__.yml +++ b/.mock/definition/accounting/__package__.yml @@ -11925,6 +11925,3035 @@ types: access: write-only source: openapi: openapi/openapi.yml + ExpenseReportCompany: + discriminated: false + docs: The subsidiary that the expense report is created in + union: + - type: string + validation: + format: uuid + - CompanyInfo + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReport: + docs: >- + # The ExpenseReport Object + + ### Description + + The `ExpenseReport` object represents a collection of expenses submitted + for review and reimbursement. + + It includes details about the submitter, status, amounts, and associated + metadata. + + + ### Usage Example + + Fetch from the `GET ExpenseReport` endpoint to view details of expense + reports and their line items. + properties: + id: + type: optional + validation: + format: uuid + access: read-only + remote_id: + type: optional + docs: The third-party API ID of the matching object. + created_at: + type: optional + docs: The datetime that this object was created by Merge. + access: read-only + modified_at: + type: optional + docs: The datetime that this object was modified by Merge. + access: read-only + report_date: + type: optional + docs: The date of the expense report. + report_identifier: + type: optional + docs: Human-readable expense report identifier. + validation: + maxLength: 1024 + employee: + type: optional + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + validation: + format: uuid + status: + type: optional + docs: >- + Overall status of the expense report. One of DRAFT, SUBMITTED, + APPROVED, REJECTED + + + * `DRAFT` - DRAFT + + * `SUBMITTED` - SUBMITTED + + * `APPROVED` - APPROVED + + * `REJECTED` - REJECTED + total_amount: + type: optional + docs: Total amount of the expense report + lines: + type: optional> + access: read-only + currency: + type: optional + docs: >- + Currency code for the expense report + + + * `XUA` - ADB Unit of Account + + * `AFN` - Afghan Afghani + + * `AFA` - Afghan Afghani (1927–2002) + + * `ALL` - Albanian Lek + + * `ALK` - Albanian Lek (1946–1965) + + * `DZD` - Algerian Dinar + + * `ADP` - Andorran Peseta + + * `AOA` - Angolan Kwanza + + * `AOK` - Angolan Kwanza (1977–1991) + + * `AON` - Angolan New Kwanza (1990–2000) + + * `AOR` - Angolan Readjusted Kwanza (1995–1999) + + * `ARA` - Argentine Austral + + * `ARS` - Argentine Peso + + * `ARM` - Argentine Peso (1881–1970) + + * `ARP` - Argentine Peso (1983–1985) + + * `ARL` - Argentine Peso Ley (1970–1983) + + * `AMD` - Armenian Dram + + * `AWG` - Aruban Florin + + * `AUD` - Australian Dollar + + * `ATS` - Austrian Schilling + + * `AZN` - Azerbaijani Manat + + * `AZM` - Azerbaijani Manat (1993–2006) + + * `BSD` - Bahamian Dollar + + * `BHD` - Bahraini Dinar + + * `BDT` - Bangladeshi Taka + + * `BBD` - Barbadian Dollar + + * `BYN` - Belarusian Ruble + + * `BYB` - Belarusian Ruble (1994–1999) + + * `BYR` - Belarusian Ruble (2000–2016) + + * `BEF` - Belgian Franc + + * `BEC` - Belgian Franc (convertible) + + * `BEL` - Belgian Franc (financial) + + * `BZD` - Belize Dollar + + * `BMD` - Bermudan Dollar + + * `BTN` - Bhutanese Ngultrum + + * `BOB` - Bolivian Boliviano + + * `BOL` - Bolivian Boliviano (1863–1963) + + * `BOV` - Bolivian Mvdol + + * `BOP` - Bolivian Peso + + * `BAM` - Bosnia-Herzegovina Convertible Mark + + * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + + * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + + * `BWP` - Botswanan Pula + + * `BRC` - Brazilian Cruzado (1986–1989) + + * `BRZ` - Brazilian Cruzeiro (1942–1967) + + * `BRE` - Brazilian Cruzeiro (1990–1993) + + * `BRR` - Brazilian Cruzeiro (1993–1994) + + * `BRN` - Brazilian New Cruzado (1989–1990) + + * `BRB` - Brazilian New Cruzeiro (1967–1986) + + * `BRL` - Brazilian Real + + * `GBP` - British Pound + + * `BND` - Brunei Dollar + + * `BGL` - Bulgarian Hard Lev + + * `BGN` - Bulgarian Lev + + * `BGO` - Bulgarian Lev (1879–1952) + + * `BGM` - Bulgarian Socialist Lev + + * `BUK` - Burmese Kyat + + * `BIF` - Burundian Franc + + * `XPF` - CFP Franc + + * `KHR` - Cambodian Riel + + * `CAD` - Canadian Dollar + + * `CVE` - Cape Verdean Escudo + + * `KYD` - Cayman Islands Dollar + + * `XAF` - Central African CFA Franc + + * `CLE` - Chilean Escudo + + * `CLP` - Chilean Peso + + * `CLF` - Chilean Unit of Account (UF) + + * `CNX` - Chinese People’s Bank Dollar + + * `CNY` - Chinese Yuan + + * `CNH` - Chinese Yuan (offshore) + + * `COP` - Colombian Peso + + * `COU` - Colombian Real Value Unit + + * `KMF` - Comorian Franc + + * `CDF` - Congolese Franc + + * `CRC` - Costa Rican Colón + + * `HRD` - Croatian Dinar + + * `HRK` - Croatian Kuna + + * `CUC` - Cuban Convertible Peso + + * `CUP` - Cuban Peso + + * `CYP` - Cypriot Pound + + * `CZK` - Czech Koruna + + * `CSK` - Czechoslovak Hard Koruna + + * `DKK` - Danish Krone + + * `DJF` - Djiboutian Franc + + * `DOP` - Dominican Peso + + * `NLG` - Dutch Guilder + + * `XCD` - East Caribbean Dollar + + * `DDM` - East German Mark + + * `ECS` - Ecuadorian Sucre + + * `ECV` - Ecuadorian Unit of Constant Value + + * `EGP` - Egyptian Pound + + * `GQE` - Equatorial Guinean Ekwele + + * `ERN` - Eritrean Nakfa + + * `EEK` - Estonian Kroon + + * `ETB` - Ethiopian Birr + + * `EUR` - Euro + + * `XBA` - European Composite Unit + + * `XEU` - European Currency Unit + + * `XBB` - European Monetary Unit + + * `XBC` - European Unit of Account (XBC) + + * `XBD` - European Unit of Account (XBD) + + * `FKP` - Falkland Islands Pound + + * `FJD` - Fijian Dollar + + * `FIM` - Finnish Markka + + * `FRF` - French Franc + + * `XFO` - French Gold Franc + + * `XFU` - French UIC-Franc + + * `GMD` - Gambian Dalasi + + * `GEK` - Georgian Kupon Larit + + * `GEL` - Georgian Lari + + * `DEM` - German Mark + + * `GHS` - Ghanaian Cedi + + * `GHC` - Ghanaian Cedi (1979–2007) + + * `GIP` - Gibraltar Pound + + * `XAU` - Gold + + * `GRD` - Greek Drachma + + * `GTQ` - Guatemalan Quetzal + + * `GWP` - Guinea-Bissau Peso + + * `GNF` - Guinean Franc + + * `GNS` - Guinean Syli + + * `GYD` - Guyanaese Dollar + + * `HTG` - Haitian Gourde + + * `HNL` - Honduran Lempira + + * `HKD` - Hong Kong Dollar + + * `HUF` - Hungarian Forint + + * `IMP` - IMP + + * `ISK` - Icelandic Króna + + * `ISJ` - Icelandic Króna (1918–1981) + + * `INR` - Indian Rupee + + * `IDR` - Indonesian Rupiah + + * `IRR` - Iranian Rial + + * `IQD` - Iraqi Dinar + + * `IEP` - Irish Pound + + * `ILS` - Israeli New Shekel + + * `ILP` - Israeli Pound + + * `ILR` - Israeli Shekel (1980–1985) + + * `ITL` - Italian Lira + + * `JMD` - Jamaican Dollar + + * `JPY` - Japanese Yen + + * `JOD` - Jordanian Dinar + + * `KZT` - Kazakhstani Tenge + + * `KES` - Kenyan Shilling + + * `KWD` - Kuwaiti Dinar + + * `KGS` - Kyrgystani Som + + * `LAK` - Laotian Kip + + * `LVL` - Latvian Lats + + * `LVR` - Latvian Ruble + + * `LBP` - Lebanese Pound + + * `LSL` - Lesotho Loti + + * `LRD` - Liberian Dollar + + * `LYD` - Libyan Dinar + + * `LTL` - Lithuanian Litas + + * `LTT` - Lithuanian Talonas + + * `LUL` - Luxembourg Financial Franc + + * `LUC` - Luxembourgian Convertible Franc + + * `LUF` - Luxembourgian Franc + + * `MOP` - Macanese Pataca + + * `MKD` - Macedonian Denar + + * `MKN` - Macedonian Denar (1992–1993) + + * `MGA` - Malagasy Ariary + + * `MGF` - Malagasy Franc + + * `MWK` - Malawian Kwacha + + * `MYR` - Malaysian Ringgit + + * `MVR` - Maldivian Rufiyaa + + * `MVP` - Maldivian Rupee (1947–1981) + + * `MLF` - Malian Franc + + * `MTL` - Maltese Lira + + * `MTP` - Maltese Pound + + * `MRU` - Mauritanian Ouguiya + + * `MRO` - Mauritanian Ouguiya (1973–2017) + + * `MUR` - Mauritian Rupee + + * `MXV` - Mexican Investment Unit + + * `MXN` - Mexican Peso + + * `MXP` - Mexican Silver Peso (1861–1992) + + * `MDC` - Moldovan Cupon + + * `MDL` - Moldovan Leu + + * `MCF` - Monegasque Franc + + * `MNT` - Mongolian Tugrik + + * `MAD` - Moroccan Dirham + + * `MAF` - Moroccan Franc + + * `MZE` - Mozambican Escudo + + * `MZN` - Mozambican Metical + + * `MZM` - Mozambican Metical (1980–2006) + + * `MMK` - Myanmar Kyat + + * `NAD` - Namibian Dollar + + * `NPR` - Nepalese Rupee + + * `ANG` - Netherlands Antillean Guilder + + * `TWD` - New Taiwan Dollar + + * `NZD` - New Zealand Dollar + + * `NIO` - Nicaraguan Córdoba + + * `NIC` - Nicaraguan Córdoba (1988–1991) + + * `NGN` - Nigerian Naira + + * `KPW` - North Korean Won + + * `NOK` - Norwegian Krone + + * `OMR` - Omani Rial + + * `PKR` - Pakistani Rupee + + * `XPD` - Palladium + + * `PAB` - Panamanian Balboa + + * `PGK` - Papua New Guinean Kina + + * `PYG` - Paraguayan Guarani + + * `PEI` - Peruvian Inti + + * `PEN` - Peruvian Sol + + * `PES` - Peruvian Sol (1863–1965) + + * `PHP` - Philippine Peso + + * `XPT` - Platinum + + * `PLN` - Polish Zloty + + * `PLZ` - Polish Zloty (1950–1995) + + * `PTE` - Portuguese Escudo + + * `GWE` - Portuguese Guinea Escudo + + * `QAR` - Qatari Rial + + * `XRE` - RINET Funds + + * `RHD` - Rhodesian Dollar + + * `RON` - Romanian Leu + + * `ROL` - Romanian Leu (1952–2006) + + * `RUB` - Russian Ruble + + * `RUR` - Russian Ruble (1991–1998) + + * `RWF` - Rwandan Franc + + * `SVC` - Salvadoran Colón + + * `WST` - Samoan Tala + + * `SAR` - Saudi Riyal + + * `RSD` - Serbian Dinar + + * `CSD` - Serbian Dinar (2002–2006) + + * `SCR` - Seychellois Rupee + + * `SLL` - Sierra Leonean Leone + + * `XAG` - Silver + + * `SGD` - Singapore Dollar + + * `SKK` - Slovak Koruna + + * `SIT` - Slovenian Tolar + + * `SBD` - Solomon Islands Dollar + + * `SOS` - Somali Shilling + + * `ZAR` - South African Rand + + * `ZAL` - South African Rand (financial) + + * `KRH` - South Korean Hwan (1953–1962) + + * `KRW` - South Korean Won + + * `KRO` - South Korean Won (1945–1953) + + * `SSP` - South Sudanese Pound + + * `SUR` - Soviet Rouble + + * `ESP` - Spanish Peseta + + * `ESA` - Spanish Peseta (A account) + + * `ESB` - Spanish Peseta (convertible account) + + * `XDR` - Special Drawing Rights + + * `LKR` - Sri Lankan Rupee + + * `SHP` - St. Helena Pound + + * `XSU` - Sucre + + * `SDD` - Sudanese Dinar (1992–2007) + + * `SDG` - Sudanese Pound + + * `SDP` - Sudanese Pound (1957–1998) + + * `SRD` - Surinamese Dollar + + * `SRG` - Surinamese Guilder + + * `SZL` - Swazi Lilangeni + + * `SEK` - Swedish Krona + + * `CHF` - Swiss Franc + + * `SYP` - Syrian Pound + + * `STN` - São Tomé & Príncipe Dobra + + * `STD` - São Tomé & Príncipe Dobra (1977–2017) + + * `TVD` - TVD + + * `TJR` - Tajikistani Ruble + + * `TJS` - Tajikistani Somoni + + * `TZS` - Tanzanian Shilling + + * `XTS` - Testing Currency Code + + * `THB` - Thai Baht + + * `XXX` - The codes assigned for transactions where no currency is + involved + + * `TPE` - Timorese Escudo + + * `TOP` - Tongan Paʻanga + + * `TTD` - Trinidad & Tobago Dollar + + * `TND` - Tunisian Dinar + + * `TRY` - Turkish Lira + + * `TRL` - Turkish Lira (1922–2005) + + * `TMT` - Turkmenistani Manat + + * `TMM` - Turkmenistani Manat (1993–2009) + + * `USD` - US Dollar + + * `USN` - US Dollar (Next day) + + * `USS` - US Dollar (Same day) + + * `UGX` - Ugandan Shilling + + * `UGS` - Ugandan Shilling (1966–1987) + + * `UAH` - Ukrainian Hryvnia + + * `UAK` - Ukrainian Karbovanets + + * `AED` - United Arab Emirates Dirham + + * `UYW` - Uruguayan Nominal Wage Index Unit + + * `UYU` - Uruguayan Peso + + * `UYP` - Uruguayan Peso (1975–1993) + + * `UYI` - Uruguayan Peso (Indexed Units) + + * `UZS` - Uzbekistani Som + + * `VUV` - Vanuatu Vatu + + * `VES` - Venezuelan Bolívar + + * `VEB` - Venezuelan Bolívar (1871–2008) + + * `VEF` - Venezuelan Bolívar (2008–2018) + + * `VND` - Vietnamese Dong + + * `VNN` - Vietnamese Dong (1978–1985) + + * `CHE` - WIR Euro + + * `CHW` - WIR Franc + + * `XOF` - West African CFA Franc + + * `YDD` - Yemeni Dinar + + * `YER` - Yemeni Rial + + * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + + * `YUD` - Yugoslavian Hard Dinar (1966–1990) + + * `YUM` - Yugoslavian New Dinar (1994–2002) + + * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + + * `ZWN` - ZWN + + * `ZRN` - Zairean New Zaire (1993–1998) + + * `ZRZ` - Zairean Zaire (1971–1993) + + * `ZMW` - Zambian Kwacha + + * `ZMK` - Zambian Kwacha (1968–2012) + + * `ZWD` - Zimbabwean Dollar (1980–2008) + + * `ZWR` - Zimbabwean Dollar (2008) + + * `ZWL` - Zimbabwean Dollar (2009) + description: + type: optional + docs: A brief description or purpose for the expense report + validation: + maxLength: 1024 + accounting_period: + type: optional + docs: The accounting period the report was posted in + validation: + format: uuid + company: + type: optional + docs: The subsidiary that the expense report is created in + tracking_categories: + docs: The related tracking categories associated with the expense report + type: list + remote_was_deleted: + type: optional + docs: >- + Indicates whether or not this object has been deleted in the third + party platform. Full coverage deletion detection is a premium add-on. + Native deletion detection is offered for free with limited coverage. + [Learn + more](https://docs.merge.dev/integrations/hris/supported-features/). + access: read-only + field_mappings: + type: optional> + access: read-only + remote_data: + type: optional> + access: read-only + remote_fields: + type: optional> + access: read-only + source: + openapi: openapi/openapi.yml + ExpenseReportLineAccount: + discriminated: false + union: + - type: string + validation: + format: uuid + - Account + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineEmployee: + discriminated: false + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + union: + - type: string + validation: + format: uuid + - Employee + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineProject: + discriminated: false + union: + - type: string + validation: + format: uuid + - Project + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineCompany: + discriminated: false + docs: The subsidiary that the expense report is created in + union: + - type: string + validation: + format: uuid + - CompanyInfo + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineContact: + discriminated: false + union: + - type: string + validation: + format: uuid + - Contact + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineTaxRate: + discriminated: false + union: + - type: string + validation: + format: uuid + - TaxRate + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLine: + docs: >- + # The ExpenseReportLine Object + + ### Description + + The `ExpenseReportLine` object represents an individual line item within + an expense report, containing details about + + a specific expense such as amount, description, and associated metadata. + + + ### Usage Example + + Fetch from the `GET ExpenseReport` endpoint and expand the lines field to + view all line items in the expense report. + properties: + id: + type: optional + validation: + format: uuid + access: read-only + remote_id: + type: optional + docs: The third-party API ID of the matching object. + created_at: + type: optional + docs: The datetime that this object was created by Merge. + access: read-only + modified_at: + type: optional + docs: The datetime that this object was modified by Merge. + access: read-only + account: optional + description: + type: optional + docs: Description of the individual expense. + validation: + maxLength: 1024 + expense_date: + type: optional + docs: The date the individual expense was incurred. + amount: + type: optional + docs: The amount of the expense for the line item. + currency: + type: optional + docs: >- + Currency of the expense line (if different from the report currency). + + + * `XUA` - ADB Unit of Account + + * `AFN` - Afghan Afghani + + * `AFA` - Afghan Afghani (1927–2002) + + * `ALL` - Albanian Lek + + * `ALK` - Albanian Lek (1946–1965) + + * `DZD` - Algerian Dinar + + * `ADP` - Andorran Peseta + + * `AOA` - Angolan Kwanza + + * `AOK` - Angolan Kwanza (1977–1991) + + * `AON` - Angolan New Kwanza (1990–2000) + + * `AOR` - Angolan Readjusted Kwanza (1995–1999) + + * `ARA` - Argentine Austral + + * `ARS` - Argentine Peso + + * `ARM` - Argentine Peso (1881–1970) + + * `ARP` - Argentine Peso (1983–1985) + + * `ARL` - Argentine Peso Ley (1970–1983) + + * `AMD` - Armenian Dram + + * `AWG` - Aruban Florin + + * `AUD` - Australian Dollar + + * `ATS` - Austrian Schilling + + * `AZN` - Azerbaijani Manat + + * `AZM` - Azerbaijani Manat (1993–2006) + + * `BSD` - Bahamian Dollar + + * `BHD` - Bahraini Dinar + + * `BDT` - Bangladeshi Taka + + * `BBD` - Barbadian Dollar + + * `BYN` - Belarusian Ruble + + * `BYB` - Belarusian Ruble (1994–1999) + + * `BYR` - Belarusian Ruble (2000–2016) + + * `BEF` - Belgian Franc + + * `BEC` - Belgian Franc (convertible) + + * `BEL` - Belgian Franc (financial) + + * `BZD` - Belize Dollar + + * `BMD` - Bermudan Dollar + + * `BTN` - Bhutanese Ngultrum + + * `BOB` - Bolivian Boliviano + + * `BOL` - Bolivian Boliviano (1863–1963) + + * `BOV` - Bolivian Mvdol + + * `BOP` - Bolivian Peso + + * `BAM` - Bosnia-Herzegovina Convertible Mark + + * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + + * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + + * `BWP` - Botswanan Pula + + * `BRC` - Brazilian Cruzado (1986–1989) + + * `BRZ` - Brazilian Cruzeiro (1942–1967) + + * `BRE` - Brazilian Cruzeiro (1990–1993) + + * `BRR` - Brazilian Cruzeiro (1993–1994) + + * `BRN` - Brazilian New Cruzado (1989–1990) + + * `BRB` - Brazilian New Cruzeiro (1967–1986) + + * `BRL` - Brazilian Real + + * `GBP` - British Pound + + * `BND` - Brunei Dollar + + * `BGL` - Bulgarian Hard Lev + + * `BGN` - Bulgarian Lev + + * `BGO` - Bulgarian Lev (1879–1952) + + * `BGM` - Bulgarian Socialist Lev + + * `BUK` - Burmese Kyat + + * `BIF` - Burundian Franc + + * `XPF` - CFP Franc + + * `KHR` - Cambodian Riel + + * `CAD` - Canadian Dollar + + * `CVE` - Cape Verdean Escudo + + * `KYD` - Cayman Islands Dollar + + * `XAF` - Central African CFA Franc + + * `CLE` - Chilean Escudo + + * `CLP` - Chilean Peso + + * `CLF` - Chilean Unit of Account (UF) + + * `CNX` - Chinese People’s Bank Dollar + + * `CNY` - Chinese Yuan + + * `CNH` - Chinese Yuan (offshore) + + * `COP` - Colombian Peso + + * `COU` - Colombian Real Value Unit + + * `KMF` - Comorian Franc + + * `CDF` - Congolese Franc + + * `CRC` - Costa Rican Colón + + * `HRD` - Croatian Dinar + + * `HRK` - Croatian Kuna + + * `CUC` - Cuban Convertible Peso + + * `CUP` - Cuban Peso + + * `CYP` - Cypriot Pound + + * `CZK` - Czech Koruna + + * `CSK` - Czechoslovak Hard Koruna + + * `DKK` - Danish Krone + + * `DJF` - Djiboutian Franc + + * `DOP` - Dominican Peso + + * `NLG` - Dutch Guilder + + * `XCD` - East Caribbean Dollar + + * `DDM` - East German Mark + + * `ECS` - Ecuadorian Sucre + + * `ECV` - Ecuadorian Unit of Constant Value + + * `EGP` - Egyptian Pound + + * `GQE` - Equatorial Guinean Ekwele + + * `ERN` - Eritrean Nakfa + + * `EEK` - Estonian Kroon + + * `ETB` - Ethiopian Birr + + * `EUR` - Euro + + * `XBA` - European Composite Unit + + * `XEU` - European Currency Unit + + * `XBB` - European Monetary Unit + + * `XBC` - European Unit of Account (XBC) + + * `XBD` - European Unit of Account (XBD) + + * `FKP` - Falkland Islands Pound + + * `FJD` - Fijian Dollar + + * `FIM` - Finnish Markka + + * `FRF` - French Franc + + * `XFO` - French Gold Franc + + * `XFU` - French UIC-Franc + + * `GMD` - Gambian Dalasi + + * `GEK` - Georgian Kupon Larit + + * `GEL` - Georgian Lari + + * `DEM` - German Mark + + * `GHS` - Ghanaian Cedi + + * `GHC` - Ghanaian Cedi (1979–2007) + + * `GIP` - Gibraltar Pound + + * `XAU` - Gold + + * `GRD` - Greek Drachma + + * `GTQ` - Guatemalan Quetzal + + * `GWP` - Guinea-Bissau Peso + + * `GNF` - Guinean Franc + + * `GNS` - Guinean Syli + + * `GYD` - Guyanaese Dollar + + * `HTG` - Haitian Gourde + + * `HNL` - Honduran Lempira + + * `HKD` - Hong Kong Dollar + + * `HUF` - Hungarian Forint + + * `IMP` - IMP + + * `ISK` - Icelandic Króna + + * `ISJ` - Icelandic Króna (1918–1981) + + * `INR` - Indian Rupee + + * `IDR` - Indonesian Rupiah + + * `IRR` - Iranian Rial + + * `IQD` - Iraqi Dinar + + * `IEP` - Irish Pound + + * `ILS` - Israeli New Shekel + + * `ILP` - Israeli Pound + + * `ILR` - Israeli Shekel (1980–1985) + + * `ITL` - Italian Lira + + * `JMD` - Jamaican Dollar + + * `JPY` - Japanese Yen + + * `JOD` - Jordanian Dinar + + * `KZT` - Kazakhstani Tenge + + * `KES` - Kenyan Shilling + + * `KWD` - Kuwaiti Dinar + + * `KGS` - Kyrgystani Som + + * `LAK` - Laotian Kip + + * `LVL` - Latvian Lats + + * `LVR` - Latvian Ruble + + * `LBP` - Lebanese Pound + + * `LSL` - Lesotho Loti + + * `LRD` - Liberian Dollar + + * `LYD` - Libyan Dinar + + * `LTL` - Lithuanian Litas + + * `LTT` - Lithuanian Talonas + + * `LUL` - Luxembourg Financial Franc + + * `LUC` - Luxembourgian Convertible Franc + + * `LUF` - Luxembourgian Franc + + * `MOP` - Macanese Pataca + + * `MKD` - Macedonian Denar + + * `MKN` - Macedonian Denar (1992–1993) + + * `MGA` - Malagasy Ariary + + * `MGF` - Malagasy Franc + + * `MWK` - Malawian Kwacha + + * `MYR` - Malaysian Ringgit + + * `MVR` - Maldivian Rufiyaa + + * `MVP` - Maldivian Rupee (1947–1981) + + * `MLF` - Malian Franc + + * `MTL` - Maltese Lira + + * `MTP` - Maltese Pound + + * `MRU` - Mauritanian Ouguiya + + * `MRO` - Mauritanian Ouguiya (1973–2017) + + * `MUR` - Mauritian Rupee + + * `MXV` - Mexican Investment Unit + + * `MXN` - Mexican Peso + + * `MXP` - Mexican Silver Peso (1861–1992) + + * `MDC` - Moldovan Cupon + + * `MDL` - Moldovan Leu + + * `MCF` - Monegasque Franc + + * `MNT` - Mongolian Tugrik + + * `MAD` - Moroccan Dirham + + * `MAF` - Moroccan Franc + + * `MZE` - Mozambican Escudo + + * `MZN` - Mozambican Metical + + * `MZM` - Mozambican Metical (1980–2006) + + * `MMK` - Myanmar Kyat + + * `NAD` - Namibian Dollar + + * `NPR` - Nepalese Rupee + + * `ANG` - Netherlands Antillean Guilder + + * `TWD` - New Taiwan Dollar + + * `NZD` - New Zealand Dollar + + * `NIO` - Nicaraguan Córdoba + + * `NIC` - Nicaraguan Córdoba (1988–1991) + + * `NGN` - Nigerian Naira + + * `KPW` - North Korean Won + + * `NOK` - Norwegian Krone + + * `OMR` - Omani Rial + + * `PKR` - Pakistani Rupee + + * `XPD` - Palladium + + * `PAB` - Panamanian Balboa + + * `PGK` - Papua New Guinean Kina + + * `PYG` - Paraguayan Guarani + + * `PEI` - Peruvian Inti + + * `PEN` - Peruvian Sol + + * `PES` - Peruvian Sol (1863–1965) + + * `PHP` - Philippine Peso + + * `XPT` - Platinum + + * `PLN` - Polish Zloty + + * `PLZ` - Polish Zloty (1950–1995) + + * `PTE` - Portuguese Escudo + + * `GWE` - Portuguese Guinea Escudo + + * `QAR` - Qatari Rial + + * `XRE` - RINET Funds + + * `RHD` - Rhodesian Dollar + + * `RON` - Romanian Leu + + * `ROL` - Romanian Leu (1952–2006) + + * `RUB` - Russian Ruble + + * `RUR` - Russian Ruble (1991–1998) + + * `RWF` - Rwandan Franc + + * `SVC` - Salvadoran Colón + + * `WST` - Samoan Tala + + * `SAR` - Saudi Riyal + + * `RSD` - Serbian Dinar + + * `CSD` - Serbian Dinar (2002–2006) + + * `SCR` - Seychellois Rupee + + * `SLL` - Sierra Leonean Leone + + * `XAG` - Silver + + * `SGD` - Singapore Dollar + + * `SKK` - Slovak Koruna + + * `SIT` - Slovenian Tolar + + * `SBD` - Solomon Islands Dollar + + * `SOS` - Somali Shilling + + * `ZAR` - South African Rand + + * `ZAL` - South African Rand (financial) + + * `KRH` - South Korean Hwan (1953–1962) + + * `KRW` - South Korean Won + + * `KRO` - South Korean Won (1945–1953) + + * `SSP` - South Sudanese Pound + + * `SUR` - Soviet Rouble + + * `ESP` - Spanish Peseta + + * `ESA` - Spanish Peseta (A account) + + * `ESB` - Spanish Peseta (convertible account) + + * `XDR` - Special Drawing Rights + + * `LKR` - Sri Lankan Rupee + + * `SHP` - St. Helena Pound + + * `XSU` - Sucre + + * `SDD` - Sudanese Dinar (1992–2007) + + * `SDG` - Sudanese Pound + + * `SDP` - Sudanese Pound (1957–1998) + + * `SRD` - Surinamese Dollar + + * `SRG` - Surinamese Guilder + + * `SZL` - Swazi Lilangeni + + * `SEK` - Swedish Krona + + * `CHF` - Swiss Franc + + * `SYP` - Syrian Pound + + * `STN` - São Tomé & Príncipe Dobra + + * `STD` - São Tomé & Príncipe Dobra (1977–2017) + + * `TVD` - TVD + + * `TJR` - Tajikistani Ruble + + * `TJS` - Tajikistani Somoni + + * `TZS` - Tanzanian Shilling + + * `XTS` - Testing Currency Code + + * `THB` - Thai Baht + + * `XXX` - The codes assigned for transactions where no currency is + involved + + * `TPE` - Timorese Escudo + + * `TOP` - Tongan Paʻanga + + * `TTD` - Trinidad & Tobago Dollar + + * `TND` - Tunisian Dinar + + * `TRY` - Turkish Lira + + * `TRL` - Turkish Lira (1922–2005) + + * `TMT` - Turkmenistani Manat + + * `TMM` - Turkmenistani Manat (1993–2009) + + * `USD` - US Dollar + + * `USN` - US Dollar (Next day) + + * `USS` - US Dollar (Same day) + + * `UGX` - Ugandan Shilling + + * `UGS` - Ugandan Shilling (1966–1987) + + * `UAH` - Ukrainian Hryvnia + + * `UAK` - Ukrainian Karbovanets + + * `AED` - United Arab Emirates Dirham + + * `UYW` - Uruguayan Nominal Wage Index Unit + + * `UYU` - Uruguayan Peso + + * `UYP` - Uruguayan Peso (1975–1993) + + * `UYI` - Uruguayan Peso (Indexed Units) + + * `UZS` - Uzbekistani Som + + * `VUV` - Vanuatu Vatu + + * `VES` - Venezuelan Bolívar + + * `VEB` - Venezuelan Bolívar (1871–2008) + + * `VEF` - Venezuelan Bolívar (2008–2018) + + * `VND` - Vietnamese Dong + + * `VNN` - Vietnamese Dong (1978–1985) + + * `CHE` - WIR Euro + + * `CHW` - WIR Franc + + * `XOF` - West African CFA Franc + + * `YDD` - Yemeni Dinar + + * `YER` - Yemeni Rial + + * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + + * `YUD` - Yugoslavian Hard Dinar (1966–1990) + + * `YUM` - Yugoslavian New Dinar (1994–2002) + + * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + + * `ZWN` - ZWN + + * `ZRN` - Zairean New Zaire (1993–1998) + + * `ZRZ` - Zairean Zaire (1971–1993) + + * `ZMW` - Zambian Kwacha + + * `ZMK` - Zambian Kwacha (1968–2012) + + * `ZWD` - Zimbabwean Dollar (1980–2008) + + * `ZWR` - Zimbabwean Dollar (2008) + + * `ZWL` - Zimbabwean Dollar (2009) + exchange_rate: + type: optional + docs: Exchange rate used if the line item is in a foreign currency. + validation: + pattern: ^-?\d{0,32}(?:\.\d{0,16})?$ + is_billable: + type: optional + docs: Whether the expense line is billable to a client or project. + tracking_categories: + docs: >- + The related tracking categories associated with the expense report + (Department, Location, Class, Expense Category) + type: list + employee: + type: optional + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + project: optional + company: + type: optional + docs: The subsidiary that the expense report is created in + contact: optional + quantity: + type: optional + docs: Quantity for the expense line (e.g., miles driven, items purchased). + unit_price: + type: optional + docs: Price per unit for the expense line (if applicable). + non_reimbursable: + type: optional + docs: >- + Whether the expense line is non-reimbursable (e.g., paid via company + card). + tax_amount: + type: optional + docs: Tax amount applicable for the line item. + inclusive_of_tax: + type: optional + docs: Whether the amount is inclusive of tax. + tax_rate: optional + remote_was_deleted: + type: optional + docs: >- + Indicates whether or not this object has been deleted in the third + party platform. Full coverage deletion detection is a premium add-on. + Native deletion detection is offered for free with limited coverage. + [Learn + more](https://docs.merge.dev/integrations/hris/supported-features/). + access: read-only + remote_fields: + type: optional> + access: read-only + source: + openapi: openapi/openapi.yml + ExpenseReportLineRequestAccount: + discriminated: false + union: + - type: string + validation: + format: uuid + - Account + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineRequestEmployee: + discriminated: false + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + union: + - type: string + validation: + format: uuid + - Employee + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineRequestProject: + discriminated: false + union: + - type: string + validation: + format: uuid + - Project + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineRequestCompany: + discriminated: false + docs: The subsidiary that the expense report is created in + union: + - type: string + validation: + format: uuid + - CompanyInfo + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineRequestContact: + discriminated: false + union: + - type: string + validation: + format: uuid + - Contact + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineRequestTaxRate: + discriminated: false + union: + - type: string + validation: + format: uuid + - TaxRate + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportLineRequest: + docs: >- + # The ExpenseReportLine Object + + ### Description + + The `ExpenseReportLine` object represents an individual line item within + an expense report, containing details about + + a specific expense such as amount, description, and associated metadata. + + + ### Usage Example + + Fetch from the `GET ExpenseReport` endpoint and expand the lines field to + view all line items in the expense report. + properties: + remote_id: + type: optional + docs: The third-party API ID of the matching object. + account: optional + description: + type: optional + docs: Description of the individual expense. + validation: + maxLength: 1024 + expense_date: + type: optional + docs: The date the individual expense was incurred. + amount: + type: optional + docs: The amount of the expense for the line item. + currency: + type: optional + docs: >- + Currency of the expense line (if different from the report currency). + + + * `XUA` - ADB Unit of Account + + * `AFN` - Afghan Afghani + + * `AFA` - Afghan Afghani (1927–2002) + + * `ALL` - Albanian Lek + + * `ALK` - Albanian Lek (1946–1965) + + * `DZD` - Algerian Dinar + + * `ADP` - Andorran Peseta + + * `AOA` - Angolan Kwanza + + * `AOK` - Angolan Kwanza (1977–1991) + + * `AON` - Angolan New Kwanza (1990–2000) + + * `AOR` - Angolan Readjusted Kwanza (1995–1999) + + * `ARA` - Argentine Austral + + * `ARS` - Argentine Peso + + * `ARM` - Argentine Peso (1881–1970) + + * `ARP` - Argentine Peso (1983–1985) + + * `ARL` - Argentine Peso Ley (1970–1983) + + * `AMD` - Armenian Dram + + * `AWG` - Aruban Florin + + * `AUD` - Australian Dollar + + * `ATS` - Austrian Schilling + + * `AZN` - Azerbaijani Manat + + * `AZM` - Azerbaijani Manat (1993–2006) + + * `BSD` - Bahamian Dollar + + * `BHD` - Bahraini Dinar + + * `BDT` - Bangladeshi Taka + + * `BBD` - Barbadian Dollar + + * `BYN` - Belarusian Ruble + + * `BYB` - Belarusian Ruble (1994–1999) + + * `BYR` - Belarusian Ruble (2000–2016) + + * `BEF` - Belgian Franc + + * `BEC` - Belgian Franc (convertible) + + * `BEL` - Belgian Franc (financial) + + * `BZD` - Belize Dollar + + * `BMD` - Bermudan Dollar + + * `BTN` - Bhutanese Ngultrum + + * `BOB` - Bolivian Boliviano + + * `BOL` - Bolivian Boliviano (1863–1963) + + * `BOV` - Bolivian Mvdol + + * `BOP` - Bolivian Peso + + * `BAM` - Bosnia-Herzegovina Convertible Mark + + * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + + * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + + * `BWP` - Botswanan Pula + + * `BRC` - Brazilian Cruzado (1986–1989) + + * `BRZ` - Brazilian Cruzeiro (1942–1967) + + * `BRE` - Brazilian Cruzeiro (1990–1993) + + * `BRR` - Brazilian Cruzeiro (1993–1994) + + * `BRN` - Brazilian New Cruzado (1989–1990) + + * `BRB` - Brazilian New Cruzeiro (1967–1986) + + * `BRL` - Brazilian Real + + * `GBP` - British Pound + + * `BND` - Brunei Dollar + + * `BGL` - Bulgarian Hard Lev + + * `BGN` - Bulgarian Lev + + * `BGO` - Bulgarian Lev (1879–1952) + + * `BGM` - Bulgarian Socialist Lev + + * `BUK` - Burmese Kyat + + * `BIF` - Burundian Franc + + * `XPF` - CFP Franc + + * `KHR` - Cambodian Riel + + * `CAD` - Canadian Dollar + + * `CVE` - Cape Verdean Escudo + + * `KYD` - Cayman Islands Dollar + + * `XAF` - Central African CFA Franc + + * `CLE` - Chilean Escudo + + * `CLP` - Chilean Peso + + * `CLF` - Chilean Unit of Account (UF) + + * `CNX` - Chinese People’s Bank Dollar + + * `CNY` - Chinese Yuan + + * `CNH` - Chinese Yuan (offshore) + + * `COP` - Colombian Peso + + * `COU` - Colombian Real Value Unit + + * `KMF` - Comorian Franc + + * `CDF` - Congolese Franc + + * `CRC` - Costa Rican Colón + + * `HRD` - Croatian Dinar + + * `HRK` - Croatian Kuna + + * `CUC` - Cuban Convertible Peso + + * `CUP` - Cuban Peso + + * `CYP` - Cypriot Pound + + * `CZK` - Czech Koruna + + * `CSK` - Czechoslovak Hard Koruna + + * `DKK` - Danish Krone + + * `DJF` - Djiboutian Franc + + * `DOP` - Dominican Peso + + * `NLG` - Dutch Guilder + + * `XCD` - East Caribbean Dollar + + * `DDM` - East German Mark + + * `ECS` - Ecuadorian Sucre + + * `ECV` - Ecuadorian Unit of Constant Value + + * `EGP` - Egyptian Pound + + * `GQE` - Equatorial Guinean Ekwele + + * `ERN` - Eritrean Nakfa + + * `EEK` - Estonian Kroon + + * `ETB` - Ethiopian Birr + + * `EUR` - Euro + + * `XBA` - European Composite Unit + + * `XEU` - European Currency Unit + + * `XBB` - European Monetary Unit + + * `XBC` - European Unit of Account (XBC) + + * `XBD` - European Unit of Account (XBD) + + * `FKP` - Falkland Islands Pound + + * `FJD` - Fijian Dollar + + * `FIM` - Finnish Markka + + * `FRF` - French Franc + + * `XFO` - French Gold Franc + + * `XFU` - French UIC-Franc + + * `GMD` - Gambian Dalasi + + * `GEK` - Georgian Kupon Larit + + * `GEL` - Georgian Lari + + * `DEM` - German Mark + + * `GHS` - Ghanaian Cedi + + * `GHC` - Ghanaian Cedi (1979–2007) + + * `GIP` - Gibraltar Pound + + * `XAU` - Gold + + * `GRD` - Greek Drachma + + * `GTQ` - Guatemalan Quetzal + + * `GWP` - Guinea-Bissau Peso + + * `GNF` - Guinean Franc + + * `GNS` - Guinean Syli + + * `GYD` - Guyanaese Dollar + + * `HTG` - Haitian Gourde + + * `HNL` - Honduran Lempira + + * `HKD` - Hong Kong Dollar + + * `HUF` - Hungarian Forint + + * `IMP` - IMP + + * `ISK` - Icelandic Króna + + * `ISJ` - Icelandic Króna (1918–1981) + + * `INR` - Indian Rupee + + * `IDR` - Indonesian Rupiah + + * `IRR` - Iranian Rial + + * `IQD` - Iraqi Dinar + + * `IEP` - Irish Pound + + * `ILS` - Israeli New Shekel + + * `ILP` - Israeli Pound + + * `ILR` - Israeli Shekel (1980–1985) + + * `ITL` - Italian Lira + + * `JMD` - Jamaican Dollar + + * `JPY` - Japanese Yen + + * `JOD` - Jordanian Dinar + + * `KZT` - Kazakhstani Tenge + + * `KES` - Kenyan Shilling + + * `KWD` - Kuwaiti Dinar + + * `KGS` - Kyrgystani Som + + * `LAK` - Laotian Kip + + * `LVL` - Latvian Lats + + * `LVR` - Latvian Ruble + + * `LBP` - Lebanese Pound + + * `LSL` - Lesotho Loti + + * `LRD` - Liberian Dollar + + * `LYD` - Libyan Dinar + + * `LTL` - Lithuanian Litas + + * `LTT` - Lithuanian Talonas + + * `LUL` - Luxembourg Financial Franc + + * `LUC` - Luxembourgian Convertible Franc + + * `LUF` - Luxembourgian Franc + + * `MOP` - Macanese Pataca + + * `MKD` - Macedonian Denar + + * `MKN` - Macedonian Denar (1992–1993) + + * `MGA` - Malagasy Ariary + + * `MGF` - Malagasy Franc + + * `MWK` - Malawian Kwacha + + * `MYR` - Malaysian Ringgit + + * `MVR` - Maldivian Rufiyaa + + * `MVP` - Maldivian Rupee (1947–1981) + + * `MLF` - Malian Franc + + * `MTL` - Maltese Lira + + * `MTP` - Maltese Pound + + * `MRU` - Mauritanian Ouguiya + + * `MRO` - Mauritanian Ouguiya (1973–2017) + + * `MUR` - Mauritian Rupee + + * `MXV` - Mexican Investment Unit + + * `MXN` - Mexican Peso + + * `MXP` - Mexican Silver Peso (1861–1992) + + * `MDC` - Moldovan Cupon + + * `MDL` - Moldovan Leu + + * `MCF` - Monegasque Franc + + * `MNT` - Mongolian Tugrik + + * `MAD` - Moroccan Dirham + + * `MAF` - Moroccan Franc + + * `MZE` - Mozambican Escudo + + * `MZN` - Mozambican Metical + + * `MZM` - Mozambican Metical (1980–2006) + + * `MMK` - Myanmar Kyat + + * `NAD` - Namibian Dollar + + * `NPR` - Nepalese Rupee + + * `ANG` - Netherlands Antillean Guilder + + * `TWD` - New Taiwan Dollar + + * `NZD` - New Zealand Dollar + + * `NIO` - Nicaraguan Córdoba + + * `NIC` - Nicaraguan Córdoba (1988–1991) + + * `NGN` - Nigerian Naira + + * `KPW` - North Korean Won + + * `NOK` - Norwegian Krone + + * `OMR` - Omani Rial + + * `PKR` - Pakistani Rupee + + * `XPD` - Palladium + + * `PAB` - Panamanian Balboa + + * `PGK` - Papua New Guinean Kina + + * `PYG` - Paraguayan Guarani + + * `PEI` - Peruvian Inti + + * `PEN` - Peruvian Sol + + * `PES` - Peruvian Sol (1863–1965) + + * `PHP` - Philippine Peso + + * `XPT` - Platinum + + * `PLN` - Polish Zloty + + * `PLZ` - Polish Zloty (1950–1995) + + * `PTE` - Portuguese Escudo + + * `GWE` - Portuguese Guinea Escudo + + * `QAR` - Qatari Rial + + * `XRE` - RINET Funds + + * `RHD` - Rhodesian Dollar + + * `RON` - Romanian Leu + + * `ROL` - Romanian Leu (1952–2006) + + * `RUB` - Russian Ruble + + * `RUR` - Russian Ruble (1991–1998) + + * `RWF` - Rwandan Franc + + * `SVC` - Salvadoran Colón + + * `WST` - Samoan Tala + + * `SAR` - Saudi Riyal + + * `RSD` - Serbian Dinar + + * `CSD` - Serbian Dinar (2002–2006) + + * `SCR` - Seychellois Rupee + + * `SLL` - Sierra Leonean Leone + + * `XAG` - Silver + + * `SGD` - Singapore Dollar + + * `SKK` - Slovak Koruna + + * `SIT` - Slovenian Tolar + + * `SBD` - Solomon Islands Dollar + + * `SOS` - Somali Shilling + + * `ZAR` - South African Rand + + * `ZAL` - South African Rand (financial) + + * `KRH` - South Korean Hwan (1953–1962) + + * `KRW` - South Korean Won + + * `KRO` - South Korean Won (1945–1953) + + * `SSP` - South Sudanese Pound + + * `SUR` - Soviet Rouble + + * `ESP` - Spanish Peseta + + * `ESA` - Spanish Peseta (A account) + + * `ESB` - Spanish Peseta (convertible account) + + * `XDR` - Special Drawing Rights + + * `LKR` - Sri Lankan Rupee + + * `SHP` - St. Helena Pound + + * `XSU` - Sucre + + * `SDD` - Sudanese Dinar (1992–2007) + + * `SDG` - Sudanese Pound + + * `SDP` - Sudanese Pound (1957–1998) + + * `SRD` - Surinamese Dollar + + * `SRG` - Surinamese Guilder + + * `SZL` - Swazi Lilangeni + + * `SEK` - Swedish Krona + + * `CHF` - Swiss Franc + + * `SYP` - Syrian Pound + + * `STN` - São Tomé & Príncipe Dobra + + * `STD` - São Tomé & Príncipe Dobra (1977–2017) + + * `TVD` - TVD + + * `TJR` - Tajikistani Ruble + + * `TJS` - Tajikistani Somoni + + * `TZS` - Tanzanian Shilling + + * `XTS` - Testing Currency Code + + * `THB` - Thai Baht + + * `XXX` - The codes assigned for transactions where no currency is + involved + + * `TPE` - Timorese Escudo + + * `TOP` - Tongan Paʻanga + + * `TTD` - Trinidad & Tobago Dollar + + * `TND` - Tunisian Dinar + + * `TRY` - Turkish Lira + + * `TRL` - Turkish Lira (1922–2005) + + * `TMT` - Turkmenistani Manat + + * `TMM` - Turkmenistani Manat (1993–2009) + + * `USD` - US Dollar + + * `USN` - US Dollar (Next day) + + * `USS` - US Dollar (Same day) + + * `UGX` - Ugandan Shilling + + * `UGS` - Ugandan Shilling (1966–1987) + + * `UAH` - Ukrainian Hryvnia + + * `UAK` - Ukrainian Karbovanets + + * `AED` - United Arab Emirates Dirham + + * `UYW` - Uruguayan Nominal Wage Index Unit + + * `UYU` - Uruguayan Peso + + * `UYP` - Uruguayan Peso (1975–1993) + + * `UYI` - Uruguayan Peso (Indexed Units) + + * `UZS` - Uzbekistani Som + + * `VUV` - Vanuatu Vatu + + * `VES` - Venezuelan Bolívar + + * `VEB` - Venezuelan Bolívar (1871–2008) + + * `VEF` - Venezuelan Bolívar (2008–2018) + + * `VND` - Vietnamese Dong + + * `VNN` - Vietnamese Dong (1978–1985) + + * `CHE` - WIR Euro + + * `CHW` - WIR Franc + + * `XOF` - West African CFA Franc + + * `YDD` - Yemeni Dinar + + * `YER` - Yemeni Rial + + * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + + * `YUD` - Yugoslavian Hard Dinar (1966–1990) + + * `YUM` - Yugoslavian New Dinar (1994–2002) + + * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + + * `ZWN` - ZWN + + * `ZRN` - Zairean New Zaire (1993–1998) + + * `ZRZ` - Zairean Zaire (1971–1993) + + * `ZMW` - Zambian Kwacha + + * `ZMK` - Zambian Kwacha (1968–2012) + + * `ZWD` - Zimbabwean Dollar (1980–2008) + + * `ZWR` - Zimbabwean Dollar (2008) + + * `ZWL` - Zimbabwean Dollar (2009) + exchange_rate: + type: optional + docs: Exchange rate used if the line item is in a foreign currency. + validation: + pattern: ^-?\d{0,32}(?:\.\d{0,16})?$ + is_billable: + type: optional + docs: Whether the expense line is billable to a client or project. + tracking_categories: + docs: >- + The related tracking categories associated with the expense report + (Department, Location, Class, Expense Category) + type: list + employee: + type: optional + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + project: optional + company: + type: optional + docs: The subsidiary that the expense report is created in + contact: optional + quantity: + type: optional + docs: Quantity for the expense line (e.g., miles driven, items purchased). + unit_price: + type: optional + docs: Price per unit for the expense line (if applicable). + non_reimbursable: + type: optional + docs: >- + Whether the expense line is non-reimbursable (e.g., paid via company + card). + tax_amount: + type: optional + docs: Tax amount applicable for the line item. + inclusive_of_tax: + type: optional + docs: Whether the amount is inclusive of tax. + tax_rate: optional + integration_params: + type: optional> + access: write-only + linked_account_params: + type: optional> + access: write-only + remote_fields: + type: optional> + access: write-only + source: + openapi: openapi/openapi.yml + ExpenseReportRequestEmployee: + discriminated: false + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + union: + - type: string + validation: + format: uuid + - Employee + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportRequestAccountingPeriod: + discriminated: false + docs: The accounting period the report was posted in + union: + - type: string + validation: + format: uuid + - AccountingPeriod + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportRequestCompany: + discriminated: false + docs: The subsidiary that the expense report is created in + union: + - type: string + validation: + format: uuid + - CompanyInfo + source: + openapi: openapi/openapi.yml + inline: true + ExpenseReportRequest: + docs: >- + # The ExpenseReport Object + + ### Description + + The `ExpenseReport` object represents a collection of expenses submitted + for review and reimbursement. + + It includes details about the submitter, status, amounts, and associated + metadata. + + + ### Usage Example + + Fetch from the `GET ExpenseReport` endpoint to view details of expense + reports and their line items. + properties: + report_date: + type: optional + docs: The date of the expense report. + report_identifier: + type: optional + docs: Human-readable expense report identifier. + validation: + maxLength: 1024 + employee: + type: optional + docs: >- + Identifier for the employee who submitted or is associated with the + expense report + status: + type: optional + docs: >- + Overall status of the expense report. One of DRAFT, SUBMITTED, + APPROVED, REJECTED + + + * `DRAFT` - DRAFT + + * `SUBMITTED` - SUBMITTED + + * `APPROVED` - APPROVED + + * `REJECTED` - REJECTED + total_amount: + type: optional + docs: Total amount of the expense report + currency: + type: optional + docs: >- + Currency code for the expense report + + + * `XUA` - ADB Unit of Account + + * `AFN` - Afghan Afghani + + * `AFA` - Afghan Afghani (1927–2002) + + * `ALL` - Albanian Lek + + * `ALK` - Albanian Lek (1946–1965) + + * `DZD` - Algerian Dinar + + * `ADP` - Andorran Peseta + + * `AOA` - Angolan Kwanza + + * `AOK` - Angolan Kwanza (1977–1991) + + * `AON` - Angolan New Kwanza (1990–2000) + + * `AOR` - Angolan Readjusted Kwanza (1995–1999) + + * `ARA` - Argentine Austral + + * `ARS` - Argentine Peso + + * `ARM` - Argentine Peso (1881–1970) + + * `ARP` - Argentine Peso (1983–1985) + + * `ARL` - Argentine Peso Ley (1970–1983) + + * `AMD` - Armenian Dram + + * `AWG` - Aruban Florin + + * `AUD` - Australian Dollar + + * `ATS` - Austrian Schilling + + * `AZN` - Azerbaijani Manat + + * `AZM` - Azerbaijani Manat (1993–2006) + + * `BSD` - Bahamian Dollar + + * `BHD` - Bahraini Dinar + + * `BDT` - Bangladeshi Taka + + * `BBD` - Barbadian Dollar + + * `BYN` - Belarusian Ruble + + * `BYB` - Belarusian Ruble (1994–1999) + + * `BYR` - Belarusian Ruble (2000–2016) + + * `BEF` - Belgian Franc + + * `BEC` - Belgian Franc (convertible) + + * `BEL` - Belgian Franc (financial) + + * `BZD` - Belize Dollar + + * `BMD` - Bermudan Dollar + + * `BTN` - Bhutanese Ngultrum + + * `BOB` - Bolivian Boliviano + + * `BOL` - Bolivian Boliviano (1863–1963) + + * `BOV` - Bolivian Mvdol + + * `BOP` - Bolivian Peso + + * `BAM` - Bosnia-Herzegovina Convertible Mark + + * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + + * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + + * `BWP` - Botswanan Pula + + * `BRC` - Brazilian Cruzado (1986–1989) + + * `BRZ` - Brazilian Cruzeiro (1942–1967) + + * `BRE` - Brazilian Cruzeiro (1990–1993) + + * `BRR` - Brazilian Cruzeiro (1993–1994) + + * `BRN` - Brazilian New Cruzado (1989–1990) + + * `BRB` - Brazilian New Cruzeiro (1967–1986) + + * `BRL` - Brazilian Real + + * `GBP` - British Pound + + * `BND` - Brunei Dollar + + * `BGL` - Bulgarian Hard Lev + + * `BGN` - Bulgarian Lev + + * `BGO` - Bulgarian Lev (1879–1952) + + * `BGM` - Bulgarian Socialist Lev + + * `BUK` - Burmese Kyat + + * `BIF` - Burundian Franc + + * `XPF` - CFP Franc + + * `KHR` - Cambodian Riel + + * `CAD` - Canadian Dollar + + * `CVE` - Cape Verdean Escudo + + * `KYD` - Cayman Islands Dollar + + * `XAF` - Central African CFA Franc + + * `CLE` - Chilean Escudo + + * `CLP` - Chilean Peso + + * `CLF` - Chilean Unit of Account (UF) + + * `CNX` - Chinese People’s Bank Dollar + + * `CNY` - Chinese Yuan + + * `CNH` - Chinese Yuan (offshore) + + * `COP` - Colombian Peso + + * `COU` - Colombian Real Value Unit + + * `KMF` - Comorian Franc + + * `CDF` - Congolese Franc + + * `CRC` - Costa Rican Colón + + * `HRD` - Croatian Dinar + + * `HRK` - Croatian Kuna + + * `CUC` - Cuban Convertible Peso + + * `CUP` - Cuban Peso + + * `CYP` - Cypriot Pound + + * `CZK` - Czech Koruna + + * `CSK` - Czechoslovak Hard Koruna + + * `DKK` - Danish Krone + + * `DJF` - Djiboutian Franc + + * `DOP` - Dominican Peso + + * `NLG` - Dutch Guilder + + * `XCD` - East Caribbean Dollar + + * `DDM` - East German Mark + + * `ECS` - Ecuadorian Sucre + + * `ECV` - Ecuadorian Unit of Constant Value + + * `EGP` - Egyptian Pound + + * `GQE` - Equatorial Guinean Ekwele + + * `ERN` - Eritrean Nakfa + + * `EEK` - Estonian Kroon + + * `ETB` - Ethiopian Birr + + * `EUR` - Euro + + * `XBA` - European Composite Unit + + * `XEU` - European Currency Unit + + * `XBB` - European Monetary Unit + + * `XBC` - European Unit of Account (XBC) + + * `XBD` - European Unit of Account (XBD) + + * `FKP` - Falkland Islands Pound + + * `FJD` - Fijian Dollar + + * `FIM` - Finnish Markka + + * `FRF` - French Franc + + * `XFO` - French Gold Franc + + * `XFU` - French UIC-Franc + + * `GMD` - Gambian Dalasi + + * `GEK` - Georgian Kupon Larit + + * `GEL` - Georgian Lari + + * `DEM` - German Mark + + * `GHS` - Ghanaian Cedi + + * `GHC` - Ghanaian Cedi (1979–2007) + + * `GIP` - Gibraltar Pound + + * `XAU` - Gold + + * `GRD` - Greek Drachma + + * `GTQ` - Guatemalan Quetzal + + * `GWP` - Guinea-Bissau Peso + + * `GNF` - Guinean Franc + + * `GNS` - Guinean Syli + + * `GYD` - Guyanaese Dollar + + * `HTG` - Haitian Gourde + + * `HNL` - Honduran Lempira + + * `HKD` - Hong Kong Dollar + + * `HUF` - Hungarian Forint + + * `IMP` - IMP + + * `ISK` - Icelandic Króna + + * `ISJ` - Icelandic Króna (1918–1981) + + * `INR` - Indian Rupee + + * `IDR` - Indonesian Rupiah + + * `IRR` - Iranian Rial + + * `IQD` - Iraqi Dinar + + * `IEP` - Irish Pound + + * `ILS` - Israeli New Shekel + + * `ILP` - Israeli Pound + + * `ILR` - Israeli Shekel (1980–1985) + + * `ITL` - Italian Lira + + * `JMD` - Jamaican Dollar + + * `JPY` - Japanese Yen + + * `JOD` - Jordanian Dinar + + * `KZT` - Kazakhstani Tenge + + * `KES` - Kenyan Shilling + + * `KWD` - Kuwaiti Dinar + + * `KGS` - Kyrgystani Som + + * `LAK` - Laotian Kip + + * `LVL` - Latvian Lats + + * `LVR` - Latvian Ruble + + * `LBP` - Lebanese Pound + + * `LSL` - Lesotho Loti + + * `LRD` - Liberian Dollar + + * `LYD` - Libyan Dinar + + * `LTL` - Lithuanian Litas + + * `LTT` - Lithuanian Talonas + + * `LUL` - Luxembourg Financial Franc + + * `LUC` - Luxembourgian Convertible Franc + + * `LUF` - Luxembourgian Franc + + * `MOP` - Macanese Pataca + + * `MKD` - Macedonian Denar + + * `MKN` - Macedonian Denar (1992–1993) + + * `MGA` - Malagasy Ariary + + * `MGF` - Malagasy Franc + + * `MWK` - Malawian Kwacha + + * `MYR` - Malaysian Ringgit + + * `MVR` - Maldivian Rufiyaa + + * `MVP` - Maldivian Rupee (1947–1981) + + * `MLF` - Malian Franc + + * `MTL` - Maltese Lira + + * `MTP` - Maltese Pound + + * `MRU` - Mauritanian Ouguiya + + * `MRO` - Mauritanian Ouguiya (1973–2017) + + * `MUR` - Mauritian Rupee + + * `MXV` - Mexican Investment Unit + + * `MXN` - Mexican Peso + + * `MXP` - Mexican Silver Peso (1861–1992) + + * `MDC` - Moldovan Cupon + + * `MDL` - Moldovan Leu + + * `MCF` - Monegasque Franc + + * `MNT` - Mongolian Tugrik + + * `MAD` - Moroccan Dirham + + * `MAF` - Moroccan Franc + + * `MZE` - Mozambican Escudo + + * `MZN` - Mozambican Metical + + * `MZM` - Mozambican Metical (1980–2006) + + * `MMK` - Myanmar Kyat + + * `NAD` - Namibian Dollar + + * `NPR` - Nepalese Rupee + + * `ANG` - Netherlands Antillean Guilder + + * `TWD` - New Taiwan Dollar + + * `NZD` - New Zealand Dollar + + * `NIO` - Nicaraguan Córdoba + + * `NIC` - Nicaraguan Córdoba (1988–1991) + + * `NGN` - Nigerian Naira + + * `KPW` - North Korean Won + + * `NOK` - Norwegian Krone + + * `OMR` - Omani Rial + + * `PKR` - Pakistani Rupee + + * `XPD` - Palladium + + * `PAB` - Panamanian Balboa + + * `PGK` - Papua New Guinean Kina + + * `PYG` - Paraguayan Guarani + + * `PEI` - Peruvian Inti + + * `PEN` - Peruvian Sol + + * `PES` - Peruvian Sol (1863–1965) + + * `PHP` - Philippine Peso + + * `XPT` - Platinum + + * `PLN` - Polish Zloty + + * `PLZ` - Polish Zloty (1950–1995) + + * `PTE` - Portuguese Escudo + + * `GWE` - Portuguese Guinea Escudo + + * `QAR` - Qatari Rial + + * `XRE` - RINET Funds + + * `RHD` - Rhodesian Dollar + + * `RON` - Romanian Leu + + * `ROL` - Romanian Leu (1952–2006) + + * `RUB` - Russian Ruble + + * `RUR` - Russian Ruble (1991–1998) + + * `RWF` - Rwandan Franc + + * `SVC` - Salvadoran Colón + + * `WST` - Samoan Tala + + * `SAR` - Saudi Riyal + + * `RSD` - Serbian Dinar + + * `CSD` - Serbian Dinar (2002–2006) + + * `SCR` - Seychellois Rupee + + * `SLL` - Sierra Leonean Leone + + * `XAG` - Silver + + * `SGD` - Singapore Dollar + + * `SKK` - Slovak Koruna + + * `SIT` - Slovenian Tolar + + * `SBD` - Solomon Islands Dollar + + * `SOS` - Somali Shilling + + * `ZAR` - South African Rand + + * `ZAL` - South African Rand (financial) + + * `KRH` - South Korean Hwan (1953–1962) + + * `KRW` - South Korean Won + + * `KRO` - South Korean Won (1945–1953) + + * `SSP` - South Sudanese Pound + + * `SUR` - Soviet Rouble + + * `ESP` - Spanish Peseta + + * `ESA` - Spanish Peseta (A account) + + * `ESB` - Spanish Peseta (convertible account) + + * `XDR` - Special Drawing Rights + + * `LKR` - Sri Lankan Rupee + + * `SHP` - St. Helena Pound + + * `XSU` - Sucre + + * `SDD` - Sudanese Dinar (1992–2007) + + * `SDG` - Sudanese Pound + + * `SDP` - Sudanese Pound (1957–1998) + + * `SRD` - Surinamese Dollar + + * `SRG` - Surinamese Guilder + + * `SZL` - Swazi Lilangeni + + * `SEK` - Swedish Krona + + * `CHF` - Swiss Franc + + * `SYP` - Syrian Pound + + * `STN` - São Tomé & Príncipe Dobra + + * `STD` - São Tomé & Príncipe Dobra (1977–2017) + + * `TVD` - TVD + + * `TJR` - Tajikistani Ruble + + * `TJS` - Tajikistani Somoni + + * `TZS` - Tanzanian Shilling + + * `XTS` - Testing Currency Code + + * `THB` - Thai Baht + + * `XXX` - The codes assigned for transactions where no currency is + involved + + * `TPE` - Timorese Escudo + + * `TOP` - Tongan Paʻanga + + * `TTD` - Trinidad & Tobago Dollar + + * `TND` - Tunisian Dinar + + * `TRY` - Turkish Lira + + * `TRL` - Turkish Lira (1922–2005) + + * `TMT` - Turkmenistani Manat + + * `TMM` - Turkmenistani Manat (1993–2009) + + * `USD` - US Dollar + + * `USN` - US Dollar (Next day) + + * `USS` - US Dollar (Same day) + + * `UGX` - Ugandan Shilling + + * `UGS` - Ugandan Shilling (1966–1987) + + * `UAH` - Ukrainian Hryvnia + + * `UAK` - Ukrainian Karbovanets + + * `AED` - United Arab Emirates Dirham + + * `UYW` - Uruguayan Nominal Wage Index Unit + + * `UYU` - Uruguayan Peso + + * `UYP` - Uruguayan Peso (1975–1993) + + * `UYI` - Uruguayan Peso (Indexed Units) + + * `UZS` - Uzbekistani Som + + * `VUV` - Vanuatu Vatu + + * `VES` - Venezuelan Bolívar + + * `VEB` - Venezuelan Bolívar (1871–2008) + + * `VEF` - Venezuelan Bolívar (2008–2018) + + * `VND` - Vietnamese Dong + + * `VNN` - Vietnamese Dong (1978–1985) + + * `CHE` - WIR Euro + + * `CHW` - WIR Franc + + * `XOF` - West African CFA Franc + + * `YDD` - Yemeni Dinar + + * `YER` - Yemeni Rial + + * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + + * `YUD` - Yugoslavian Hard Dinar (1966–1990) + + * `YUM` - Yugoslavian New Dinar (1994–2002) + + * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + + * `ZWN` - ZWN + + * `ZRN` - Zairean New Zaire (1993–1998) + + * `ZRZ` - Zairean Zaire (1971–1993) + + * `ZMW` - Zambian Kwacha + + * `ZMK` - Zambian Kwacha (1968–2012) + + * `ZWD` - Zimbabwean Dollar (1980–2008) + + * `ZWR` - Zimbabwean Dollar (2008) + + * `ZWL` - Zimbabwean Dollar (2009) + description: + type: optional + docs: A brief description or purpose for the expense report + validation: + maxLength: 1024 + accounting_period: + type: optional + docs: The accounting period the report was posted in + company: + type: optional + docs: The subsidiary that the expense report is created in + tracking_categories: + docs: The related tracking categories associated with the expense report + type: list + integration_params: + type: optional> + access: write-only + linked_account_params: + type: optional> + access: write-only + remote_fields: + type: optional> + access: write-only + source: + openapi: openapi/openapi.yml + ExpenseReportResponse: + properties: + model: ExpenseReport + warnings: list + errors: list + logs: optional> + source: + openapi: openapi/openapi.yml + ExpenseReportStatusEnum: + enum: + - DRAFT + - SUBMITTED + - APPROVED + - REJECTED + docs: |- + * `DRAFT` - DRAFT + * `SUBMITTED` - SUBMITTED + * `APPROVED` - APPROVED + * `REJECTED` - REJECTED + source: + openapi: openapi/openapi.yml ExpenseRequestAccount: discriminated: false docs: The expense's payment account. @@ -12716,6 +15745,7 @@ types: CreditNote: optional> Item: optional> PurchaseOrder: optional> + ExpenseReport: optional> TrackingCategory: optional> JournalEntry: optional> TaxRate: optional> @@ -12813,6 +15843,7 @@ types: CreditNote: optional> Item: optional> PurchaseOrder: optional> + ExpenseReport: optional> TrackingCategory: optional> JournalEntry: optional> TaxRate: optional> @@ -18507,6 +21538,15 @@ types: * `ACTIVE` - ACTIVE * `ARCHIVED` - ARCHIVED + type: + type: optional + docs: |- + The item's type. + + * `INVENTORY` - INVENTORY + * `NON_INVENTORY` - NON_INVENTORY + * `SERVICE` - SERVICE + * `UNKNOWN` - UNKNOWN unit_price: type: optional docs: The item's unit price. @@ -21930,6 +24970,20 @@ types: results: optional> source: openapi: openapi/openapi.yml + PaginatedExpenseReportLineList: + properties: + next: optional + previous: optional + results: optional> + source: + openapi: openapi/openapi.yml + PaginatedExpenseReportList: + properties: + next: optional + previous: optional + results: optional> + source: + openapi: openapi/openapi.yml PaginatedGeneralLedgerTransactionList: properties: next: optional @@ -22049,6 +25103,83 @@ types: results: optional> source: openapi: openapi/openapi.yml + PatchedContactRequestAddressesItem: + discriminated: false + union: + - type: string + validation: + format: uuid + - Address + source: + openapi: openapi/openapi.yml + inline: true + PatchedContactRequest: + docs: >- + # The Contact Object + + ### Description + + A `Contact` is an individual or business entity to which products and + services are sold to or purchased from. The `Contact` model contains both + Customers, in which products and services are sold to, and Vendors (or + Suppliers), in which products and services are purchased from. + + * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. + + * A `Contact` is a customer if the `is_customer` property is true. + + + ### Usage Example + + Fetch from the `LIST Contacts` endpoint and view a company's contacts. + properties: + name: + type: optional + docs: The contact's name. + is_supplier: + type: optional + docs: Whether the contact is a supplier. + is_customer: + type: optional + docs: Whether the contact is a customer. + email_address: + type: optional + docs: The contact's email address. + tax_number: + type: optional + docs: The contact's tax number. + status: + type: optional + docs: |- + The contact's status + + * `ACTIVE` - ACTIVE + * `ARCHIVED` - ARCHIVED + currency: + type: optional + docs: The currency the contact's transactions are in. + company: + type: optional + docs: The company the contact belongs to. + validation: + format: uuid + addresses: + type: optional>> + docs: '`Address` object IDs for the given `Contacts` object.' + phone_numbers: + type: optional> + docs: '`AccountingPhoneNumber` object for the given `Contacts` object.' + integration_params: + type: optional> + access: write-only + linked_account_params: + type: optional> + access: write-only + remote_fields: + type: optional> + access: write-only + source: + openapi: openapi/openapi.yml PatchedItemRequestRequest: docs: |- # The Item Object @@ -27871,6 +31002,7 @@ types: remote_key_name: optional description: optional is_custom: optional + is_common_model_field: optional is_required: optional field_type: optional field_format: optional diff --git a/.mock/definition/accounting/accountDetails.yml b/.mock/definition/accounting/accountDetails.yml index a9e9606f..300d24e0 100644 --- a/.mock/definition/accounting/accountDetails.yml +++ b/.mock/definition/accounting/accountDetails.yml @@ -16,7 +16,8 @@ service: type: root.AccountDetails status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd diff --git a/.mock/definition/accounting/accountToken.yml b/.mock/definition/accounting/accountToken.yml index e5fa0475..0f3134f8 100644 --- a/.mock/definition/accounting/accountToken.yml +++ b/.mock/definition/accounting/accountToken.yml @@ -22,6 +22,8 @@ service: examples: - path-parameters: public_token: public_token + headers: + X-Account-Token: '[object Object]' response: body: account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB diff --git a/.mock/definition/accounting/accountingPeriods.yml b/.mock/definition/accounting/accountingPeriods.yml index d6fc7c6b..4adc5e1b 100644 --- a/.mock/definition/accounting/accountingPeriods.yml +++ b/.mock/definition/accounting/accountingPeriods.yml @@ -43,7 +43,10 @@ service: type: root.PaginatedAccountingPeriodList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -95,7 +98,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 3015f7b1-4d01-460d-bfab-02a52d16cbd0 diff --git a/.mock/definition/accounting/accounts.yml b/.mock/definition/accounting/accounts.yml index c6746098..7f5c1aac 100644 --- a/.mock/definition/accounting/accounts.yml +++ b/.mock/definition/accounting/accounts.yml @@ -127,7 +127,10 @@ service: type: root.PaginatedAccountList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -185,7 +188,8 @@ service: type: root.AccountResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -280,7 +284,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 @@ -320,7 +325,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/addresses.yml b/.mock/definition/accounting/addresses.yml index 989f0df1..c8ae7626 100644 --- a/.mock/definition/accounting/addresses.yml +++ b/.mock/definition/accounting/addresses.yml @@ -43,7 +43,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: created_at: '2021-09-15T00:00:00Z' diff --git a/.mock/definition/accounting/asyncPassthrough.yml b/.mock/definition/accounting/asyncPassthrough.yml index da15bafd..2a665ed2 100644 --- a/.mock/definition/accounting/asyncPassthrough.yml +++ b/.mock/definition/accounting/asyncPassthrough.yml @@ -21,7 +21,8 @@ service: type: root.AsyncPassthroughReciept status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters @@ -44,7 +45,8 @@ service: examples: - path-parameters: async_passthrough_receipt_id: async_passthrough_receipt_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: method: GET diff --git a/.mock/definition/accounting/asyncTasks.yml b/.mock/definition/accounting/asyncTasks.yml index 6365c3ab..ae58d998 100644 --- a/.mock/definition/accounting/asyncTasks.yml +++ b/.mock/definition/accounting/asyncTasks.yml @@ -20,7 +20,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: status: QUEUED diff --git a/.mock/definition/accounting/attachments.yml b/.mock/definition/accounting/attachments.yml index cae3762b..2487a3cf 100644 --- a/.mock/definition/accounting/attachments.yml +++ b/.mock/definition/accounting/attachments.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedAccountingAttachmentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -120,7 +123,8 @@ service: type: root.AccountingAttachmentResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -193,7 +197,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 @@ -226,7 +231,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/auditTrail.yml b/.mock/definition/accounting/auditTrail.yml index 6e1b8672..0dcfb086 100644 --- a/.mock/definition/accounting/auditTrail.yml +++ b/.mock/definition/accounting/auditTrail.yml @@ -75,7 +75,11 @@ service: type: root.PaginatedAuditLogEventList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/accounting/availableActions.yml b/.mock/definition/accounting/availableActions.yml index 35fca3fa..e7a930de 100644 --- a/.mock/definition/accounting/availableActions.yml +++ b/.mock/definition/accounting/availableActions.yml @@ -16,7 +16,8 @@ service: type: root.AvailableActions status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: integration: diff --git a/.mock/definition/accounting/balanceSheets.yml b/.mock/definition/accounting/balanceSheets.yml index dde810e4..28152b37 100644 --- a/.mock/definition/accounting/balanceSheets.yml +++ b/.mock/definition/accounting/balanceSheets.yml @@ -72,7 +72,10 @@ service: type: root.PaginatedBalanceSheetList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -169,7 +172,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 9871b4a9-f5d2-4f3b-a66b-dfedbed42c46 diff --git a/.mock/definition/accounting/bankFeedAccounts.yml b/.mock/definition/accounting/bankFeedAccounts.yml index 2e64d197..a5d6ed06 100644 --- a/.mock/definition/accounting/bankFeedAccounts.yml +++ b/.mock/definition/accounting/bankFeedAccounts.yml @@ -43,7 +43,10 @@ service: type: root.PaginatedBankFeedAccountList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -96,7 +99,8 @@ service: type: root.BankFeedAccountResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -173,7 +177,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b26fd49a-cbae-470a-a8f8-bcbc119e0390 @@ -210,7 +215,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/bankFeedTransactions.yml b/.mock/definition/accounting/bankFeedTransactions.yml index 682615d0..7a1d41c9 100644 --- a/.mock/definition/accounting/bankFeedTransactions.yml +++ b/.mock/definition/accounting/bankFeedTransactions.yml @@ -74,7 +74,10 @@ service: type: root.PaginatedBankFeedTransactionList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -122,7 +125,8 @@ service: type: root.BankFeedTransactionResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -197,7 +201,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b26fd49a-cbae-470a-a8f8-bcbc119e0390 @@ -227,7 +232,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/cashFlowStatements.yml b/.mock/definition/accounting/cashFlowStatements.yml index 179afb9c..2db3914f 100644 --- a/.mock/definition/accounting/cashFlowStatements.yml +++ b/.mock/definition/accounting/cashFlowStatements.yml @@ -74,7 +74,10 @@ service: type: root.PaginatedCashFlowStatementList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -170,7 +173,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 5b3c1341-a20f-4e51-b72c-f3830a16c97b diff --git a/.mock/definition/accounting/companyInfo.yml b/.mock/definition/accounting/companyInfo.yml index 488a4308..33953306 100644 --- a/.mock/definition/accounting/companyInfo.yml +++ b/.mock/definition/accounting/companyInfo.yml @@ -86,7 +86,10 @@ service: type: root.PaginatedCompanyInfoList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -159,7 +162,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 65d8ffd0-211b-4ba4-b85a-fbe2ce220982 diff --git a/.mock/definition/accounting/contacts.yml b/.mock/definition/accounting/contacts.yml index ba75cfb4..c03c5880 100644 --- a/.mock/definition/accounting/contacts.yml +++ b/.mock/definition/accounting/contacts.yml @@ -137,7 +137,10 @@ service: type: root.PaginatedContactList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -203,7 +206,8 @@ service: type: root.ContactResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -311,7 +315,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: c640b80b-fac9-409f-aa19-1f9221aec445 @@ -349,6 +354,286 @@ service: - remote_field_class: remote_field_class value: key: value + partialUpdate: + path: /accounting/v1/contacts/{id} + method: PATCH + auth: true + docs: Updates a `Contact` object with the given `id`. + source: + openapi: openapi/openapi.yml + path-parameters: + id: string + request: + name: PatchedContactEndpointRequest + query-parameters: + is_debug_mode: + type: optional + docs: >- + Whether to include debug fields (such as log file links) in the + response. + run_async: + type: optional + docs: Whether or not third-party updates should be run asynchronously. + body: + properties: + model: root.PatchedContactRequest + content-type: application/json + response: + docs: '' + type: root.ContactResponse + status-code: 200 + examples: + - path-parameters: + id: id + headers: + X-Account-Token: X-Account-Token + request: + model: {} + response: + body: + model: + id: c640b80b-fac9-409f-aa19-1f9221aec445 + remote_id: '11167' + created_at: '2021-09-15T00:00:00Z' + modified_at: '2021-10-16T00:00:00Z' + name: Gil Feig's pickleball store + is_supplier: true + is_customer: true + email_address: pickleball@merge.dev + tax_number: 12-3456789 + status: ACTIVE + currency: USD + remote_updated_at: '2020-03-31T00:00:00Z' + company: 595c8f97-2ac4-45b7-b000-41bdf43240b5 + addresses: + - 2f2702aa-8948-492b-a412-2acdf6d2c499 + - d98c7428-8dda-48a8-a1da-c570f65e2375 + phone_numbers: + - created_at: '2021-09-15T00:00:00Z' + modified_at: '2021-10-16T00:00:00Z' + number: '+3198675309' + type: Mobile + remote_was_deleted: true + field_mappings: + organization_defined_targets: + custom_key: custom_value + linked_account_defined_targets: + custom_key: custom_value + remote_data: + - path: /actions + data: + - Varies by platform + remote_fields: + - remote_field_class: remote_field_class + warnings: + - source: + pointer: pointer + title: Unrecognized Field + detail: An unrecognized field, age, was passed in with request data. + problem_type: UNRECOGNIZED_FIELD + errors: + - source: + pointer: pointer + title: Missing Required Field + detail: custom_fields is a required field on model. + problem_type: MISSING_REQUIRED_FIELD + logs: + - log_id: 99433219-8017-4acd-bb3c-ceb23d663832 + dashboard_view: >- + https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832 + log_summary: + url: www.exampleintegration.com/api/v1/exampleapi + method: POST + status_code: 200 + metaPatchRetrieve: + path: /accounting/v1/contacts/meta/patch/{id} + method: GET + auth: true + docs: Returns metadata for `Contact` PATCHs. + source: + openapi: openapi/openapi.yml + path-parameters: + id: string + response: + docs: '' + type: root.MetaResponse + status-code: 200 + examples: + - path-parameters: + id: id + headers: + X-Account-Token: X-Account-Token + response: + body: + request_schema: + type: object + properties: + model: + type: object + required: + - last_name + - first_name + - merge_categories + - new_york_city_neighborhood + - favorite_tv_shows + - favorite_watch + properties: + email_addresses: + type: array + items: + type: object + properties: + value: + type: string + title: value + email_address_type: + type: string + title: email_address_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: email_addresses + description: Array of email_addresses objects + urls: + type: array + items: + type: object + properties: + value: + type: string + title: value + url_type: + type: string + title: url_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: urls + description: Array of urls objects + first_name: + type: string + title: first_name + description: The first name. + last_name: + type: string + title: last_name + description: The last name. + phone_numbers: + type: array + items: + type: object + properties: + value: + type: string + title: value + phone_number_type: + type: string + title: phone_number_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: phone_numbers + description: Array of phone_numbers objects + tags: + type: array + items: + type: string + format: uuid + title: tags + description: Array of tags names + attachments: + type: array + items: + type: object + properties: + id: + type: string + title: id + file_url: + type: string + title: file_url + file_name: + type: string + title: file_name + attachment_type: + type: string + title: attachment_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: attachments + description: 'Array of attachments objects ' + merge_categories: + type: array + categories: + type: string + enum: + - HRIS + - ATS + - Accounting + - Ticketing + - File Storage + - CRM + - Marketing Automation + enum_information: + - value: HRIS + description: Merge HRIS Category + - value: ATS + description: Merge ATS Category + - value: Accounting + description: Merge Accounting Category + - value: Ticketing + description: Merge Ticketing Category + - value: File Storage + description: Merge File Storage Category + - value: CRM + description: Merge CRM Category + - value: Marketing Automation + description: Merge Marketing Automation Category + title: Merge Categories + description: Array of Merge's Unified API Categories + new_york_city_neighborhood: + type: string + title: Borough + description: One of the 5 Boroughs of New York City + favorite_tv_shows: + type: array + items: + type: string + format: uuid + title: Favorite TV Shows + description: Array of TV Show objects on merge.tv_shows + favorite_watch: + type: string + title: Favorite Watch + description: Favorite watch of all time + remote_field_classes: + key: value + status: + linked_account_status: linked_account_status + can_make_request: true + has_conditional_params: true + has_required_linked_account_params: true metaPostRetrieve: path: /accounting/v1/contacts/meta/post method: GET @@ -361,7 +646,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -582,7 +868,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -593,6 +882,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/accounting/creditNotes.yml b/.mock/definition/accounting/creditNotes.yml index edd13752..880ab247 100644 --- a/.mock/definition/accounting/creditNotes.yml +++ b/.mock/definition/accounting/creditNotes.yml @@ -659,7 +659,10 @@ service: type: root.PaginatedCreditNoteList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -755,7 +758,8 @@ service: type: root.CreditNoteResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -888,7 +892,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 8d9fd929-436c-4fd4-a48b-0c61f68d6178 @@ -917,7 +922,6 @@ service: unit_price: '5.0' tax_rate: 8d9fd929-436c-4fd4-a48b-0c61f68d6178 total_line_amount: '5.0' - tracking_category: tracking_category tracking_categories: - 8d9fd929-436c-4fd4-a48b-0c61f68d6178 - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -969,7 +973,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/deleteAccount.yml b/.mock/definition/accounting/deleteAccount.yml index 402b4e72..dd6432e8 100644 --- a/.mock/definition/accounting/deleteAccount.yml +++ b/.mock/definition/accounting/deleteAccount.yml @@ -10,6 +10,7 @@ service: source: openapi: openapi/openapi.yml examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token source: openapi: openapi/openapi.yml diff --git a/.mock/definition/accounting/employees.yml b/.mock/definition/accounting/employees.yml index 3ccf25f6..d77b43e3 100644 --- a/.mock/definition/accounting/employees.yml +++ b/.mock/definition/accounting/employees.yml @@ -14,6 +14,17 @@ service: request: name: EmployeesListRequest query-parameters: + company_id: + type: optional + docs: If provided, will only return employees for this company. + created_after: + type: optional + docs: If provided, will only return objects created after this datetime. + created_before: + type: optional + docs: >- + If provided, will only return objects created before this + datetime. cursor: type: optional docs: The pagination cursor value. @@ -40,15 +51,31 @@ service: docs: >- Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). + modified_after: + type: optional + docs: >- + If provided, only objects synced by Merge after this date time + will be returned. + modified_before: + type: optional + docs: >- + If provided, only objects synced by Merge before this date time + will be returned. page_size: type: optional docs: Number of results to return per page. + remote_id: + type: optional + docs: The API provider's ID for the given object. response: docs: '' type: root.PaginatedEmployeeList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -109,7 +136,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: c640b80b-fac9-409f-aa19-1f9221aec445 diff --git a/.mock/definition/accounting/expenseReports.yml b/.mock/definition/accounting/expenseReports.yml new file mode 100644 index 00000000..66977e4f --- /dev/null +++ b/.mock/definition/accounting/expenseReports.yml @@ -0,0 +1,955 @@ +types: + ExpenseReportsListRequestExpand: + enum: + - accounting_period + - value: accounting_period,company + name: AccountingPeriodCompany + - company + - employee + - value: employee,accounting_period + name: EmployeeAccountingPeriod + - value: employee,accounting_period,company + name: EmployeeAccountingPeriodCompany + - value: employee,company + name: EmployeeCompany + - lines + - value: lines,accounting_period + name: LinesAccountingPeriod + - value: lines,accounting_period,company + name: LinesAccountingPeriodCompany + - value: lines,company + name: LinesCompany + - value: lines,employee + name: LinesEmployee + - value: lines,employee,accounting_period + name: LinesEmployeeAccountingPeriod + - value: lines,employee,accounting_period,company + name: LinesEmployeeAccountingPeriodCompany + - value: lines,employee,company + name: LinesEmployeeCompany + source: + openapi: openapi/openapi.yml + ExpenseReportsLinesListRequestExpand: + enum: + - account + - value: account,company + name: AccountCompany + - value: account,company,contact + name: AccountCompanyContact + - value: account,company,contact,tax_rate + name: AccountCompanyContactTaxRate + - value: account,company,tax_rate + name: AccountCompanyTaxRate + - value: account,contact + name: AccountContact + - value: account,contact,tax_rate + name: AccountContactTaxRate + - value: account,employee + name: AccountEmployee + - value: account,employee,company + name: AccountEmployeeCompany + - value: account,employee,company,contact + name: AccountEmployeeCompanyContact + - value: account,employee,company,contact,tax_rate + name: AccountEmployeeCompanyContactTaxRate + - value: account,employee,company,tax_rate + name: AccountEmployeeCompanyTaxRate + - value: account,employee,contact + name: AccountEmployeeContact + - value: account,employee,contact,tax_rate + name: AccountEmployeeContactTaxRate + - value: account,employee,project + name: AccountEmployeeProject + - value: account,employee,project,company + name: AccountEmployeeProjectCompany + - value: account,employee,project,company,contact + name: AccountEmployeeProjectCompanyContact + - value: account,employee,project,company,contact,tax_rate + name: AccountEmployeeProjectCompanyContactTaxRate + - value: account,employee,project,company,tax_rate + name: AccountEmployeeProjectCompanyTaxRate + - value: account,employee,project,contact + name: AccountEmployeeProjectContact + - value: account,employee,project,contact,tax_rate + name: AccountEmployeeProjectContactTaxRate + - value: account,employee,project,tax_rate + name: AccountEmployeeProjectTaxRate + - value: account,employee,tax_rate + name: AccountEmployeeTaxRate + - value: account,project + name: AccountProject + - value: account,project,company + name: AccountProjectCompany + - value: account,project,company,contact + name: AccountProjectCompanyContact + - value: account,project,company,contact,tax_rate + name: AccountProjectCompanyContactTaxRate + - value: account,project,company,tax_rate + name: AccountProjectCompanyTaxRate + - value: account,project,contact + name: AccountProjectContact + - value: account,project,contact,tax_rate + name: AccountProjectContactTaxRate + - value: account,project,tax_rate + name: AccountProjectTaxRate + - value: account,tax_rate + name: AccountTaxRate + - company + - value: company,contact + name: CompanyContact + - value: company,contact,tax_rate + name: CompanyContactTaxRate + - value: company,tax_rate + name: CompanyTaxRate + - contact + - value: contact,tax_rate + name: ContactTaxRate + - employee + - value: employee,company + name: EmployeeCompany + - value: employee,company,contact + name: EmployeeCompanyContact + - value: employee,company,contact,tax_rate + name: EmployeeCompanyContactTaxRate + - value: employee,company,tax_rate + name: EmployeeCompanyTaxRate + - value: employee,contact + name: EmployeeContact + - value: employee,contact,tax_rate + name: EmployeeContactTaxRate + - value: employee,project + name: EmployeeProject + - value: employee,project,company + name: EmployeeProjectCompany + - value: employee,project,company,contact + name: EmployeeProjectCompanyContact + - value: employee,project,company,contact,tax_rate + name: EmployeeProjectCompanyContactTaxRate + - value: employee,project,company,tax_rate + name: EmployeeProjectCompanyTaxRate + - value: employee,project,contact + name: EmployeeProjectContact + - value: employee,project,contact,tax_rate + name: EmployeeProjectContactTaxRate + - value: employee,project,tax_rate + name: EmployeeProjectTaxRate + - value: employee,tax_rate + name: EmployeeTaxRate + - project + - value: project,company + name: ProjectCompany + - value: project,company,contact + name: ProjectCompanyContact + - value: project,company,contact,tax_rate + name: ProjectCompanyContactTaxRate + - value: project,company,tax_rate + name: ProjectCompanyTaxRate + - value: project,contact + name: ProjectContact + - value: project,contact,tax_rate + name: ProjectContactTaxRate + - value: project,tax_rate + name: ProjectTaxRate + - tax_rate + source: + openapi: openapi/openapi.yml + ExpenseReportsRetrieveRequestExpand: + enum: + - accounting_period + - value: accounting_period,company + name: AccountingPeriodCompany + - company + - employee + - value: employee,accounting_period + name: EmployeeAccountingPeriod + - value: employee,accounting_period,company + name: EmployeeAccountingPeriodCompany + - value: employee,company + name: EmployeeCompany + - lines + - value: lines,accounting_period + name: LinesAccountingPeriod + - value: lines,accounting_period,company + name: LinesAccountingPeriodCompany + - value: lines,company + name: LinesCompany + - value: lines,employee + name: LinesEmployee + - value: lines,employee,accounting_period + name: LinesEmployeeAccountingPeriod + - value: lines,employee,accounting_period,company + name: LinesEmployeeAccountingPeriodCompany + - value: lines,employee,company + name: LinesEmployeeCompany + source: + openapi: openapi/openapi.yml +imports: + root: __package__.yml +service: + auth: false + base-path: '' + endpoints: + list: + path: /accounting/v1/expense-reports + method: GET + auth: true + docs: Returns a list of `ExpenseReport` objects. + source: + openapi: openapi/openapi.yml + request: + name: ExpenseReportsListRequest + query-parameters: + company_id: + type: optional + docs: If provided, will only return expense reports for this company. + created_after: + type: optional + docs: If provided, will only return objects created after this datetime. + created_before: + type: optional + docs: >- + If provided, will only return objects created before this + datetime. + cursor: + type: optional + docs: The pagination cursor value. + expand: + type: optional + docs: >- + Which relations should be returned in expanded form. Multiple + relation names should be comma separated without spaces. + include_deleted_data: + type: optional + docs: >- + Indicates whether or not this object has been deleted in the third + party platform. Full coverage deletion detection is a premium + add-on. Native deletion detection is offered for free with limited + coverage. [Learn + more](https://docs.merge.dev/integrations/hris/supported-features/). + include_remote_data: + type: optional + docs: >- + Whether to include the original data Merge fetched from the + third-party to produce these models. + include_remote_fields: + type: optional + docs: >- + Whether to include all remote fields, including fields that Merge + did not map to common models, in a normalized format. + include_shell_data: + type: optional + docs: >- + Whether to include shell records. Shell records are empty records + (they may contain some metadata but all other fields are null). + modified_after: + type: optional + docs: >- + If provided, only objects synced by Merge after this date time + will be returned. + modified_before: + type: optional + docs: >- + If provided, only objects synced by Merge before this date time + will be returned. + page_size: + type: optional + docs: Number of results to return per page. + remote_id: + type: optional + docs: The API provider's ID for the given object. + response: + docs: '' + type: root.PaginatedExpenseReportList + status-code: 200 + examples: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token + response: + body: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - id: 123e4567-e89b-12d3-a456-426614174000 + remote_id: exp_123e4567-e89b-12d3-a456-426614174000 + created_at: '2024-01-31T12:00:00Z' + modified_at: '2024-01-31T14:30:00Z' + report_date: '2024-01-31T00:00:00Z' + report_identifier: EXP-2024-001 + employee: b9a9b824-6172-4d63-9d90-1c8a86c4f3b1 + status: DRAFT + total_amount: 150 + lines: + - id: '1234' + remote_id: abcd-1234 + created_at: '2021-09-15T00:00:00Z' + modified_at: '2021-10-16T00:00:00Z' + account: acc-1234 + description: Client lunch meeting + expense_date: '2024-01-15T00:00:00Z' + amount: 50 + currency: USD + exchange_rate: exchange_rate + is_billable: true + tracking_categories: + - cat-1 + - cat-2 + employee: emp-1234 + project: proj-5678 + company: comp-1234 + contact: cont-5678 + quantity: 1 + unit_price: 50 + non_reimbursable: false + tax_amount: 5 + inclusive_of_tax: false + tax_rate: tax-1234 + remote_was_deleted: false + currency: XUA + description: January 2024 Travel Expenses + accounting_period: 7d793c67-9f72-4a6b-9256-3936f237b0d9 + company: company + tracking_categories: + - a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d + - d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p + remote_was_deleted: true + field_mappings: + organization_defined_targets: + custom_key: custom_value + linked_account_defined_targets: + custom_key: custom_value + remote_data: + - path: /actions + data: + - Varies by platform + remote_fields: + - remote_field_class: remote_field_class + create: + path: /accounting/v1/expense-reports + method: POST + auth: true + docs: Creates an `ExpenseReport` object with the given values. + source: + openapi: openapi/openapi.yml + request: + name: ExpenseReportEndpointRequest + query-parameters: + is_debug_mode: + type: optional + docs: >- + Whether to include debug fields (such as log file links) in the + response. + run_async: + type: optional + docs: Whether or not third-party updates should be run asynchronously. + body: + properties: + model: root.ExpenseReportRequest + content-type: application/json + response: + docs: '' + type: root.ExpenseReportResponse + status-code: 201 + examples: + - headers: + X-Account-Token: X-Account-Token + request: + model: + tracking_categories: + - a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d + - d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p + response: + body: + model: + id: 123e4567-e89b-12d3-a456-426614174000 + remote_id: exp_123e4567-e89b-12d3-a456-426614174000 + created_at: '2024-01-31T12:00:00Z' + modified_at: '2024-01-31T14:30:00Z' + report_date: '2024-01-31T00:00:00Z' + report_identifier: EXP-2024-001 + employee: b9a9b824-6172-4d63-9d90-1c8a86c4f3b1 + status: DRAFT + total_amount: 150 + lines: + - id: '1234' + remote_id: abcd-1234 + created_at: '2021-09-15T00:00:00Z' + modified_at: '2021-10-16T00:00:00Z' + account: acc-1234 + description: Client lunch meeting + expense_date: '2024-01-15T00:00:00Z' + amount: 50 + currency: USD + exchange_rate: exchange_rate + is_billable: true + tracking_categories: + - cat-1 + - cat-2 + employee: emp-1234 + project: proj-5678 + company: comp-1234 + contact: cont-5678 + quantity: 1 + unit_price: 50 + non_reimbursable: false + tax_amount: 5 + inclusive_of_tax: false + tax_rate: tax-1234 + remote_was_deleted: false + currency: XUA + description: January 2024 Travel Expenses + accounting_period: 7d793c67-9f72-4a6b-9256-3936f237b0d9 + company: company + tracking_categories: + - a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d + - d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p + remote_was_deleted: true + field_mappings: + organization_defined_targets: + custom_key: custom_value + linked_account_defined_targets: + custom_key: custom_value + remote_data: + - path: /actions + data: + - Varies by platform + remote_fields: + - remote_field_class: remote_field_class + warnings: + - source: + pointer: pointer + title: Unrecognized Field + detail: An unrecognized field, age, was passed in with request data. + problem_type: UNRECOGNIZED_FIELD + errors: + - source: + pointer: pointer + title: Missing Required Field + detail: custom_fields is a required field on model. + problem_type: MISSING_REQUIRED_FIELD + logs: + - log_id: 99433219-8017-4acd-bb3c-ceb23d663832 + dashboard_view: >- + https://app.merge.dev/logs/99433219-8017-4acd-bb3c-ceb23d663832 + log_summary: + url: www.exampleintegration.com/api/v1/exampleapi + method: POST + status_code: 200 + linesList: + path: /accounting/v1/expense-reports/{expense_report_id}/lines + method: GET + auth: true + docs: >- + Returns a list of `ExpenseReportLine` objects that point to a + `ExpenseReport` with the given id. + source: + openapi: openapi/openapi.yml + path-parameters: + expense_report_id: string + request: + name: ExpenseReportsLinesListRequest + query-parameters: + cursor: + type: optional + docs: The pagination cursor value. + expand: + type: optional + docs: >- + Which relations should be returned in expanded form. Multiple + relation names should be comma separated without spaces. + include_deleted_data: + type: optional + docs: >- + Indicates whether or not this object has been deleted in the third + party platform. Full coverage deletion detection is a premium + add-on. Native deletion detection is offered for free with limited + coverage. [Learn + more](https://docs.merge.dev/integrations/hris/supported-features/). + include_remote_data: + type: optional + docs: >- + Whether to include the original data Merge fetched from the + third-party to produce these models. + include_remote_fields: + type: optional + docs: >- + Whether to include all remote fields, including fields that Merge + did not map to common models, in a normalized format. + include_shell_data: + type: optional + docs: >- + Whether to include shell records. Shell records are empty records + (they may contain some metadata but all other fields are null). + page_size: + type: optional + docs: Number of results to return per page. + response: + docs: '' + type: root.PaginatedExpenseReportLineList + status-code: 200 + examples: + - path-parameters: + expense_report_id: expense_report_id + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token + response: + body: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - id: '1234' + remote_id: abcd-1234 + created_at: '2021-09-15T00:00:00Z' + modified_at: '2021-10-16T00:00:00Z' + account: account + description: Client lunch meeting + expense_date: '2024-01-15T00:00:00Z' + amount: 50 + currency: XUA + exchange_rate: exchange_rate + is_billable: true + tracking_categories: + - cat-1 + - cat-2 + employee: employee + project: project + company: company + contact: contact + quantity: 1 + unit_price: 50 + non_reimbursable: true + tax_amount: 5 + inclusive_of_tax: true + tax_rate: tax_rate + remote_was_deleted: true + remote_fields: + - remote_field_class: remote_field_class + retrieve: + path: /accounting/v1/expense-reports/{id} + method: GET + auth: true + docs: Returns an `ExpenseReport` object with the given `id`. + source: + openapi: openapi/openapi.yml + path-parameters: + id: string + request: + name: ExpenseReportsRetrieveRequest + query-parameters: + expand: + type: optional + docs: >- + Which relations should be returned in expanded form. Multiple + relation names should be comma separated without spaces. + include_remote_data: + type: optional + docs: >- + Whether to include the original data Merge fetched from the + third-party to produce these models. + include_remote_fields: + type: optional + docs: >- + Whether to include all remote fields, including fields that Merge + did not map to common models, in a normalized format. + include_shell_data: + type: optional + docs: >- + Whether to include shell records. Shell records are empty records + (they may contain some metadata but all other fields are null). + response: + docs: '' + type: root.ExpenseReport + status-code: 200 + examples: + - path-parameters: + id: id + headers: + X-Account-Token: X-Account-Token + response: + body: + id: 123e4567-e89b-12d3-a456-426614174000 + remote_id: exp_123e4567-e89b-12d3-a456-426614174000 + created_at: '2024-01-31T12:00:00Z' + modified_at: '2024-01-31T14:30:00Z' + report_date: '2024-01-31T00:00:00Z' + report_identifier: EXP-2024-001 + employee: b9a9b824-6172-4d63-9d90-1c8a86c4f3b1 + status: DRAFT + total_amount: 150 + lines: + - id: '1234' + remote_id: abcd-1234 + created_at: '2021-09-15T00:00:00Z' + modified_at: '2021-10-16T00:00:00Z' + account: acc-1234 + description: Client lunch meeting + expense_date: '2024-01-15T00:00:00Z' + amount: 50 + currency: USD + exchange_rate: exchange_rate + is_billable: true + tracking_categories: + - cat-1 + - cat-2 + employee: emp-1234 + project: proj-5678 + company: comp-1234 + contact: cont-5678 + quantity: 1 + unit_price: 50 + non_reimbursable: false + tax_amount: 5 + inclusive_of_tax: false + tax_rate: tax-1234 + remote_was_deleted: false + remote_fields: + - remote_field_class: remote_field_class + currency: XUA + description: January 2024 Travel Expenses + accounting_period: 7d793c67-9f72-4a6b-9256-3936f237b0d9 + company: company + tracking_categories: + - a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d + - d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p + remote_was_deleted: true + field_mappings: + organization_defined_targets: + custom_key: custom_value + linked_account_defined_targets: + custom_key: custom_value + remote_data: + - path: /actions + data: + - Varies by platform + remote_fields: + - remote_field_class: remote_field_class + value: + key: value + linesRemoteFieldClassesList: + path: /accounting/v1/expense-reports/lines/remote-field-classes + method: GET + auth: true + docs: Returns a list of `RemoteFieldClass` objects. + source: + openapi: openapi/openapi.yml + request: + name: ExpenseReportsLinesRemoteFieldClassesListRequest + query-parameters: + cursor: + type: optional + docs: The pagination cursor value. + include_deleted_data: + type: optional + docs: >- + Indicates whether or not this object has been deleted in the third + party platform. Full coverage deletion detection is a premium + add-on. Native deletion detection is offered for free with limited + coverage. [Learn + more](https://docs.merge.dev/integrations/hris/supported-features/). + include_remote_data: + type: optional + docs: >- + Whether to include the original data Merge fetched from the + third-party to produce these models. + include_shell_data: + type: optional + docs: >- + Whether to include shell records. Shell records are empty records + (they may contain some metadata but all other fields are null). + is_common_model_field: + type: optional + docs: >- + If provided, will only return remote field classes with this + is_common_model_field value + is_custom: + type: optional + docs: >- + If provided, will only return remote fields classes with this + is_custom value + page_size: + type: optional + docs: Number of results to return per page. + response: + docs: '' + type: root.PaginatedRemoteFieldClassList + status-code: 200 + examples: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token + response: + body: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - id: id + display_name: display_name + remote_key_name: remote_key_name + description: description + is_custom: true + is_common_model_field: true + is_required: true + field_type: string + field_format: string + field_choices: + - field_choices + metaPostRetrieve: + path: /accounting/v1/expense-reports/meta/post + method: GET + auth: true + docs: Returns metadata for `ExpenseReport` POSTs. + source: + openapi: openapi/openapi.yml + response: + docs: '' + type: root.MetaResponse + status-code: 200 + examples: + - headers: + X-Account-Token: X-Account-Token + response: + body: + request_schema: + type: object + properties: + model: + type: object + required: + - last_name + - first_name + - merge_categories + - new_york_city_neighborhood + - favorite_tv_shows + - favorite_watch + properties: + email_addresses: + type: array + items: + type: object + properties: + value: + type: string + title: value + email_address_type: + type: string + title: email_address_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: email_addresses + description: Array of email_addresses objects + urls: + type: array + items: + type: object + properties: + value: + type: string + title: value + url_type: + type: string + title: url_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: urls + description: Array of urls objects + first_name: + type: string + title: first_name + description: The first name. + last_name: + type: string + title: last_name + description: The last name. + phone_numbers: + type: array + items: + type: object + properties: + value: + type: string + title: value + phone_number_type: + type: string + title: phone_number_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: phone_numbers + description: Array of phone_numbers objects + tags: + type: array + items: + type: string + format: uuid + title: tags + description: Array of tags names + attachments: + type: array + items: + type: object + properties: + id: + type: string + title: id + file_url: + type: string + title: file_url + file_name: + type: string + title: file_name + attachment_type: + type: string + title: attachment_type + integration_params: + type: object + title: integration_params + properties: {} + linked_account_params: + type: object + title: linked_account_params + properties: {} + title: attachments + description: 'Array of attachments objects ' + merge_categories: + type: array + categories: + type: string + enum: + - HRIS + - ATS + - Accounting + - Ticketing + - File Storage + - CRM + - Marketing Automation + enum_information: + - value: HRIS + description: Merge HRIS Category + - value: ATS + description: Merge ATS Category + - value: Accounting + description: Merge Accounting Category + - value: Ticketing + description: Merge Ticketing Category + - value: File Storage + description: Merge File Storage Category + - value: CRM + description: Merge CRM Category + - value: Marketing Automation + description: Merge Marketing Automation Category + title: Merge Categories + description: Array of Merge's Unified API Categories + new_york_city_neighborhood: + type: string + title: Borough + description: One of the 5 Boroughs of New York City + favorite_tv_shows: + type: array + items: + type: string + format: uuid + title: Favorite TV Shows + description: Array of TV Show objects on merge.tv_shows + favorite_watch: + type: string + title: Favorite Watch + description: Favorite watch of all time + remote_field_classes: + key: value + status: + linked_account_status: linked_account_status + can_make_request: true + has_conditional_params: true + has_required_linked_account_params: true + remoteFieldClassesList: + path: /accounting/v1/expense-reports/remote-field-classes + method: GET + auth: true + docs: Returns a list of `RemoteFieldClass` objects. + source: + openapi: openapi/openapi.yml + request: + name: ExpenseReportsRemoteFieldClassesListRequest + query-parameters: + cursor: + type: optional + docs: The pagination cursor value. + include_deleted_data: + type: optional + docs: >- + Indicates whether or not this object has been deleted in the third + party platform. Full coverage deletion detection is a premium + add-on. Native deletion detection is offered for free with limited + coverage. [Learn + more](https://docs.merge.dev/integrations/hris/supported-features/). + include_remote_data: + type: optional + docs: >- + Whether to include the original data Merge fetched from the + third-party to produce these models. + include_shell_data: + type: optional + docs: >- + Whether to include shell records. Shell records are empty records + (they may contain some metadata but all other fields are null). + is_common_model_field: + type: optional + docs: >- + If provided, will only return remote field classes with this + is_common_model_field value + is_custom: + type: optional + docs: >- + If provided, will only return remote fields classes with this + is_custom value + page_size: + type: optional + docs: Number of results to return per page. + response: + docs: '' + type: root.PaginatedRemoteFieldClassList + status-code: 200 + examples: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token + response: + body: + next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ + results: + - id: id + display_name: display_name + remote_key_name: remote_key_name + description: description + is_custom: true + is_common_model_field: true + is_required: true + field_type: string + field_format: string + field_choices: + - field_choices + source: + openapi: openapi/openapi.yml diff --git a/.mock/definition/accounting/expenses.yml b/.mock/definition/accounting/expenses.yml index 98c48edf..4a409f71 100644 --- a/.mock/definition/accounting/expenses.yml +++ b/.mock/definition/accounting/expenses.yml @@ -334,7 +334,10 @@ service: type: root.PaginatedExpenseList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -433,7 +436,8 @@ service: type: root.ExpenseResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -564,7 +568,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 @@ -591,7 +596,6 @@ service: modified_at: '2021-10-16T00:00:00Z' item: b38c59b0-a9d7-4740-b1ee-5436c6751e3d net_amount: 25.54 - tracking_category: tracking_category tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -612,7 +616,6 @@ service: modified_at: '2021-10-16T00:00:00Z' item: b38c59b0-a9d7-4740-b1ee-5436c6751e3d net_amount: 10 - tracking_category: tracking_category tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -695,7 +698,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -706,6 +712,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string @@ -723,7 +730,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -944,7 +952,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -955,6 +966,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/accounting/fieldMapping.yml b/.mock/definition/accounting/fieldMapping.yml index 7f106183..70f7267f 100644 --- a/.mock/definition/accounting/fieldMapping.yml +++ b/.mock/definition/accounting/fieldMapping.yml @@ -30,7 +30,8 @@ service: type: root.FieldMappingApiInstanceResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Account: @@ -193,6 +194,22 @@ service: url_path: /example-url-path field_traversal_path: - example_remote_field_key + ExpenseReport: + - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 + is_integration_wide: true + target_field: + name: example_target_field_name + description: this is a example description of a target field + is_organization_wide: true + remote_field: + remote_key_name: example_remote_field_key + schema: + type: string + remote_endpoint_info: + method: GET + url_path: /example-url-path + field_traversal_path: + - example_remote_field_key TrackingCategory: - id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 is_integration_wide: true @@ -501,7 +518,8 @@ service: type: root.FieldMappingInstanceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: target_field_name: example_target_field_name target_field_description: this is a example description of the target field @@ -568,7 +586,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: model: @@ -650,7 +669,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -721,7 +741,8 @@ service: type: root.RemoteFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Account: @@ -1091,7 +1112,8 @@ service: type: root.ExternalTargetFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Account: @@ -1134,6 +1156,10 @@ service: - name: example_target_field_name description: this is a example description of a target field is_mapped: is_mapped + ExpenseReport: + - name: example_target_field_name + description: this is a example description of a target field + is_mapped: is_mapped TrackingCategory: - name: example_target_field_name description: this is a example description of a target field diff --git a/.mock/definition/accounting/forceResync.yml b/.mock/definition/accounting/forceResync.yml index 8e7e969a..23d80d64 100644 --- a/.mock/definition/accounting/forceResync.yml +++ b/.mock/definition/accounting/forceResync.yml @@ -21,7 +21,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - model_name: Invoice diff --git a/.mock/definition/accounting/generalLedgerTransactions.yml b/.mock/definition/accounting/generalLedgerTransactions.yml index 38fe7292..5e43d543 100644 --- a/.mock/definition/accounting/generalLedgerTransactions.yml +++ b/.mock/definition/accounting/generalLedgerTransactions.yml @@ -143,7 +143,10 @@ service: type: root.PaginatedGeneralLedgerTransactionList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -228,7 +231,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b26fd49a-cbae-470a-a8f8-bcbc119e0390 diff --git a/.mock/definition/accounting/generateKey.yml b/.mock/definition/accounting/generateKey.yml index 4d79b8ce..7ec4bf68 100644 --- a/.mock/definition/accounting/generateKey.yml +++ b/.mock/definition/accounting/generateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/accounting/incomeStatements.yml b/.mock/definition/accounting/incomeStatements.yml index 92f62e77..f1da1a7b 100644 --- a/.mock/definition/accounting/incomeStatements.yml +++ b/.mock/definition/accounting/incomeStatements.yml @@ -72,7 +72,10 @@ service: type: root.PaginatedIncomeStatementList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -183,7 +186,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0958cbc6-6040-430a-848e-aafacbadf4ae diff --git a/.mock/definition/accounting/invoices.yml b/.mock/definition/accounting/invoices.yml index a3d88012..963f67bb 100644 --- a/.mock/definition/accounting/invoices.yml +++ b/.mock/definition/accounting/invoices.yml @@ -27076,7 +27076,10 @@ service: type: root.PaginatedInvoiceList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -27195,7 +27198,8 @@ service: type: root.InvoiceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -27353,7 +27357,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 9871b4a9-f5d2-4f3b-a66b-dfedbed42c46 @@ -27409,7 +27414,6 @@ service: item: 5b3c1341-a20f-4e51-b72c-f3830a16c97b account: cd0f32d4-a493-11ec-b909-0242ac120002 tax_rate: a12e7c20-1922-9df7-s75n-edfeewnn7384 - tracking_category: tracking_category tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -27485,7 +27489,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -27643,7 +27648,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -27654,6 +27662,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string @@ -27675,7 +27684,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -27859,7 +27869,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -28080,7 +28091,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -28091,6 +28105,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/accounting/issues.yml b/.mock/definition/accounting/issues.yml index 58c4f3b1..f7568739 100644 --- a/.mock/definition/accounting/issues.yml +++ b/.mock/definition/accounting/issues.yml @@ -80,7 +80,11 @@ service: type: root.PaginatedIssueList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ @@ -112,6 +116,8 @@ service: examples: - path-parameters: id: id + headers: + X-Account-Token: '[object Object]' response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 diff --git a/.mock/definition/accounting/items.yml b/.mock/definition/accounting/items.yml index 7ee5dea7..67a784e9 100644 --- a/.mock/definition/accounting/items.yml +++ b/.mock/definition/accounting/items.yml @@ -207,7 +207,10 @@ service: type: root.PaginatedItemList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -219,6 +222,7 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle status: ACTIVE + type: INVENTORY unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -264,7 +268,8 @@ service: type: root.ItemResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -276,6 +281,7 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle status: ACTIVE + type: INVENTORY unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -358,7 +364,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: d2f972d0-2526-434b-9409-4c3b468e08f0 @@ -367,6 +374,7 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle status: ACTIVE + type: INVENTORY unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -416,7 +424,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -428,6 +437,7 @@ service: modified_at: '2021-10-16T00:00:00Z' name: Pickleball Paddle status: ACTIVE + type: INVENTORY unit_price: 10 purchase_price: 25 purchase_account: purchase_account @@ -482,7 +492,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -666,7 +677,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/journalEntries.yml b/.mock/definition/accounting/journalEntries.yml index feb7bad3..e471027d 100644 --- a/.mock/definition/accounting/journalEntries.yml +++ b/.mock/definition/accounting/journalEntries.yml @@ -338,7 +338,10 @@ service: type: root.PaginatedJournalEntryList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -431,7 +434,8 @@ service: type: root.JournalEntryResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -556,7 +560,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 @@ -580,7 +585,6 @@ service: modified_at: '2021-10-16T00:00:00Z' account: 9d892439-5fab-4dbb-8bd8-34f7f96c7912 net_amount: 25.54 - tracking_category: tracking_category tracking_categories: - d25d609b-945f-4762-b55a-1c8fb220c43c - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -602,7 +606,6 @@ service: modified_at: '2021-10-16T00:00:00Z' account: f963f34d-3d2f-4f77-b557-cf36bc7e6498 net_amount: 10 - tracking_category: tracking_category tracking_categories: - d25d609b-945f-4762-b55a-1c8fb220c43c - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -690,7 +693,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -701,6 +707,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string @@ -718,7 +725,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -939,7 +947,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -950,6 +961,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/accounting/linkToken.yml b/.mock/definition/accounting/linkToken.yml index 65ffc3c3..fc04755a 100644 --- a/.mock/definition/accounting/linkToken.yml +++ b/.mock/definition/accounting/linkToken.yml @@ -119,7 +119,9 @@ service: type: root.LinkToken status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: end_user_email_address: example@gmail.com end_user_organization_name: Test Organization end_user_origin_id: '12345' diff --git a/.mock/definition/accounting/linkedAccounts.yml b/.mock/definition/accounting/linkedAccounts.yml index aa8806e8..a831126a 100644 --- a/.mock/definition/accounting/linkedAccounts.yml +++ b/.mock/definition/accounting/linkedAccounts.yml @@ -107,7 +107,11 @@ service: type: root.PaginatedAccountDetailsAndActionsList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/accounting/passthrough.yml b/.mock/definition/accounting/passthrough.yml index 25ab767c..db79aa9e 100644 --- a/.mock/definition/accounting/passthrough.yml +++ b/.mock/definition/accounting/passthrough.yml @@ -19,7 +19,8 @@ service: type: root.RemoteResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters diff --git a/.mock/definition/accounting/paymentMethods.yml b/.mock/definition/accounting/paymentMethods.yml index c53c952c..844d0b85 100644 --- a/.mock/definition/accounting/paymentMethods.yml +++ b/.mock/definition/accounting/paymentMethods.yml @@ -43,7 +43,10 @@ service: type: root.PaginatedPaymentMethodList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -95,7 +98,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 diff --git a/.mock/definition/accounting/paymentTerms.yml b/.mock/definition/accounting/paymentTerms.yml index 688ed9c3..edf23455 100644 --- a/.mock/definition/accounting/paymentTerms.yml +++ b/.mock/definition/accounting/paymentTerms.yml @@ -48,7 +48,10 @@ service: type: root.PaginatedPaymentTermList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -107,7 +110,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 diff --git a/.mock/definition/accounting/payments.yml b/.mock/definition/accounting/payments.yml index 26c0f1b9..8a628d65 100644 --- a/.mock/definition/accounting/payments.yml +++ b/.mock/definition/accounting/payments.yml @@ -624,7 +624,10 @@ service: type: root.PaginatedPaymentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -653,7 +656,7 @@ service: remote_id: '234' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: a47e11b6-c73b-4a0c-be31-130fc48177fa related_object_type: INVOICE @@ -661,7 +664,7 @@ service: remote_id: '235' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: 9b96a886-29a5-452b-8733-2a1e03497cf4 related_object_type: CREDIT_NOTE @@ -705,7 +708,8 @@ service: type: root.PaymentResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -734,7 +738,7 @@ service: remote_id: '234' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: a47e11b6-c73b-4a0c-be31-130fc48177fa related_object_type: INVOICE @@ -742,7 +746,7 @@ service: remote_id: '235' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: 9b96a886-29a5-452b-8733-2a1e03497cf4 related_object_type: CREDIT_NOTE @@ -818,7 +822,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b26fd49a-cbae-470a-a8f8-bcbc119e0390 @@ -844,7 +849,7 @@ service: remote_id: '234' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: a47e11b6-c73b-4a0c-be31-130fc48177fa related_object_type: INVOICE @@ -852,7 +857,7 @@ service: remote_id: '235' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: 9b96a886-29a5-452b-8733-2a1e03497cf4 related_object_type: CREDIT_NOTE @@ -902,7 +907,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -931,7 +937,7 @@ service: remote_id: '234' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: a47e11b6-c73b-4a0c-be31-130fc48177fa related_object_type: INVOICE @@ -939,7 +945,7 @@ service: remote_id: '235' created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' - applied_amount: applied_amount + applied_amount: '25' applied_date: '2020-03-31T00:00:00Z' related_object_id: 9b96a886-29a5-452b-8733-2a1e03497cf4 related_object_type: CREDIT_NOTE @@ -1025,7 +1031,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1036,6 +1045,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string @@ -1057,7 +1067,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -1241,7 +1252,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -1462,7 +1474,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1473,6 +1488,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/accounting/phoneNumbers.yml b/.mock/definition/accounting/phoneNumbers.yml index b6732385..75ad3e16 100644 --- a/.mock/definition/accounting/phoneNumbers.yml +++ b/.mock/definition/accounting/phoneNumbers.yml @@ -33,7 +33,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: created_at: '2021-09-15T00:00:00Z' diff --git a/.mock/definition/accounting/projects.yml b/.mock/definition/accounting/projects.yml index 097c0ff2..add59523 100644 --- a/.mock/definition/accounting/projects.yml +++ b/.mock/definition/accounting/projects.yml @@ -31,6 +31,17 @@ service: request: name: ProjectsListRequest query-parameters: + company_id: + type: optional + docs: If provided, will only return projects for this company. + created_after: + type: optional + docs: If provided, will only return objects created after this datetime. + created_before: + type: optional + docs: >- + If provided, will only return objects created before this + datetime. cursor: type: optional docs: The pagination cursor value. @@ -57,15 +68,31 @@ service: docs: >- Whether to include shell records. Shell records are empty records (they may contain some metadata but all other fields are null). + modified_after: + type: optional + docs: >- + If provided, only objects synced by Merge after this date time + will be returned. + modified_before: + type: optional + docs: >- + If provided, only objects synced by Merge before this date time + will be returned. page_size: type: optional docs: Number of results to return per page. + remote_id: + type: optional + docs: The API provider's ID for the given object. response: docs: '' type: root.PaginatedProjectList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -122,7 +149,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 diff --git a/.mock/definition/accounting/purchaseOrders.yml b/.mock/definition/accounting/purchaseOrders.yml index e0157639..bc57e698 100644 --- a/.mock/definition/accounting/purchaseOrders.yml +++ b/.mock/definition/accounting/purchaseOrders.yml @@ -634,7 +634,10 @@ service: type: root.PaginatedPurchaseOrderList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -737,7 +740,8 @@ service: type: root.PurchaseOrderResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -882,7 +886,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0048ea5b-911e-4dff-9364-92070dea62ff @@ -912,7 +917,6 @@ service: quantity: 10 item: 0958cbc6-6040-430a-848e-aafacbadf4ae account: account - tracking_category: tracking_category tracking_categories: - f1214c24-2702-4617-b74b-3ddecfc0d384 - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -935,7 +939,6 @@ service: quantity: 10 item: 249c9faa-3045-4a31-953b-8f22d3613301 account: account - tracking_category: tracking_category tracking_categories: - f1214c24-2702-4617-b74b-3ddecfc0d384 - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -1020,7 +1023,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1031,6 +1037,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string @@ -1048,7 +1055,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -1269,7 +1277,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1280,6 +1291,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/accounting/regenerateKey.yml b/.mock/definition/accounting/regenerateKey.yml index 39fe26f9..fa714152 100644 --- a/.mock/definition/accounting/regenerateKey.yml +++ b/.mock/definition/accounting/regenerateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/accounting/scopes.yml b/.mock/definition/accounting/scopes.yml index ab81c591..4c990463 100644 --- a/.mock/definition/accounting/scopes.yml +++ b/.mock/definition/accounting/scopes.yml @@ -19,7 +19,9 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - response: + - headers: + X-Account-Token: '[object Object]' + response: body: common_models: - model_name: Employee @@ -60,7 +62,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: common_models: @@ -111,7 +114,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: common_models: - model_name: Employee diff --git a/.mock/definition/accounting/syncStatus.yml b/.mock/definition/accounting/syncStatus.yml index 38dcf2ce..2a5e4eb4 100644 --- a/.mock/definition/accounting/syncStatus.yml +++ b/.mock/definition/accounting/syncStatus.yml @@ -36,7 +36,10 @@ service: type: root.PaginatedSyncStatusList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/accounting/taxRates.yml b/.mock/definition/accounting/taxRates.yml index 3ff15195..c2695fb6 100644 --- a/.mock/definition/accounting/taxRates.yml +++ b/.mock/definition/accounting/taxRates.yml @@ -75,7 +75,10 @@ service: type: root.PaginatedTaxRateList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -146,7 +149,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b82302de-852e-4e60-b050-edf9da3b7c02 diff --git a/.mock/definition/accounting/trackingCategories.yml b/.mock/definition/accounting/trackingCategories.yml index 2e3f062f..b63996f9 100644 --- a/.mock/definition/accounting/trackingCategories.yml +++ b/.mock/definition/accounting/trackingCategories.yml @@ -95,7 +95,10 @@ service: type: root.PaginatedTrackingCategoryList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -160,7 +163,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 diff --git a/.mock/definition/accounting/transactions.yml b/.mock/definition/accounting/transactions.yml index 94a999db..672ad121 100644 --- a/.mock/definition/accounting/transactions.yml +++ b/.mock/definition/accounting/transactions.yml @@ -4,60 +4,124 @@ types: - account - value: account,accounting_period name: AccountAccountingPeriod + - value: account,company + name: AccountCompany + - value: account,company,accounting_period + name: AccountCompanyAccountingPeriod - accounting_period + - company + - value: company,accounting_period + name: CompanyAccountingPeriod - contact - value: contact,account name: ContactAccount - value: contact,account,accounting_period name: ContactAccountAccountingPeriod + - value: contact,account,company + name: ContactAccountCompany + - value: contact,account,company,accounting_period + name: ContactAccountCompanyAccountingPeriod - value: contact,accounting_period name: ContactAccountingPeriod + - value: contact,company + name: ContactCompany + - value: contact,company,accounting_period + name: ContactCompanyAccountingPeriod - line_items - value: line_items,account name: LineItemsAccount - value: line_items,account,accounting_period name: LineItemsAccountAccountingPeriod + - value: line_items,account,company + name: LineItemsAccountCompany + - value: line_items,account,company,accounting_period + name: LineItemsAccountCompanyAccountingPeriod - value: line_items,accounting_period name: LineItemsAccountingPeriod + - value: line_items,company + name: LineItemsCompany + - value: line_items,company,accounting_period + name: LineItemsCompanyAccountingPeriod - value: line_items,contact name: LineItemsContact - value: line_items,contact,account name: LineItemsContactAccount - value: line_items,contact,account,accounting_period name: LineItemsContactAccountAccountingPeriod + - value: line_items,contact,account,company + name: LineItemsContactAccountCompany + - value: line_items,contact,account,company,accounting_period + name: LineItemsContactAccountCompanyAccountingPeriod - value: line_items,contact,accounting_period name: LineItemsContactAccountingPeriod + - value: line_items,contact,company + name: LineItemsContactCompany + - value: line_items,contact,company,accounting_period + name: LineItemsContactCompanyAccountingPeriod - value: line_items,tracking_categories name: LineItemsTrackingCategories - value: line_items,tracking_categories,account name: LineItemsTrackingCategoriesAccount - value: line_items,tracking_categories,account,accounting_period name: LineItemsTrackingCategoriesAccountAccountingPeriod + - value: line_items,tracking_categories,account,company + name: LineItemsTrackingCategoriesAccountCompany + - value: line_items,tracking_categories,account,company,accounting_period + name: LineItemsTrackingCategoriesAccountCompanyAccountingPeriod - value: line_items,tracking_categories,accounting_period name: LineItemsTrackingCategoriesAccountingPeriod + - value: line_items,tracking_categories,company + name: LineItemsTrackingCategoriesCompany + - value: line_items,tracking_categories,company,accounting_period + name: LineItemsTrackingCategoriesCompanyAccountingPeriod - value: line_items,tracking_categories,contact name: LineItemsTrackingCategoriesContact - value: line_items,tracking_categories,contact,account name: LineItemsTrackingCategoriesContactAccount - value: line_items,tracking_categories,contact,account,accounting_period name: LineItemsTrackingCategoriesContactAccountAccountingPeriod + - value: line_items,tracking_categories,contact,account,company + name: LineItemsTrackingCategoriesContactAccountCompany + - value: >- + line_items,tracking_categories,contact,account,company,accounting_period + name: LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod - value: line_items,tracking_categories,contact,accounting_period name: LineItemsTrackingCategoriesContactAccountingPeriod + - value: line_items,tracking_categories,contact,company + name: LineItemsTrackingCategoriesContactCompany + - value: line_items,tracking_categories,contact,company,accounting_period + name: LineItemsTrackingCategoriesContactCompanyAccountingPeriod - tracking_categories - value: tracking_categories,account name: TrackingCategoriesAccount - value: tracking_categories,account,accounting_period name: TrackingCategoriesAccountAccountingPeriod + - value: tracking_categories,account,company + name: TrackingCategoriesAccountCompany + - value: tracking_categories,account,company,accounting_period + name: TrackingCategoriesAccountCompanyAccountingPeriod - value: tracking_categories,accounting_period name: TrackingCategoriesAccountingPeriod + - value: tracking_categories,company + name: TrackingCategoriesCompany + - value: tracking_categories,company,accounting_period + name: TrackingCategoriesCompanyAccountingPeriod - value: tracking_categories,contact name: TrackingCategoriesContact - value: tracking_categories,contact,account name: TrackingCategoriesContactAccount - value: tracking_categories,contact,account,accounting_period name: TrackingCategoriesContactAccountAccountingPeriod + - value: tracking_categories,contact,account,company + name: TrackingCategoriesContactAccountCompany + - value: tracking_categories,contact,account,company,accounting_period + name: TrackingCategoriesContactAccountCompanyAccountingPeriod - value: tracking_categories,contact,accounting_period name: TrackingCategoriesContactAccountingPeriod + - value: tracking_categories,contact,company + name: TrackingCategoriesContactCompany + - value: tracking_categories,contact,company,accounting_period + name: TrackingCategoriesContactCompanyAccountingPeriod source: openapi: openapi/openapi.yml TransactionsRetrieveRequestExpand: @@ -65,60 +129,124 @@ types: - account - value: account,accounting_period name: AccountAccountingPeriod + - value: account,company + name: AccountCompany + - value: account,company,accounting_period + name: AccountCompanyAccountingPeriod - accounting_period + - company + - value: company,accounting_period + name: CompanyAccountingPeriod - contact - value: contact,account name: ContactAccount - value: contact,account,accounting_period name: ContactAccountAccountingPeriod + - value: contact,account,company + name: ContactAccountCompany + - value: contact,account,company,accounting_period + name: ContactAccountCompanyAccountingPeriod - value: contact,accounting_period name: ContactAccountingPeriod + - value: contact,company + name: ContactCompany + - value: contact,company,accounting_period + name: ContactCompanyAccountingPeriod - line_items - value: line_items,account name: LineItemsAccount - value: line_items,account,accounting_period name: LineItemsAccountAccountingPeriod + - value: line_items,account,company + name: LineItemsAccountCompany + - value: line_items,account,company,accounting_period + name: LineItemsAccountCompanyAccountingPeriod - value: line_items,accounting_period name: LineItemsAccountingPeriod + - value: line_items,company + name: LineItemsCompany + - value: line_items,company,accounting_period + name: LineItemsCompanyAccountingPeriod - value: line_items,contact name: LineItemsContact - value: line_items,contact,account name: LineItemsContactAccount - value: line_items,contact,account,accounting_period name: LineItemsContactAccountAccountingPeriod + - value: line_items,contact,account,company + name: LineItemsContactAccountCompany + - value: line_items,contact,account,company,accounting_period + name: LineItemsContactAccountCompanyAccountingPeriod - value: line_items,contact,accounting_period name: LineItemsContactAccountingPeriod + - value: line_items,contact,company + name: LineItemsContactCompany + - value: line_items,contact,company,accounting_period + name: LineItemsContactCompanyAccountingPeriod - value: line_items,tracking_categories name: LineItemsTrackingCategories - value: line_items,tracking_categories,account name: LineItemsTrackingCategoriesAccount - value: line_items,tracking_categories,account,accounting_period name: LineItemsTrackingCategoriesAccountAccountingPeriod + - value: line_items,tracking_categories,account,company + name: LineItemsTrackingCategoriesAccountCompany + - value: line_items,tracking_categories,account,company,accounting_period + name: LineItemsTrackingCategoriesAccountCompanyAccountingPeriod - value: line_items,tracking_categories,accounting_period name: LineItemsTrackingCategoriesAccountingPeriod + - value: line_items,tracking_categories,company + name: LineItemsTrackingCategoriesCompany + - value: line_items,tracking_categories,company,accounting_period + name: LineItemsTrackingCategoriesCompanyAccountingPeriod - value: line_items,tracking_categories,contact name: LineItemsTrackingCategoriesContact - value: line_items,tracking_categories,contact,account name: LineItemsTrackingCategoriesContactAccount - value: line_items,tracking_categories,contact,account,accounting_period name: LineItemsTrackingCategoriesContactAccountAccountingPeriod + - value: line_items,tracking_categories,contact,account,company + name: LineItemsTrackingCategoriesContactAccountCompany + - value: >- + line_items,tracking_categories,contact,account,company,accounting_period + name: LineItemsTrackingCategoriesContactAccountCompanyAccountingPeriod - value: line_items,tracking_categories,contact,accounting_period name: LineItemsTrackingCategoriesContactAccountingPeriod + - value: line_items,tracking_categories,contact,company + name: LineItemsTrackingCategoriesContactCompany + - value: line_items,tracking_categories,contact,company,accounting_period + name: LineItemsTrackingCategoriesContactCompanyAccountingPeriod - tracking_categories - value: tracking_categories,account name: TrackingCategoriesAccount - value: tracking_categories,account,accounting_period name: TrackingCategoriesAccountAccountingPeriod + - value: tracking_categories,account,company + name: TrackingCategoriesAccountCompany + - value: tracking_categories,account,company,accounting_period + name: TrackingCategoriesAccountCompanyAccountingPeriod - value: tracking_categories,accounting_period name: TrackingCategoriesAccountingPeriod + - value: tracking_categories,company + name: TrackingCategoriesCompany + - value: tracking_categories,company,accounting_period + name: TrackingCategoriesCompanyAccountingPeriod - value: tracking_categories,contact name: TrackingCategoriesContact - value: tracking_categories,contact,account name: TrackingCategoriesContactAccount - value: tracking_categories,contact,account,accounting_period name: TrackingCategoriesContactAccountAccountingPeriod + - value: tracking_categories,contact,account,company + name: TrackingCategoriesContactAccountCompany + - value: tracking_categories,contact,account,company,accounting_period + name: TrackingCategoriesContactAccountCompanyAccountingPeriod - value: tracking_categories,contact,accounting_period name: TrackingCategoriesContactAccountingPeriod + - value: tracking_categories,contact,company + name: TrackingCategoriesContactCompany + - value: tracking_categories,contact,company,accounting_period + name: TrackingCategoriesContactCompanyAccountingPeriod source: openapi: openapi/openapi.yml imports: @@ -205,7 +333,10 @@ service: type: root.PaginatedTransactionList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -308,7 +439,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0048ea5b-911e-4dff-9364-92070dea62ff @@ -339,7 +471,6 @@ service: quantity: '10.0' item: 0958cbc6-6040-430a-848e-aafacbadf4ae account: 2b38c085-2620-4269-b5ec-75dd9095ed2c - tracking_category: tracking_category tracking_categories: - f1214c24-2702-4617-b74b-3ddecfc0d384 - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -359,7 +490,6 @@ service: quantity: '10.0' item: 249c9faa-3045-4a31-953b-8f22d3613301 account: 3e442c5d-8f51-4103-b5c9-dcee39c30a08 - tracking_category: tracking_category tracking_categories: - f1214c24-2702-4617-b74b-3ddecfc0d384 - 9b840d2-686a-465a-8a8e-7b028498f8e4 diff --git a/.mock/definition/accounting/vendorCredits.yml b/.mock/definition/accounting/vendorCredits.yml index 39b41415..b8507e7c 100644 --- a/.mock/definition/accounting/vendorCredits.yml +++ b/.mock/definition/accounting/vendorCredits.yml @@ -203,7 +203,10 @@ service: type: root.PaginatedVendorCreditList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -298,7 +301,8 @@ service: type: root.VendorCreditResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -420,7 +424,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 @@ -441,7 +446,6 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' net_amount: 25.54 - tracking_category: tracking_category tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -459,7 +463,6 @@ service: created_at: '2021-09-15T00:00:00Z' modified_at: '2021-10-16T00:00:00Z' net_amount: 10 - tracking_category: tracking_category tracking_categories: - b38c59b0-a9d7-4740-b1ee-5436c6751e3d - 9b840d2-686a-465a-8a8e-7b028498f8e4 @@ -507,7 +510,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/accounting/webhookReceivers.yml b/.mock/definition/accounting/webhookReceivers.yml index 0c90c826..c7bb86ce 100644 --- a/.mock/definition/accounting/webhookReceivers.yml +++ b/.mock/definition/accounting/webhookReceivers.yml @@ -16,7 +16,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - event: event @@ -48,7 +49,8 @@ service: type: root.WebhookReceiver status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: event: event is_active: true diff --git a/.mock/definition/ats/__package__.yml b/.mock/definition/ats/__package__.yml index 2056295f..f57b65fa 100644 --- a/.mock/definition/ats/__package__.yml +++ b/.mock/definition/ats/__package__.yml @@ -1620,6 +1620,7 @@ types: - CREATED_TEST_API_KEY - DELETED_TEST_API_KEY - REGENERATED_PRODUCTION_API_KEY + - REGENERATED_WEBHOOK_SIGNATURE - INVITED_USER - TWO_FACTOR_AUTH_ENABLED - TWO_FACTOR_AUTH_DISABLED diff --git a/.mock/definition/ats/accountDetails.yml b/.mock/definition/ats/accountDetails.yml index fe37fa60..a09c4849 100644 --- a/.mock/definition/ats/accountDetails.yml +++ b/.mock/definition/ats/accountDetails.yml @@ -16,7 +16,8 @@ service: type: root.AccountDetails status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd diff --git a/.mock/definition/ats/accountToken.yml b/.mock/definition/ats/accountToken.yml index 0c372796..3c055421 100644 --- a/.mock/definition/ats/accountToken.yml +++ b/.mock/definition/ats/accountToken.yml @@ -22,6 +22,8 @@ service: examples: - path-parameters: public_token: public_token + headers: + X-Account-Token: '[object Object]' response: body: account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB diff --git a/.mock/definition/ats/activities.yml b/.mock/definition/ats/activities.yml index 362836ad..2ed08a54 100644 --- a/.mock/definition/ats/activities.yml +++ b/.mock/definition/ats/activities.yml @@ -115,7 +115,10 @@ service: type: root.PaginatedActivityList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -170,7 +173,8 @@ service: type: root.ActivityResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} remote_user_id: remote_user_id @@ -262,7 +266,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ecbe05ac-62a3-46c5-ab31-4b478b37d1b4 @@ -298,7 +303,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ats/applications.yml b/.mock/definition/ats/applications.yml index 4a5822f9..a6c86947 100644 --- a/.mock/definition/ats/applications.yml +++ b/.mock/definition/ats/applications.yml @@ -1426,7 +1426,10 @@ service: type: root.PaginatedApplicationList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1498,7 +1501,8 @@ service: type: root.ApplicationResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} remote_user_id: remote_user_id @@ -1586,7 +1590,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 92e8a369-fffe-430d-b93a-f7e8a16563f1 @@ -1655,7 +1660,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -1727,7 +1733,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ats/asyncPassthrough.yml b/.mock/definition/ats/asyncPassthrough.yml index 94686f10..1ab045cf 100644 --- a/.mock/definition/ats/asyncPassthrough.yml +++ b/.mock/definition/ats/asyncPassthrough.yml @@ -21,7 +21,8 @@ service: type: root.AsyncPassthroughReciept status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters @@ -44,7 +45,8 @@ service: examples: - path-parameters: async_passthrough_receipt_id: async_passthrough_receipt_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: method: GET diff --git a/.mock/definition/ats/attachments.yml b/.mock/definition/ats/attachments.yml index 14b45b1b..901d2eac 100644 --- a/.mock/definition/ats/attachments.yml +++ b/.mock/definition/ats/attachments.yml @@ -82,7 +82,10 @@ service: type: root.PaginatedAttachmentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -134,7 +137,8 @@ service: type: root.AttachmentResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} remote_user_id: remote_user_id @@ -223,7 +227,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: c640b80b-fac9-409f-aa19-1f9221aec445 @@ -256,7 +261,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ats/auditTrail.yml b/.mock/definition/ats/auditTrail.yml index 36833ffe..d5a8c615 100644 --- a/.mock/definition/ats/auditTrail.yml +++ b/.mock/definition/ats/auditTrail.yml @@ -75,7 +75,11 @@ service: type: root.PaginatedAuditLogEventList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/ats/availableActions.yml b/.mock/definition/ats/availableActions.yml index 8e529df3..2f7515df 100644 --- a/.mock/definition/ats/availableActions.yml +++ b/.mock/definition/ats/availableActions.yml @@ -16,7 +16,8 @@ service: type: root.AvailableActions status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: integration: diff --git a/.mock/definition/ats/candidates.yml b/.mock/definition/ats/candidates.yml index b4312f21..7a651946 100644 --- a/.mock/definition/ats/candidates.yml +++ b/.mock/definition/ats/candidates.yml @@ -102,7 +102,10 @@ service: type: root.PaginatedCandidateList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -186,7 +189,8 @@ service: type: root.CandidateResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} remote_user_id: remote_user_id @@ -297,7 +301,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 521b18c2-4d01-4297-b451-19858d07c133 @@ -385,7 +390,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} remote_user_id: remote_user_id @@ -489,7 +495,8 @@ service: examples: - path-parameters: model_id: model_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: reason: GENERAL_CUSTOMER_REQUEST metaPatchRetrieve: @@ -508,7 +515,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -692,7 +700,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ats/deleteAccount.yml b/.mock/definition/ats/deleteAccount.yml index 6255a393..9ffe1a71 100644 --- a/.mock/definition/ats/deleteAccount.yml +++ b/.mock/definition/ats/deleteAccount.yml @@ -10,6 +10,7 @@ service: source: openapi: openapi/openapi.yml examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token source: openapi: openapi/openapi.yml diff --git a/.mock/definition/ats/departments.yml b/.mock/definition/ats/departments.yml index 8f001f43..ec1c4fa0 100644 --- a/.mock/definition/ats/departments.yml +++ b/.mock/definition/ats/departments.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedDepartmentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -114,7 +117,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 5b3c1341-a20f-4e51-b72c-f3830a16c97b diff --git a/.mock/definition/ats/eeocs.yml b/.mock/definition/ats/eeocs.yml index 91dbf6b9..b14f676d 100644 --- a/.mock/definition/ats/eeocs.yml +++ b/.mock/definition/ats/eeocs.yml @@ -203,7 +203,10 @@ service: type: root.PaginatedEeocList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -273,7 +276,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: f7dd7b4f-237e-4772-8bd4-3246384c6c58 diff --git a/.mock/definition/ats/fieldMapping.yml b/.mock/definition/ats/fieldMapping.yml index 9d92fea8..949a75b5 100644 --- a/.mock/definition/ats/fieldMapping.yml +++ b/.mock/definition/ats/fieldMapping.yml @@ -30,7 +30,8 @@ service: type: root.FieldMappingApiInstanceResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Activity: @@ -357,7 +358,8 @@ service: type: root.FieldMappingInstanceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: target_field_name: example_target_field_name target_field_description: this is a example description of the target field @@ -424,7 +426,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: model: @@ -506,7 +509,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -577,7 +581,8 @@ service: type: root.RemoteFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Activity: @@ -821,7 +826,8 @@ service: type: root.ExternalTargetFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Activity: diff --git a/.mock/definition/ats/forceResync.yml b/.mock/definition/ats/forceResync.yml index 8a603992..b939eabe 100644 --- a/.mock/definition/ats/forceResync.yml +++ b/.mock/definition/ats/forceResync.yml @@ -21,7 +21,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - model_name: Candidate diff --git a/.mock/definition/ats/generateKey.yml b/.mock/definition/ats/generateKey.yml index 40a39dcb..c7da4da8 100644 --- a/.mock/definition/ats/generateKey.yml +++ b/.mock/definition/ats/generateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/ats/interviews.yml b/.mock/definition/ats/interviews.yml index aa95289c..0d25c536 100644 --- a/.mock/definition/ats/interviews.yml +++ b/.mock/definition/ats/interviews.yml @@ -152,7 +152,10 @@ service: type: root.PaginatedScheduledInterviewList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -212,7 +215,8 @@ service: type: root.ScheduledInterviewResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} remote_user_id: remote_user_id @@ -309,7 +313,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b8faf072-98b9-4445-8a9a-6b4950efca19 @@ -350,7 +355,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ats/issues.yml b/.mock/definition/ats/issues.yml index 4984ce4e..51de2a7d 100644 --- a/.mock/definition/ats/issues.yml +++ b/.mock/definition/ats/issues.yml @@ -80,7 +80,11 @@ service: type: root.PaginatedIssueList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ @@ -112,6 +116,8 @@ service: examples: - path-parameters: id: id + headers: + X-Account-Token: '[object Object]' response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 diff --git a/.mock/definition/ats/jobInterviewStages.yml b/.mock/definition/ats/jobInterviewStages.yml index 5753b281..d1a7f9fd 100644 --- a/.mock/definition/ats/jobInterviewStages.yml +++ b/.mock/definition/ats/jobInterviewStages.yml @@ -72,7 +72,10 @@ service: type: root.PaginatedJobInterviewStageList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -129,7 +132,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: f9813dd5-e70b-484c-91d8-00acd6065b07 diff --git a/.mock/definition/ats/jobPostings.yml b/.mock/definition/ats/jobPostings.yml index 859b5bb4..c888c890 100644 --- a/.mock/definition/ats/jobPostings.yml +++ b/.mock/definition/ats/jobPostings.yml @@ -95,7 +95,10 @@ service: type: root.PaginatedJobPostingList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -161,7 +164,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 156a2bef-57e5-4def-8ed2-7c41bd9a554t diff --git a/.mock/definition/ats/jobs.yml b/.mock/definition/ats/jobs.yml index 7ec7441a..b5f780af 100644 --- a/.mock/definition/ats/jobs.yml +++ b/.mock/definition/ats/jobs.yml @@ -243,7 +243,10 @@ service: type: root.PaginatedJobList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -334,7 +337,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 022a2bef-57e5-4def-8ed2-7c41bd9a5ed8 @@ -427,7 +431,10 @@ service: examples: - path-parameters: job_id: job_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/ats/linkToken.yml b/.mock/definition/ats/linkToken.yml index 2fa09e38..d2cee140 100644 --- a/.mock/definition/ats/linkToken.yml +++ b/.mock/definition/ats/linkToken.yml @@ -119,7 +119,9 @@ service: type: root.LinkToken status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: end_user_email_address: example@gmail.com end_user_organization_name: Test Organization end_user_origin_id: '12345' diff --git a/.mock/definition/ats/linkedAccounts.yml b/.mock/definition/ats/linkedAccounts.yml index 7acf3099..1f942677 100644 --- a/.mock/definition/ats/linkedAccounts.yml +++ b/.mock/definition/ats/linkedAccounts.yml @@ -107,7 +107,11 @@ service: type: root.PaginatedAccountDetailsAndActionsList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/ats/offers.yml b/.mock/definition/ats/offers.yml index cb2591c8..bfbc9bb7 100644 --- a/.mock/definition/ats/offers.yml +++ b/.mock/definition/ats/offers.yml @@ -102,7 +102,10 @@ service: type: root.PaginatedOfferList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -173,7 +176,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: dd85625c-6a59-446f-a317-6de64d83bae7 diff --git a/.mock/definition/ats/offices.yml b/.mock/definition/ats/offices.yml index 080386b8..d8009929 100644 --- a/.mock/definition/ats/offices.yml +++ b/.mock/definition/ats/offices.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedOfficeList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -115,7 +118,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 9871b4a9-f5d2-4f3b-a66b-dfedbed42c46 diff --git a/.mock/definition/ats/passthrough.yml b/.mock/definition/ats/passthrough.yml index 7141a6bd..a3dff513 100644 --- a/.mock/definition/ats/passthrough.yml +++ b/.mock/definition/ats/passthrough.yml @@ -19,7 +19,8 @@ service: type: root.RemoteResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters diff --git a/.mock/definition/ats/regenerateKey.yml b/.mock/definition/ats/regenerateKey.yml index 1ea4149a..5db09f20 100644 --- a/.mock/definition/ats/regenerateKey.yml +++ b/.mock/definition/ats/regenerateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/ats/rejectReasons.yml b/.mock/definition/ats/rejectReasons.yml index 1552c46c..fc100819 100644 --- a/.mock/definition/ats/rejectReasons.yml +++ b/.mock/definition/ats/rejectReasons.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedRejectReasonList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -114,7 +117,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 8be99a4a-f8d4-4339-bf1e-30eac970e217 diff --git a/.mock/definition/ats/scopes.yml b/.mock/definition/ats/scopes.yml index 422d3fa4..bdaf6ed0 100644 --- a/.mock/definition/ats/scopes.yml +++ b/.mock/definition/ats/scopes.yml @@ -19,7 +19,9 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - response: + - headers: + X-Account-Token: '[object Object]' + response: body: common_models: - model_name: Employee @@ -60,7 +62,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: common_models: @@ -111,7 +114,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: common_models: - model_name: Employee diff --git a/.mock/definition/ats/scorecards.yml b/.mock/definition/ats/scorecards.yml index 6f83e854..a5f93514 100644 --- a/.mock/definition/ats/scorecards.yml +++ b/.mock/definition/ats/scorecards.yml @@ -119,7 +119,10 @@ service: type: root.PaginatedScorecardList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -189,7 +192,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 3eab2f17-eeb1-450d-97f0-029d8be1e06f diff --git a/.mock/definition/ats/syncStatus.yml b/.mock/definition/ats/syncStatus.yml index 99b9bd54..81b1fa9c 100644 --- a/.mock/definition/ats/syncStatus.yml +++ b/.mock/definition/ats/syncStatus.yml @@ -36,7 +36,10 @@ service: type: root.PaginatedSyncStatusList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/ats/tags.yml b/.mock/definition/ats/tags.yml index f6007d90..106e5cf9 100644 --- a/.mock/definition/ats/tags.yml +++ b/.mock/definition/ats/tags.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedTagList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/ats/users.yml b/.mock/definition/ats/users.yml index 3bd2db1f..90a2bb54 100644 --- a/.mock/definition/ats/users.yml +++ b/.mock/definition/ats/users.yml @@ -81,7 +81,10 @@ service: type: root.PaginatedRemoteUserList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -146,7 +149,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: b82302de-852e-4e60-b050-edf9da3b7c02 diff --git a/.mock/definition/ats/webhookReceivers.yml b/.mock/definition/ats/webhookReceivers.yml index 91d2ae65..76339c9f 100644 --- a/.mock/definition/ats/webhookReceivers.yml +++ b/.mock/definition/ats/webhookReceivers.yml @@ -16,7 +16,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - event: event @@ -48,7 +49,8 @@ service: type: root.WebhookReceiver status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: event: event is_active: true diff --git a/.mock/definition/crm/__package__.yml b/.mock/definition/crm/__package__.yml index 4146a389..c648f819 100644 --- a/.mock/definition/crm/__package__.yml +++ b/.mock/definition/crm/__package__.yml @@ -4286,6 +4286,7 @@ types: remote_key_name: optional description: optional is_custom: optional + is_common_model_field: optional is_required: optional field_type: optional field_format: optional diff --git a/.mock/definition/crm/accountDetails.yml b/.mock/definition/crm/accountDetails.yml index 4fe53ba5..2d2405a1 100644 --- a/.mock/definition/crm/accountDetails.yml +++ b/.mock/definition/crm/accountDetails.yml @@ -16,7 +16,8 @@ service: type: root.AccountDetails status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd diff --git a/.mock/definition/crm/accountToken.yml b/.mock/definition/crm/accountToken.yml index f06c40c5..a47b83c3 100644 --- a/.mock/definition/crm/accountToken.yml +++ b/.mock/definition/crm/accountToken.yml @@ -22,6 +22,8 @@ service: examples: - path-parameters: public_token: public_token + headers: + X-Account-Token: '[object Object]' response: body: account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB diff --git a/.mock/definition/crm/accounts.yml b/.mock/definition/crm/accounts.yml index 5893b29b..c5e7f700 100644 --- a/.mock/definition/crm/accounts.yml +++ b/.mock/definition/crm/accounts.yml @@ -80,7 +80,10 @@ service: type: root.PaginatedAccountList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -153,7 +156,8 @@ service: type: root.CrmAccountResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -258,7 +262,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0958cbc6-6040-430a-848e-aafacbadf4ae @@ -334,7 +339,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -416,7 +422,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -600,7 +607,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -826,7 +834,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -837,6 +848,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/associationTypes.yml b/.mock/definition/crm/associationTypes.yml index 01f582d6..44da88c3 100644 --- a/.mock/definition/crm/associationTypes.yml +++ b/.mock/definition/crm/associationTypes.yml @@ -73,7 +73,10 @@ service: examples: - path-parameters: custom_object_class_id: custom_object_class_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -124,7 +127,8 @@ service: examples: - path-parameters: custom_object_class_id: custom_object_class_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: source_object_class: @@ -208,7 +212,8 @@ service: - path-parameters: custom_object_class_id: custom_object_class_id id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 5bb73c32-3c6c-4757-ab7d-7d3540a1be31 @@ -244,7 +249,8 @@ service: examples: - path-parameters: custom_object_class_id: custom_object_class_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/crm/associations.yml b/.mock/definition/crm/associations.yml index bf27f3eb..983b55fe 100644 --- a/.mock/definition/crm/associations.yml +++ b/.mock/definition/crm/associations.yml @@ -81,7 +81,10 @@ service: - path-parameters: custom_object_class_id: custom_object_class_id object_id: object_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -130,7 +133,8 @@ service: source_object_id: source_object_id target_class_id: target_class_id target_object_id: target_object_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: created_at: '2021-09-15T00:00:00Z' diff --git a/.mock/definition/crm/asyncPassthrough.yml b/.mock/definition/crm/asyncPassthrough.yml index 6a7e257e..2fc106c9 100644 --- a/.mock/definition/crm/asyncPassthrough.yml +++ b/.mock/definition/crm/asyncPassthrough.yml @@ -21,7 +21,8 @@ service: type: root.AsyncPassthroughReciept status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters @@ -44,7 +45,8 @@ service: examples: - path-parameters: async_passthrough_receipt_id: async_passthrough_receipt_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: method: GET diff --git a/.mock/definition/crm/auditTrail.yml b/.mock/definition/crm/auditTrail.yml index 68ad5c2f..be883e26 100644 --- a/.mock/definition/crm/auditTrail.yml +++ b/.mock/definition/crm/auditTrail.yml @@ -75,7 +75,11 @@ service: type: root.PaginatedAuditLogEventList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/crm/availableActions.yml b/.mock/definition/crm/availableActions.yml index 40338033..71b5d890 100644 --- a/.mock/definition/crm/availableActions.yml +++ b/.mock/definition/crm/availableActions.yml @@ -16,7 +16,8 @@ service: type: root.AvailableActions status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: integration: diff --git a/.mock/definition/crm/contacts.yml b/.mock/definition/crm/contacts.yml index 692d06b9..59edc99b 100644 --- a/.mock/definition/crm/contacts.yml +++ b/.mock/definition/crm/contacts.yml @@ -104,7 +104,10 @@ service: type: root.PaginatedContactList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -179,7 +182,8 @@ service: type: root.CrmContactResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -286,7 +290,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -364,7 +369,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -451,7 +457,8 @@ service: examples: - path-parameters: model_id: model_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: reason: GENERAL_CUSTOMER_REQUEST metaPatchRetrieve: @@ -470,7 +477,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -654,7 +662,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -880,7 +889,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -891,6 +903,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/customObjectClasses.yml b/.mock/definition/crm/customObjectClasses.yml index 094efd7c..854fc68f 100644 --- a/.mock/definition/crm/customObjectClasses.yml +++ b/.mock/definition/crm/customObjectClasses.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedCustomObjectClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -146,7 +149,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: ff1ff4cb-a66b-47dc-8e2a-50388049e602 diff --git a/.mock/definition/crm/customObjects.yml b/.mock/definition/crm/customObjects.yml index d4904e56..275d59c9 100644 --- a/.mock/definition/crm/customObjects.yml +++ b/.mock/definition/crm/customObjects.yml @@ -73,7 +73,10 @@ service: examples: - path-parameters: custom_object_class_id: custom_object_class_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -121,7 +124,8 @@ service: examples: - path-parameters: custom_object_class_id: custom_object_class_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: fields: @@ -197,7 +201,8 @@ service: - path-parameters: custom_object_class_id: custom_object_class_id id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: da0b1963-be70-469c-9f8c-06a81d0fe759 @@ -230,7 +235,8 @@ service: examples: - path-parameters: custom_object_class_id: custom_object_class_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -456,7 +462,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -467,6 +476,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/deleteAccount.yml b/.mock/definition/crm/deleteAccount.yml index b0bfe1cd..9a343bd8 100644 --- a/.mock/definition/crm/deleteAccount.yml +++ b/.mock/definition/crm/deleteAccount.yml @@ -10,6 +10,7 @@ service: source: openapi: openapi/openapi.yml examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token source: openapi: openapi/openapi.yml diff --git a/.mock/definition/crm/engagementTypes.yml b/.mock/definition/crm/engagementTypes.yml index 2070b2ef..025fe8e8 100644 --- a/.mock/definition/crm/engagementTypes.yml +++ b/.mock/definition/crm/engagementTypes.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedEngagementTypeList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -117,7 +120,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -184,7 +188,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -195,6 +202,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/engagements.yml b/.mock/definition/crm/engagements.yml index aaf88ac0..0812685b 100644 --- a/.mock/definition/crm/engagements.yml +++ b/.mock/definition/crm/engagements.yml @@ -145,7 +145,10 @@ service: type: root.PaginatedEngagementList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -204,7 +207,8 @@ service: type: root.EngagementResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -295,7 +299,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -357,7 +362,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -425,7 +431,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -609,7 +616,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -835,7 +843,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -846,6 +857,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/fieldMapping.yml b/.mock/definition/crm/fieldMapping.yml index 5318dcf3..81c29c9c 100644 --- a/.mock/definition/crm/fieldMapping.yml +++ b/.mock/definition/crm/fieldMapping.yml @@ -30,7 +30,8 @@ service: type: root.FieldMappingApiInstanceResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Account: @@ -245,7 +246,8 @@ service: type: root.FieldMappingInstanceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: target_field_name: example_target_field_name target_field_description: this is a example description of the target field @@ -312,7 +314,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: model: @@ -394,7 +397,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -465,7 +469,8 @@ service: type: root.RemoteFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Account: @@ -611,7 +616,8 @@ service: type: root.ExternalTargetFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Account: diff --git a/.mock/definition/crm/forceResync.yml b/.mock/definition/crm/forceResync.yml index eb74ba18..32a995cb 100644 --- a/.mock/definition/crm/forceResync.yml +++ b/.mock/definition/crm/forceResync.yml @@ -21,7 +21,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - model_name: Account diff --git a/.mock/definition/crm/generateKey.yml b/.mock/definition/crm/generateKey.yml index 233479da..c913f239 100644 --- a/.mock/definition/crm/generateKey.yml +++ b/.mock/definition/crm/generateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/crm/issues.yml b/.mock/definition/crm/issues.yml index ed21c69c..85deddd4 100644 --- a/.mock/definition/crm/issues.yml +++ b/.mock/definition/crm/issues.yml @@ -80,7 +80,11 @@ service: type: root.PaginatedIssueList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ @@ -112,6 +116,8 @@ service: examples: - path-parameters: id: id + headers: + X-Account-Token: '[object Object]' response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 diff --git a/.mock/definition/crm/leads.yml b/.mock/definition/crm/leads.yml index d4870273..22b29f27 100644 --- a/.mock/definition/crm/leads.yml +++ b/.mock/definition/crm/leads.yml @@ -124,7 +124,10 @@ service: type: root.PaginatedLeadList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -204,7 +207,8 @@ service: type: root.LeadResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -316,7 +320,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -380,7 +385,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -606,7 +612,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -617,6 +626,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/linkToken.yml b/.mock/definition/crm/linkToken.yml index 036f8260..7d3edc13 100644 --- a/.mock/definition/crm/linkToken.yml +++ b/.mock/definition/crm/linkToken.yml @@ -119,7 +119,9 @@ service: type: root.LinkToken status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: end_user_email_address: example@gmail.com end_user_organization_name: Test Organization end_user_origin_id: '12345' diff --git a/.mock/definition/crm/linkedAccounts.yml b/.mock/definition/crm/linkedAccounts.yml index c6f4399e..d2bf12d2 100644 --- a/.mock/definition/crm/linkedAccounts.yml +++ b/.mock/definition/crm/linkedAccounts.yml @@ -107,7 +107,11 @@ service: type: root.PaginatedAccountDetailsAndActionsList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/crm/notes.yml b/.mock/definition/crm/notes.yml index df9293aa..ac7d94d1 100644 --- a/.mock/definition/crm/notes.yml +++ b/.mock/definition/crm/notes.yml @@ -147,7 +147,10 @@ service: type: root.PaginatedNoteList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -203,7 +206,8 @@ service: type: root.NoteResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -291,7 +295,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -331,7 +336,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -557,7 +563,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -568,6 +577,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/opportunities.yml b/.mock/definition/crm/opportunities.yml index 4a0253aa..3aaaa4d0 100644 --- a/.mock/definition/crm/opportunities.yml +++ b/.mock/definition/crm/opportunities.yml @@ -148,7 +148,10 @@ service: type: root.PaginatedOpportunityList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -207,7 +210,8 @@ service: type: root.OpportunityResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -308,7 +312,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -370,7 +375,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -438,7 +444,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -622,7 +629,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -848,7 +856,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -859,6 +870,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/passthrough.yml b/.mock/definition/crm/passthrough.yml index 902b459d..a0a04015 100644 --- a/.mock/definition/crm/passthrough.yml +++ b/.mock/definition/crm/passthrough.yml @@ -19,7 +19,8 @@ service: type: root.RemoteResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters diff --git a/.mock/definition/crm/regenerateKey.yml b/.mock/definition/crm/regenerateKey.yml index 06a1b856..d807b273 100644 --- a/.mock/definition/crm/regenerateKey.yml +++ b/.mock/definition/crm/regenerateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/crm/scopes.yml b/.mock/definition/crm/scopes.yml index 67286e70..7069f300 100644 --- a/.mock/definition/crm/scopes.yml +++ b/.mock/definition/crm/scopes.yml @@ -19,7 +19,9 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - response: + - headers: + X-Account-Token: '[object Object]' + response: body: common_models: - model_name: Employee @@ -60,7 +62,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: common_models: @@ -111,7 +114,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: common_models: - model_name: Employee diff --git a/.mock/definition/crm/stages.yml b/.mock/definition/crm/stages.yml index a8676fa5..126f73c6 100644 --- a/.mock/definition/crm/stages.yml +++ b/.mock/definition/crm/stages.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedStageList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -126,7 +129,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0358cbc6-2040-430a-848e-aafacbadf3aa @@ -202,7 +206,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -213,6 +220,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/syncStatus.yml b/.mock/definition/crm/syncStatus.yml index 52d8c36e..8e3a610c 100644 --- a/.mock/definition/crm/syncStatus.yml +++ b/.mock/definition/crm/syncStatus.yml @@ -36,7 +36,10 @@ service: type: root.PaginatedSyncStatusList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/crm/tasks.yml b/.mock/definition/crm/tasks.yml index befb0c54..e5b9f3b8 100644 --- a/.mock/definition/crm/tasks.yml +++ b/.mock/definition/crm/tasks.yml @@ -105,7 +105,10 @@ service: type: root.PaginatedTaskList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -162,7 +165,8 @@ service: type: root.TaskResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -251,7 +255,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 550e8400-e29b-41d4-a716-446655440000 @@ -311,7 +316,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -377,7 +383,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -561,7 +568,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -787,7 +795,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -798,6 +809,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/users.yml b/.mock/definition/crm/users.yml index 6762984a..ba9863c8 100644 --- a/.mock/definition/crm/users.yml +++ b/.mock/definition/crm/users.yml @@ -72,7 +72,10 @@ service: type: root.PaginatedUserList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -131,7 +134,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0358cbc6-2040-430a-848e-aafacbadf3aa @@ -174,7 +178,8 @@ service: examples: - path-parameters: model_id: model_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: reason: GENERAL_CUSTOMER_REQUEST remoteFieldClassesList: @@ -231,7 +236,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -242,6 +250,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/crm/webhookReceivers.yml b/.mock/definition/crm/webhookReceivers.yml index c68cd98b..e01c1645 100644 --- a/.mock/definition/crm/webhookReceivers.yml +++ b/.mock/definition/crm/webhookReceivers.yml @@ -16,7 +16,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - event: event @@ -48,7 +49,8 @@ service: type: root.WebhookReceiver status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: event: event is_active: true diff --git a/.mock/definition/filestorage/accountDetails.yml b/.mock/definition/filestorage/accountDetails.yml index 2411f37c..944a422b 100644 --- a/.mock/definition/filestorage/accountDetails.yml +++ b/.mock/definition/filestorage/accountDetails.yml @@ -16,7 +16,8 @@ service: type: root.AccountDetails status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd diff --git a/.mock/definition/filestorage/accountToken.yml b/.mock/definition/filestorage/accountToken.yml index 2c17a04f..e5400279 100644 --- a/.mock/definition/filestorage/accountToken.yml +++ b/.mock/definition/filestorage/accountToken.yml @@ -22,6 +22,8 @@ service: examples: - path-parameters: public_token: public_token + headers: + X-Account-Token: '[object Object]' response: body: account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB diff --git a/.mock/definition/filestorage/asyncPassthrough.yml b/.mock/definition/filestorage/asyncPassthrough.yml index 58df8351..1408e056 100644 --- a/.mock/definition/filestorage/asyncPassthrough.yml +++ b/.mock/definition/filestorage/asyncPassthrough.yml @@ -21,7 +21,8 @@ service: type: root.AsyncPassthroughReciept status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters @@ -44,7 +45,8 @@ service: examples: - path-parameters: async_passthrough_receipt_id: async_passthrough_receipt_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: method: GET diff --git a/.mock/definition/filestorage/auditTrail.yml b/.mock/definition/filestorage/auditTrail.yml index f21c35fe..c9fb17ce 100644 --- a/.mock/definition/filestorage/auditTrail.yml +++ b/.mock/definition/filestorage/auditTrail.yml @@ -75,7 +75,11 @@ service: type: root.PaginatedAuditLogEventList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/filestorage/availableActions.yml b/.mock/definition/filestorage/availableActions.yml index b7a5e2b1..b60bd0c8 100644 --- a/.mock/definition/filestorage/availableActions.yml +++ b/.mock/definition/filestorage/availableActions.yml @@ -16,7 +16,8 @@ service: type: root.AvailableActions status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: integration: diff --git a/.mock/definition/filestorage/deleteAccount.yml b/.mock/definition/filestorage/deleteAccount.yml index 9b691154..cb9280c2 100644 --- a/.mock/definition/filestorage/deleteAccount.yml +++ b/.mock/definition/filestorage/deleteAccount.yml @@ -10,6 +10,7 @@ service: source: openapi: openapi/openapi.yml examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token source: openapi: openapi/openapi.yml diff --git a/.mock/definition/filestorage/drives.yml b/.mock/definition/filestorage/drives.yml index 969b2321..8053831f 100644 --- a/.mock/definition/filestorage/drives.yml +++ b/.mock/definition/filestorage/drives.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedDriveList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -121,7 +124,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: f9e3d315-d6c2-458e-85c4-fa773d6ff4a6 diff --git a/.mock/definition/filestorage/fieldMapping.yml b/.mock/definition/filestorage/fieldMapping.yml index 0ef97a18..73378990 100644 --- a/.mock/definition/filestorage/fieldMapping.yml +++ b/.mock/definition/filestorage/fieldMapping.yml @@ -30,7 +30,8 @@ service: type: root.FieldMappingApiInstanceResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: File: @@ -181,7 +182,8 @@ service: type: root.FieldMappingInstanceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: target_field_name: example_target_field_name target_field_description: this is a example description of the target field @@ -248,7 +250,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: model: @@ -330,7 +333,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -401,7 +405,8 @@ service: type: root.RemoteFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: File: @@ -491,7 +496,8 @@ service: type: root.ExternalTargetFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: File: diff --git a/.mock/definition/filestorage/files.yml b/.mock/definition/filestorage/files.yml index 7230424d..90bb68bd 100644 --- a/.mock/definition/filestorage/files.yml +++ b/.mock/definition/filestorage/files.yml @@ -142,6 +142,16 @@ service: page_size: type: optional docs: Number of results to return per page. + remote_created_after: + type: optional + docs: >- + If provided, will only return files created in the third party + platform after this datetime. + remote_created_before: + type: optional + docs: >- + If provided, will only return files created in the third party + platform before this datetime. remote_id: type: optional docs: The API provider's ID for the given object. @@ -150,7 +160,10 @@ service: type: root.PaginatedFileList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -215,7 +228,8 @@ service: type: root.FileStorageFileResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -307,7 +321,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 45ce474c-dhcj-43a6-754r-629f799f7d68 @@ -401,7 +416,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 @@ -432,6 +448,12 @@ service: cursor: type: optional docs: The pagination cursor value. + ids: + type: optional + allow-multiple: true + docs: >- + If provided, will only return objects with the given IDs. + Comma-separated list of strings. include_deleted_data: type: optional docs: >- @@ -473,7 +495,10 @@ service: type: root.PaginatedDownloadRequestMetaList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -496,7 +521,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/filestorage/folders.yml b/.mock/definition/filestorage/folders.yml index 50ad205b..5ad69d06 100644 --- a/.mock/definition/filestorage/folders.yml +++ b/.mock/definition/filestorage/folders.yml @@ -113,7 +113,10 @@ service: type: root.PaginatedFolderList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -169,7 +172,8 @@ service: type: root.FileStorageFolderResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -252,7 +256,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: e021f7a7-74fc-4487-8e12-14180c92d3b7 @@ -290,7 +295,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/filestorage/forceResync.yml b/.mock/definition/filestorage/forceResync.yml index 644c49b8..6dc20ca9 100644 --- a/.mock/definition/filestorage/forceResync.yml +++ b/.mock/definition/filestorage/forceResync.yml @@ -21,7 +21,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - model_name: File diff --git a/.mock/definition/filestorage/generateKey.yml b/.mock/definition/filestorage/generateKey.yml index 04ac41b8..06b1c8d7 100644 --- a/.mock/definition/filestorage/generateKey.yml +++ b/.mock/definition/filestorage/generateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/filestorage/groups.yml b/.mock/definition/filestorage/groups.yml index 247ce30a..75e3efbd 100644 --- a/.mock/definition/filestorage/groups.yml +++ b/.mock/definition/filestorage/groups.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedGroupList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -128,7 +131,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 5624aceb-0ea2-4864-ba08-354ac56b9884 diff --git a/.mock/definition/filestorage/issues.yml b/.mock/definition/filestorage/issues.yml index b6a1d19e..19a40bd9 100644 --- a/.mock/definition/filestorage/issues.yml +++ b/.mock/definition/filestorage/issues.yml @@ -80,7 +80,11 @@ service: type: root.PaginatedIssueList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ @@ -112,6 +116,8 @@ service: examples: - path-parameters: id: id + headers: + X-Account-Token: '[object Object]' response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 diff --git a/.mock/definition/filestorage/linkToken.yml b/.mock/definition/filestorage/linkToken.yml index fda54a0c..96af04e8 100644 --- a/.mock/definition/filestorage/linkToken.yml +++ b/.mock/definition/filestorage/linkToken.yml @@ -119,7 +119,9 @@ service: type: root.LinkToken status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: end_user_email_address: example@gmail.com end_user_organization_name: Test Organization end_user_origin_id: '12345' diff --git a/.mock/definition/filestorage/linkedAccounts.yml b/.mock/definition/filestorage/linkedAccounts.yml index d8fb0eb6..3c656510 100644 --- a/.mock/definition/filestorage/linkedAccounts.yml +++ b/.mock/definition/filestorage/linkedAccounts.yml @@ -107,7 +107,11 @@ service: type: root.PaginatedAccountDetailsAndActionsList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/filestorage/passthrough.yml b/.mock/definition/filestorage/passthrough.yml index 432034bc..71b42437 100644 --- a/.mock/definition/filestorage/passthrough.yml +++ b/.mock/definition/filestorage/passthrough.yml @@ -19,7 +19,8 @@ service: type: root.RemoteResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters diff --git a/.mock/definition/filestorage/regenerateKey.yml b/.mock/definition/filestorage/regenerateKey.yml index cd80f783..b251851a 100644 --- a/.mock/definition/filestorage/regenerateKey.yml +++ b/.mock/definition/filestorage/regenerateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/filestorage/scopes.yml b/.mock/definition/filestorage/scopes.yml index a48a1642..b6b40f3e 100644 --- a/.mock/definition/filestorage/scopes.yml +++ b/.mock/definition/filestorage/scopes.yml @@ -19,7 +19,9 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - response: + - headers: + X-Account-Token: '[object Object]' + response: body: common_models: - model_name: Employee @@ -60,7 +62,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: common_models: @@ -111,7 +114,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: common_models: - model_name: Employee diff --git a/.mock/definition/filestorage/syncStatus.yml b/.mock/definition/filestorage/syncStatus.yml index 53140e4d..a35bc7c6 100644 --- a/.mock/definition/filestorage/syncStatus.yml +++ b/.mock/definition/filestorage/syncStatus.yml @@ -36,7 +36,10 @@ service: type: root.PaginatedSyncStatusList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/filestorage/users.yml b/.mock/definition/filestorage/users.yml index 6921bd65..38b7714c 100644 --- a/.mock/definition/filestorage/users.yml +++ b/.mock/definition/filestorage/users.yml @@ -67,7 +67,10 @@ service: type: root.PaginatedUserList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -119,7 +122,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 83902e75-4362-4803-b76c-a7d6be292cbd diff --git a/.mock/definition/filestorage/webhookReceivers.yml b/.mock/definition/filestorage/webhookReceivers.yml index 3b0bcace..6b965003 100644 --- a/.mock/definition/filestorage/webhookReceivers.yml +++ b/.mock/definition/filestorage/webhookReceivers.yml @@ -16,7 +16,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - event: event @@ -48,7 +49,8 @@ service: type: root.WebhookReceiver status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: event: event is_active: true diff --git a/.mock/definition/hris/__package__.yml b/.mock/definition/hris/__package__.yml index 40543cd9..66b2fba7 100644 --- a/.mock/definition/hris/__package__.yml +++ b/.mock/definition/hris/__package__.yml @@ -525,6 +525,11 @@ types: end_date: type: optional docs: The day and time the benefit ended. + employer_benefit: + type: optional + docs: The employer benefit plan the employee is enrolled in. + validation: + format: uuid remote_was_deleted: type: optional docs: >- @@ -534,11 +539,6 @@ types: [Learn more](https://docs.merge.dev/integrations/hris/supported-features/). access: read-only - employer_benefit: - type: optional - docs: The employer benefit plan the employee is enrolled in. - validation: - format: uuid field_mappings: type: optional> access: read-only diff --git a/.mock/definition/hris/accountDetails.yml b/.mock/definition/hris/accountDetails.yml index 2d4833d3..140409e5 100644 --- a/.mock/definition/hris/accountDetails.yml +++ b/.mock/definition/hris/accountDetails.yml @@ -16,7 +16,8 @@ service: type: root.AccountDetails status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd diff --git a/.mock/definition/hris/accountToken.yml b/.mock/definition/hris/accountToken.yml index 84185ffb..022851f2 100644 --- a/.mock/definition/hris/accountToken.yml +++ b/.mock/definition/hris/accountToken.yml @@ -22,6 +22,8 @@ service: examples: - path-parameters: public_token: public_token + headers: + X-Account-Token: '[object Object]' response: body: account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB diff --git a/.mock/definition/hris/asyncPassthrough.yml b/.mock/definition/hris/asyncPassthrough.yml index 841c4d91..9cb0b941 100644 --- a/.mock/definition/hris/asyncPassthrough.yml +++ b/.mock/definition/hris/asyncPassthrough.yml @@ -21,7 +21,8 @@ service: type: root.AsyncPassthroughReciept status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters @@ -44,7 +45,8 @@ service: examples: - path-parameters: async_passthrough_receipt_id: async_passthrough_receipt_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: method: GET diff --git a/.mock/definition/hris/auditTrail.yml b/.mock/definition/hris/auditTrail.yml index 19e653ea..684b7e5d 100644 --- a/.mock/definition/hris/auditTrail.yml +++ b/.mock/definition/hris/auditTrail.yml @@ -75,7 +75,11 @@ service: type: root.PaginatedAuditLogEventList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/hris/availableActions.yml b/.mock/definition/hris/availableActions.yml index 74b6e655..e03e84f2 100644 --- a/.mock/definition/hris/availableActions.yml +++ b/.mock/definition/hris/availableActions.yml @@ -16,7 +16,8 @@ service: type: root.AvailableActions status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: integration: diff --git a/.mock/definition/hris/bankInfo.yml b/.mock/definition/hris/bankInfo.yml index d8d8fc21..872097f9 100644 --- a/.mock/definition/hris/bankInfo.yml +++ b/.mock/definition/hris/bankInfo.yml @@ -115,7 +115,10 @@ service: type: root.PaginatedBankInfoList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -185,7 +188,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: fd1e0fb5-8f92-4ec9-9f32-179cf732867d diff --git a/.mock/definition/hris/benefits.yml b/.mock/definition/hris/benefits.yml index 2a98a378..2802723b 100644 --- a/.mock/definition/hris/benefits.yml +++ b/.mock/definition/hris/benefits.yml @@ -74,7 +74,10 @@ service: type: root.PaginatedBenefitList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -86,13 +89,12 @@ service: modified_at: '2021-10-16T00:00:00Z' employee: employee provider_name: Blue Shield of California - benefit_plan_type: benefit_plan_type employee_contribution: 23.65 company_contribution: 150 start_date: '2020-11-15T00:59:25Z' end_date: '2021-10-15T00:23:25Z' - remote_was_deleted: true employer_benefit: 025fjlc6-6000-430a-848e-aafacbadf4fe + remote_was_deleted: true field_mappings: organization_defined_targets: custom_key: custom_value @@ -136,7 +138,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 3fe5ae7a-f1ba-4529-b7af-84e86dc6d232 @@ -145,13 +148,12 @@ service: modified_at: '2021-10-16T00:00:00Z' employee: employee provider_name: Blue Shield of California - benefit_plan_type: benefit_plan_type employee_contribution: 23.65 company_contribution: 150 start_date: '2020-11-15T00:59:25Z' end_date: '2021-10-15T00:23:25Z' - remote_was_deleted: true employer_benefit: 025fjlc6-6000-430a-848e-aafacbadf4fe + remote_was_deleted: true field_mappings: organization_defined_targets: custom_key: custom_value diff --git a/.mock/definition/hris/companies.yml b/.mock/definition/hris/companies.yml index 3b107952..cb3881df 100644 --- a/.mock/definition/hris/companies.yml +++ b/.mock/definition/hris/companies.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedCompanyList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -119,7 +122,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 1b998423-db0a-4037-a4cf-f79c60cb67b3 diff --git a/.mock/definition/hris/deleteAccount.yml b/.mock/definition/hris/deleteAccount.yml index d8b1e45c..fb59bf5f 100644 --- a/.mock/definition/hris/deleteAccount.yml +++ b/.mock/definition/hris/deleteAccount.yml @@ -10,6 +10,7 @@ service: source: openapi: openapi/openapi.yml examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token source: openapi: openapi/openapi.yml diff --git a/.mock/definition/hris/dependents.yml b/.mock/definition/hris/dependents.yml index a4254ddd..75cac5b7 100644 --- a/.mock/definition/hris/dependents.yml +++ b/.mock/definition/hris/dependents.yml @@ -25,6 +25,9 @@ service: cursor: type: optional docs: The pagination cursor value. + employee_id: + type: optional + docs: If provided, will only return dependents for this employee. include_deleted_data: type: optional docs: >- @@ -69,7 +72,10 @@ service: type: root.PaginatedDependentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -134,7 +140,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 025fjlc6-6000-430a-848e-aafacbadf4fe diff --git a/.mock/definition/hris/employeePayrollRuns.yml b/.mock/definition/hris/employeePayrollRuns.yml index c4ffb0b9..f6f53b28 100644 --- a/.mock/definition/hris/employeePayrollRuns.yml +++ b/.mock/definition/hris/employeePayrollRuns.yml @@ -116,7 +116,10 @@ service: type: root.PaginatedEmployeePayrollRunList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -206,7 +209,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: fb8c55b6-1cb8-4b4c-9fb6-17924231619d diff --git a/.mock/definition/hris/employees.yml b/.mock/definition/hris/employees.yml index cfbca08d..e91f8b0e 100644 --- a/.mock/definition/hris/employees.yml +++ b/.mock/definition/hris/employees.yml @@ -1175,6 +1175,9 @@ service: display_full_name: type: optional docs: If provided, will only return employees with this display name. + employee_number: + type: optional + docs: If provided, will only return employees with this employee number. employment_status: type: optional docs: >- @@ -1312,7 +1315,10 @@ service: type: root.PaginatedEmployeeList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1339,14 +1345,12 @@ service: home_location: home_location work_location: work_location manager: manager - team: team pay_group: pay_group ssn: '1234567890' gender: MALE ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE marital_status: SINGLE date_of_birth: '1990-11-10T00:00:00Z' - hire_date: '2020-10-10T00:00:00Z' start_date: '2020-10-11T00:00:00Z' remote_created_at: '2020-10-11T00:00:00Z' employment_status: ACTIVE @@ -1391,7 +1395,8 @@ service: type: root.EmployeeResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -1418,14 +1423,12 @@ service: home_location: home_location work_location: work_location manager: manager - team: team pay_group: pay_group ssn: '1234567890' gender: MALE ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE marital_status: SINGLE date_of_birth: '1990-11-10T00:00:00Z' - hire_date: '2020-10-10T00:00:00Z' start_date: '2020-10-11T00:00:00Z' remote_created_at: '2020-10-11T00:00:00Z' employment_status: ACTIVE @@ -1512,7 +1515,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0958cbc6-6040-430a-848e-aafacbadf4ae @@ -1536,14 +1540,12 @@ service: home_location: home_location work_location: work_location manager: manager - team: team pay_group: pay_group ssn: '1234567890' gender: MALE ethnicity: AMERICAN_INDIAN_OR_ALASKA_NATIVE marital_status: SINGLE date_of_birth: '1990-11-10T00:00:00Z' - hire_date: '2020-10-10T00:00:00Z' start_date: '2020-10-11T00:00:00Z' remote_created_at: '2020-10-11T00:00:00Z' employment_status: ACTIVE @@ -1588,7 +1590,8 @@ service: examples: - path-parameters: model_id: model_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: reason: GENERAL_CUSTOMER_REQUEST metaPostRetrieve: @@ -1603,7 +1606,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/hris/employerBenefits.yml b/.mock/definition/hris/employerBenefits.yml index f110617f..c8b0023c 100644 --- a/.mock/definition/hris/employerBenefits.yml +++ b/.mock/definition/hris/employerBenefits.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedEmployerBenefitList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -115,7 +118,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 025fjlc6-6000-430a-848e-aafacbadf4fele diff --git a/.mock/definition/hris/employments.yml b/.mock/definition/hris/employments.yml index f676c7df..d653306f 100644 --- a/.mock/definition/hris/employments.yml +++ b/.mock/definition/hris/employments.yml @@ -232,7 +232,10 @@ service: type: root.PaginatedEmploymentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -306,7 +309,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 65d8ffd0-211b-4ba4-b85a-fbe2ce220982 diff --git a/.mock/definition/hris/fieldMapping.yml b/.mock/definition/hris/fieldMapping.yml index 2c83b146..1a222f9f 100644 --- a/.mock/definition/hris/fieldMapping.yml +++ b/.mock/definition/hris/fieldMapping.yml @@ -30,7 +30,8 @@ service: type: root.FieldMappingApiInstanceResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Benefit: @@ -357,7 +358,8 @@ service: type: root.FieldMappingInstanceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: target_field_name: example_target_field_name target_field_description: this is a example description of the target field @@ -424,7 +426,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: model: @@ -506,7 +509,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -577,7 +581,8 @@ service: type: root.RemoteFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Benefit: @@ -821,7 +826,8 @@ service: type: root.ExternalTargetFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Benefit: diff --git a/.mock/definition/hris/forceResync.yml b/.mock/definition/hris/forceResync.yml index ccae8e7b..3871daeb 100644 --- a/.mock/definition/hris/forceResync.yml +++ b/.mock/definition/hris/forceResync.yml @@ -21,7 +21,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - model_name: Employee diff --git a/.mock/definition/hris/generateKey.yml b/.mock/definition/hris/generateKey.yml index 94a399fc..18c4f7c3 100644 --- a/.mock/definition/hris/generateKey.yml +++ b/.mock/definition/hris/generateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/hris/groups.yml b/.mock/definition/hris/groups.yml index 942ebedf..a9bc5589 100644 --- a/.mock/definition/hris/groups.yml +++ b/.mock/definition/hris/groups.yml @@ -91,7 +91,10 @@ service: type: root.PaginatedGroupList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -154,7 +157,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 134e0111-0f67-44f6-98f0-597000290bb3 diff --git a/.mock/definition/hris/issues.yml b/.mock/definition/hris/issues.yml index 9fd39ae2..d9de5306 100644 --- a/.mock/definition/hris/issues.yml +++ b/.mock/definition/hris/issues.yml @@ -80,7 +80,11 @@ service: type: root.PaginatedIssueList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ @@ -112,6 +116,8 @@ service: examples: - path-parameters: id: id + headers: + X-Account-Token: '[object Object]' response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 diff --git a/.mock/definition/hris/linkToken.yml b/.mock/definition/hris/linkToken.yml index 1e78c2eb..b7026b1c 100644 --- a/.mock/definition/hris/linkToken.yml +++ b/.mock/definition/hris/linkToken.yml @@ -119,7 +119,9 @@ service: type: root.LinkToken status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: end_user_email_address: example@gmail.com end_user_organization_name: Test Organization end_user_origin_id: '12345' diff --git a/.mock/definition/hris/linkedAccounts.yml b/.mock/definition/hris/linkedAccounts.yml index 3ed63936..5d4c897d 100644 --- a/.mock/definition/hris/linkedAccounts.yml +++ b/.mock/definition/hris/linkedAccounts.yml @@ -107,7 +107,11 @@ service: type: root.PaginatedAccountDetailsAndActionsList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/hris/locations.yml b/.mock/definition/hris/locations.yml index a4c2f9b6..d5217222 100644 --- a/.mock/definition/hris/locations.yml +++ b/.mock/definition/hris/locations.yml @@ -120,7 +120,10 @@ service: type: root.PaginatedLocationList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -188,7 +191,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: f5e6a151-f44e-449a-afb1-8fd781905958 diff --git a/.mock/definition/hris/passthrough.yml b/.mock/definition/hris/passthrough.yml index 602b2cd6..fbe19301 100644 --- a/.mock/definition/hris/passthrough.yml +++ b/.mock/definition/hris/passthrough.yml @@ -19,7 +19,8 @@ service: type: root.RemoteResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters diff --git a/.mock/definition/hris/payGroups.yml b/.mock/definition/hris/payGroups.yml index 981803d8..dd031706 100644 --- a/.mock/definition/hris/payGroups.yml +++ b/.mock/definition/hris/payGroups.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedPayGroupList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -114,7 +117,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: fd1e0fb5-8f92-4ec9-9f32-179cf732867d diff --git a/.mock/definition/hris/payrollRuns.yml b/.mock/definition/hris/payrollRuns.yml index b4414e43..8687f6d5 100644 --- a/.mock/definition/hris/payrollRuns.yml +++ b/.mock/definition/hris/payrollRuns.yml @@ -153,7 +153,10 @@ service: type: root.PaginatedPayrollRunList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -217,7 +220,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 37336947-b3d4-4a4c-a310-ab6ab510e079 diff --git a/.mock/definition/hris/regenerateKey.yml b/.mock/definition/hris/regenerateKey.yml index e29e77d3..b9daa8b2 100644 --- a/.mock/definition/hris/regenerateKey.yml +++ b/.mock/definition/hris/regenerateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/hris/scopes.yml b/.mock/definition/hris/scopes.yml index 59ec6a77..31252ad4 100644 --- a/.mock/definition/hris/scopes.yml +++ b/.mock/definition/hris/scopes.yml @@ -19,7 +19,9 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - response: + - headers: + X-Account-Token: '[object Object]' + response: body: common_models: - model_name: Employee @@ -60,7 +62,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: common_models: @@ -111,7 +114,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: common_models: - model_name: Employee diff --git a/.mock/definition/hris/syncStatus.yml b/.mock/definition/hris/syncStatus.yml index c7e03e66..cca7aca2 100644 --- a/.mock/definition/hris/syncStatus.yml +++ b/.mock/definition/hris/syncStatus.yml @@ -36,7 +36,10 @@ service: type: root.PaginatedSyncStatusList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/hris/teams.yml b/.mock/definition/hris/teams.yml index 4cb87414..902b49a3 100644 --- a/.mock/definition/hris/teams.yml +++ b/.mock/definition/hris/teams.yml @@ -72,7 +72,10 @@ service: type: root.PaginatedTeamList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -128,7 +131,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 13a72919-9fae-4f54-81ca-ddfd8712a1ba diff --git a/.mock/definition/hris/timeOff.yml b/.mock/definition/hris/timeOff.yml index 94818112..6ed9b785 100644 --- a/.mock/definition/hris/timeOff.yml +++ b/.mock/definition/hris/timeOff.yml @@ -236,7 +236,10 @@ service: type: root.PaginatedTimeOffList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -292,7 +295,8 @@ service: type: root.TimeOffResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -385,7 +389,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 91b2b905-e866-40c8-8be2-efe53827a0aa @@ -423,7 +428,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/hris/timeOffBalances.yml b/.mock/definition/hris/timeOffBalances.yml index 509df361..22ad8176 100644 --- a/.mock/definition/hris/timeOffBalances.yml +++ b/.mock/definition/hris/timeOffBalances.yml @@ -112,7 +112,10 @@ service: type: root.PaginatedTimeOffBalanceList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -180,7 +183,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 91b2b905-e866-40c8-8be2-efe53827a0aa diff --git a/.mock/definition/hris/timesheetEntries.yml b/.mock/definition/hris/timesheetEntries.yml index 69380ef4..62f53265 100644 --- a/.mock/definition/hris/timesheetEntries.yml +++ b/.mock/definition/hris/timesheetEntries.yml @@ -106,7 +106,10 @@ service: type: root.PaginatedTimesheetEntryList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -157,7 +160,8 @@ service: type: root.TimesheetEntryResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -235,7 +239,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 91b2b905-e866-40c8-8be2-efe53827a0aa @@ -268,7 +273,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/hris/webhookReceivers.yml b/.mock/definition/hris/webhookReceivers.yml index 05eae39d..62fbcab5 100644 --- a/.mock/definition/hris/webhookReceivers.yml +++ b/.mock/definition/hris/webhookReceivers.yml @@ -16,7 +16,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - event: event @@ -48,7 +49,8 @@ service: type: root.WebhookReceiver status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: event: event is_active: true diff --git a/.mock/definition/ticketing/__package__.yml b/.mock/definition/ticketing/__package__.yml index 7b2fb89b..938d03c0 100644 --- a/.mock/definition/ticketing/__package__.yml +++ b/.mock/definition/ticketing/__package__.yml @@ -1853,9 +1853,6 @@ types: * `COLLECTION` - COLLECTION tags: optional>> roles: optional>> - completed_at: - type: optional - docs: When the ticket was completed. ticket_url: type: optional docs: The 3rd party url of the Ticket. @@ -1871,6 +1868,9 @@ types: * `HIGH` - HIGH * `NORMAL` - NORMAL * `LOW` - LOW + completed_at: + type: optional + docs: When the ticket was completed. integration_params: type: optional> access: write-only @@ -2039,6 +2039,7 @@ types: remote_key_name: optional description: optional is_custom: optional + is_common_model_field: optional is_required: optional field_type: optional field_format: optional diff --git a/.mock/definition/ticketing/accountDetails.yml b/.mock/definition/ticketing/accountDetails.yml index 1cd26dd4..4204619f 100644 --- a/.mock/definition/ticketing/accountDetails.yml +++ b/.mock/definition/ticketing/accountDetails.yml @@ -16,7 +16,8 @@ service: type: root.AccountDetails status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: id: 0496d4c2-42e6-4072-80b3-7b69bfdc76fd diff --git a/.mock/definition/ticketing/accountToken.yml b/.mock/definition/ticketing/accountToken.yml index e3b505e5..057dc6d6 100644 --- a/.mock/definition/ticketing/accountToken.yml +++ b/.mock/definition/ticketing/accountToken.yml @@ -22,6 +22,8 @@ service: examples: - path-parameters: public_token: public_token + headers: + X-Account-Token: '[object Object]' response: body: account_token: T9klMDQrcHdm9jrtHuOS2Nf06BIHwMNjpPXPMB diff --git a/.mock/definition/ticketing/accounts.yml b/.mock/definition/ticketing/accounts.yml index 9dc3f7a8..4f695f73 100644 --- a/.mock/definition/ticketing/accounts.yml +++ b/.mock/definition/ticketing/accounts.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedAccountList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -117,7 +120,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 17a54124-287f-494d-965e-3c5b330c9a68 diff --git a/.mock/definition/ticketing/asyncPassthrough.yml b/.mock/definition/ticketing/asyncPassthrough.yml index 0a2001fe..02724e93 100644 --- a/.mock/definition/ticketing/asyncPassthrough.yml +++ b/.mock/definition/ticketing/asyncPassthrough.yml @@ -21,7 +21,8 @@ service: type: root.AsyncPassthroughReciept status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters @@ -44,7 +45,8 @@ service: examples: - path-parameters: async_passthrough_receipt_id: async_passthrough_receipt_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: method: GET diff --git a/.mock/definition/ticketing/attachments.yml b/.mock/definition/ticketing/attachments.yml index 9a8a8a9c..671474bf 100644 --- a/.mock/definition/ticketing/attachments.yml +++ b/.mock/definition/ticketing/attachments.yml @@ -77,7 +77,10 @@ service: type: root.PaginatedAttachmentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -128,7 +131,8 @@ service: type: root.TicketingAttachmentResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -206,7 +210,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 17a54124-287f-494d-965e-3c5b330c9a68 @@ -270,7 +275,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ticketing/auditTrail.yml b/.mock/definition/ticketing/auditTrail.yml index 82660fae..5b42e8b8 100644 --- a/.mock/definition/ticketing/auditTrail.yml +++ b/.mock/definition/ticketing/auditTrail.yml @@ -75,7 +75,11 @@ service: type: root.PaginatedAuditLogEventList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/ticketing/availableActions.yml b/.mock/definition/ticketing/availableActions.yml index 745b76c7..750b5faa 100644 --- a/.mock/definition/ticketing/availableActions.yml +++ b/.mock/definition/ticketing/availableActions.yml @@ -16,7 +16,8 @@ service: type: root.AvailableActions status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: integration: diff --git a/.mock/definition/ticketing/collections.yml b/.mock/definition/ticketing/collections.yml index dbf6f131..0861c825 100644 --- a/.mock/definition/ticketing/collections.yml +++ b/.mock/definition/ticketing/collections.yml @@ -87,7 +87,10 @@ service: type: root.PaginatedCollectionList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -162,7 +165,10 @@ service: examples: - path-parameters: collection_id: collection_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -218,7 +224,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: fb8c55b6-1cb8-4b4c-9fb6-17924231619d diff --git a/.mock/definition/ticketing/comments.yml b/.mock/definition/ticketing/comments.yml index 71a70dc5..7c789021 100644 --- a/.mock/definition/ticketing/comments.yml +++ b/.mock/definition/ticketing/comments.yml @@ -108,7 +108,10 @@ service: type: root.PaginatedCommentList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -164,7 +167,8 @@ service: type: root.CommentResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -247,7 +251,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0958cbc6-6040-430a-848e-aafacbadf4ae @@ -285,7 +290,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ticketing/contacts.yml b/.mock/definition/ticketing/contacts.yml index e4a13d7c..6bc83943 100644 --- a/.mock/definition/ticketing/contacts.yml +++ b/.mock/definition/ticketing/contacts.yml @@ -69,7 +69,10 @@ service: type: root.PaginatedContactList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -119,7 +122,8 @@ service: type: root.TicketingContactResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -196,7 +200,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 17a54124-287f-494d-965e-3c5b330c9a68 @@ -230,7 +235,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: diff --git a/.mock/definition/ticketing/deleteAccount.yml b/.mock/definition/ticketing/deleteAccount.yml index b2d1911d..021acbde 100644 --- a/.mock/definition/ticketing/deleteAccount.yml +++ b/.mock/definition/ticketing/deleteAccount.yml @@ -10,6 +10,7 @@ service: source: openapi: openapi/openapi.yml examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token source: openapi: openapi/openapi.yml diff --git a/.mock/definition/ticketing/fieldMapping.yml b/.mock/definition/ticketing/fieldMapping.yml index 3051c3fc..8721c1c2 100644 --- a/.mock/definition/ticketing/fieldMapping.yml +++ b/.mock/definition/ticketing/fieldMapping.yml @@ -30,7 +30,8 @@ service: type: root.FieldMappingApiInstanceResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Ticket: @@ -277,7 +278,8 @@ service: type: root.FieldMappingInstanceResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: target_field_name: example_target_field_name target_field_description: this is a example description of the target field @@ -344,7 +346,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: model: @@ -426,7 +429,8 @@ service: examples: - path-parameters: field_mapping_id: field_mapping_id - headers: {} + headers: + X-Account-Token: X-Account-Token request: {} response: body: @@ -497,7 +501,8 @@ service: type: root.RemoteFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Ticket: @@ -671,7 +676,8 @@ service: type: root.ExternalTargetFieldApiResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: Ticket: diff --git a/.mock/definition/ticketing/forceResync.yml b/.mock/definition/ticketing/forceResync.yml index a9669fa2..39b44277 100644 --- a/.mock/definition/ticketing/forceResync.yml +++ b/.mock/definition/ticketing/forceResync.yml @@ -21,7 +21,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - model_name: Ticket diff --git a/.mock/definition/ticketing/generateKey.yml b/.mock/definition/ticketing/generateKey.yml index 54e7585c..03e42e8e 100644 --- a/.mock/definition/ticketing/generateKey.yml +++ b/.mock/definition/ticketing/generateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/ticketing/issues.yml b/.mock/definition/ticketing/issues.yml index badd03c1..22c452d4 100644 --- a/.mock/definition/ticketing/issues.yml +++ b/.mock/definition/ticketing/issues.yml @@ -80,7 +80,11 @@ service: type: root.PaginatedIssueList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ @@ -112,6 +116,8 @@ service: examples: - path-parameters: id: id + headers: + X-Account-Token: '[object Object]' response: body: id: 3fa85f64-5717-4562-b3fc-2c963f66afa6 diff --git a/.mock/definition/ticketing/linkToken.yml b/.mock/definition/ticketing/linkToken.yml index 0ad3ad14..46240663 100644 --- a/.mock/definition/ticketing/linkToken.yml +++ b/.mock/definition/ticketing/linkToken.yml @@ -119,7 +119,9 @@ service: type: root.LinkToken status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: end_user_email_address: example@gmail.com end_user_organization_name: Test Organization end_user_origin_id: '12345' diff --git a/.mock/definition/ticketing/linkedAccounts.yml b/.mock/definition/ticketing/linkedAccounts.yml index 072cf0e3..a9563978 100644 --- a/.mock/definition/ticketing/linkedAccounts.yml +++ b/.mock/definition/ticketing/linkedAccounts.yml @@ -107,7 +107,11 @@ service: type: root.PaginatedAccountDetailsAndActionsList status-code: 200 examples: - - response: + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: '[object Object]' + response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw previous: cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ diff --git a/.mock/definition/ticketing/passthrough.yml b/.mock/definition/ticketing/passthrough.yml index 44434d15..f20522bf 100644 --- a/.mock/definition/ticketing/passthrough.yml +++ b/.mock/definition/ticketing/passthrough.yml @@ -19,7 +19,8 @@ service: type: root.RemoteResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: method: GET path: /scooters diff --git a/.mock/definition/ticketing/projects.yml b/.mock/definition/ticketing/projects.yml index dd749346..7623e288 100644 --- a/.mock/definition/ticketing/projects.yml +++ b/.mock/definition/ticketing/projects.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedProjectList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -113,7 +116,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: fb8c55b6-1cb8-4b4c-9fb6-17924231619d @@ -180,7 +184,10 @@ service: examples: - path-parameters: parent_id: parent_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/ticketing/regenerateKey.yml b/.mock/definition/ticketing/regenerateKey.yml index 5dab779d..1697dc88 100644 --- a/.mock/definition/ticketing/regenerateKey.yml +++ b/.mock/definition/ticketing/regenerateKey.yml @@ -26,7 +26,9 @@ service: type: root.RemoteKey status-code: 200 examples: - - request: + - headers: + X-Account-Token: '[object Object]' + request: name: Remote Deployment Key 1 response: body: diff --git a/.mock/definition/ticketing/roles.yml b/.mock/definition/ticketing/roles.yml index 9e22d597..229d52a3 100644 --- a/.mock/definition/ticketing/roles.yml +++ b/.mock/definition/ticketing/roles.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedRoleList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -117,7 +120,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 23454124-387f-494d-265e-345b330c9123 diff --git a/.mock/definition/ticketing/scopes.yml b/.mock/definition/ticketing/scopes.yml index 11866654..61201cbf 100644 --- a/.mock/definition/ticketing/scopes.yml +++ b/.mock/definition/ticketing/scopes.yml @@ -19,7 +19,9 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - response: + - headers: + X-Account-Token: '[object Object]' + response: body: common_models: - model_name: Employee @@ -60,7 +62,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: common_models: @@ -111,7 +114,8 @@ service: type: root.CommonModelScopeApi status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: common_models: - model_name: Employee diff --git a/.mock/definition/ticketing/syncStatus.yml b/.mock/definition/ticketing/syncStatus.yml index 5b49f2a3..5cc91fe7 100644 --- a/.mock/definition/ticketing/syncStatus.yml +++ b/.mock/definition/ticketing/syncStatus.yml @@ -36,7 +36,10 @@ service: type: root.PaginatedSyncStatusList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw diff --git a/.mock/definition/ticketing/tags.yml b/.mock/definition/ticketing/tags.yml index 7ebaf157..d8046d5f 100644 --- a/.mock/definition/ticketing/tags.yml +++ b/.mock/definition/ticketing/tags.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedTagList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -112,7 +115,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: remote_id: '19202938' diff --git a/.mock/definition/ticketing/teams.yml b/.mock/definition/ticketing/teams.yml index 47bcb682..0f6096db 100644 --- a/.mock/definition/ticketing/teams.yml +++ b/.mock/definition/ticketing/teams.yml @@ -64,7 +64,10 @@ service: type: root.PaginatedTeamList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -113,7 +116,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 17a54124-287f-494d-965e-3c5b330c9a68 diff --git a/.mock/definition/ticketing/tickets.yml b/.mock/definition/ticketing/tickets.yml index aa4b6693..8035fe4a 100644 --- a/.mock/definition/ticketing/tickets.yml +++ b/.mock/definition/ticketing/tickets.yml @@ -1158,6 +1158,9 @@ service: docs: >- If provided, will only return objects created before this datetime. + creator_id: + type: optional + docs: If provided, will only return tickets created by this creator_id. cursor: type: optional docs: The pagination cursor value. @@ -1276,7 +1279,10 @@ service: type: root.PaginatedTicketList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1355,7 +1361,8 @@ service: type: root.TicketResponse status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -1476,7 +1483,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 0958cbc6-6040-430a-848e-aafacbadf4ae @@ -1560,7 +1568,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token request: model: {} response: @@ -1684,7 +1693,10 @@ service: examples: - path-parameters: ticket_id: ticket_id - headers: {} + query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -1712,7 +1724,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -1905,7 +1918,8 @@ service: type: root.MetaResponse status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: request_schema: @@ -2131,7 +2145,10 @@ service: type: root.PaginatedRemoteFieldClassList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -2142,6 +2159,7 @@ service: remote_key_name: remote_key_name description: description is_custom: true + is_common_model_field: true is_required: true field_type: string field_format: string diff --git a/.mock/definition/ticketing/users.yml b/.mock/definition/ticketing/users.yml index 76cfbe5f..05094917 100644 --- a/.mock/definition/ticketing/users.yml +++ b/.mock/definition/ticketing/users.yml @@ -94,7 +94,10 @@ service: type: root.PaginatedUserList status-code: 200 examples: - - headers: {} + - query-parameters: + cursor: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw + headers: + X-Account-Token: X-Account-Token response: body: next: cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw @@ -155,7 +158,8 @@ service: examples: - path-parameters: id: id - headers: {} + headers: + X-Account-Token: X-Account-Token response: body: id: 17a54124-287f-494d-965e-3c5b330c9a68 diff --git a/.mock/definition/ticketing/webhookReceivers.yml b/.mock/definition/ticketing/webhookReceivers.yml index 54b5126a..454c1a98 100644 --- a/.mock/definition/ticketing/webhookReceivers.yml +++ b/.mock/definition/ticketing/webhookReceivers.yml @@ -16,7 +16,8 @@ service: type: list status-code: 200 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token response: body: - event: event @@ -48,7 +49,8 @@ service: type: root.WebhookReceiver status-code: 201 examples: - - headers: {} + - headers: + X-Account-Token: X-Account-Token request: event: event is_active: true diff --git a/.mock/fern.config.json b/.mock/fern.config.json index c4faf103..43adf15e 100644 --- a/.mock/fern.config.json +++ b/.mock/fern.config.json @@ -1,4 +1,4 @@ { "organization" : "merge", - "version" : "0.63.28" + "version" : "0.66.29" } \ No newline at end of file diff --git a/lib/merge_ruby_client.rb b/lib/merge_ruby_client.rb index 06f235fb..0c92ce5f 100644 --- a/lib/merge_ruby_client.rb +++ b/lib/merge_ruby_client.rb @@ -5,9 +5,9 @@ require_relative "requests" require_relative "merge_ruby_client/ats/client" require_relative "merge_ruby_client/crm/client" -require_relative "merge_ruby_client/hris/client" require_relative "merge_ruby_client/filestorage/client" require_relative "merge_ruby_client/ticketing/client" +require_relative "merge_ruby_client/hris/client" require_relative "merge_ruby_client/accounting/client" module Merge @@ -16,12 +16,12 @@ class Client attr_reader :ats # @return [Merge::Crm::Client] attr_reader :crm - # @return [Merge::Hris::Client] - attr_reader :hris # @return [Merge::Filestorage::Client] attr_reader :filestorage # @return [Merge::Ticketing::Client] attr_reader :ticketing + # @return [Merge::Hris::Client] + attr_reader :hris # @return [Merge::Accounting::Client] attr_reader :accounting @@ -44,9 +44,9 @@ def initialize(api_key:, base_url: nil, environment: Merge::Environment::PRODUCT ) @ats = Merge::Ats::Client.new(request_client: @request_client) @crm = Merge::Crm::Client.new(request_client: @request_client) - @hris = Merge::Hris::Client.new(request_client: @request_client) @filestorage = Merge::Filestorage::Client.new(request_client: @request_client) @ticketing = Merge::Ticketing::Client.new(request_client: @request_client) + @hris = Merge::Hris::Client.new(request_client: @request_client) @accounting = Merge::Accounting::Client.new(request_client: @request_client) end end @@ -56,12 +56,12 @@ class AsyncClient attr_reader :ats # @return [Merge::Crm::AsyncClient] attr_reader :crm - # @return [Merge::Hris::AsyncClient] - attr_reader :hris # @return [Merge::Filestorage::AsyncClient] attr_reader :filestorage # @return [Merge::Ticketing::AsyncClient] attr_reader :ticketing + # @return [Merge::Hris::AsyncClient] + attr_reader :hris # @return [Merge::Accounting::AsyncClient] attr_reader :accounting @@ -84,9 +84,9 @@ def initialize(api_key:, base_url: nil, environment: Merge::Environment::PRODUCT ) @ats = Merge::Ats::AsyncClient.new(request_client: @async_request_client) @crm = Merge::Crm::AsyncClient.new(request_client: @async_request_client) - @hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client) @filestorage = Merge::Filestorage::AsyncClient.new(request_client: @async_request_client) @ticketing = Merge::Ticketing::AsyncClient.new(request_client: @async_request_client) + @hris = Merge::Hris::AsyncClient.new(request_client: @async_request_client) @accounting = Merge::Accounting::AsyncClient.new(request_client: @async_request_client) end end diff --git a/lib/merge_ruby_client/accounting/accounting_periods/client.rb b/lib/merge_ruby_client/accounting/accounting_periods/client.rb index 942a5fae..df2d91cf 100644 --- a/lib/merge_ruby_client/accounting/accounting_periods/client.rb +++ b/lib/merge_ruby_client/accounting/accounting_periods/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.accounting_periods.list + # api.accounting.accounting_periods.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -135,7 +135,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.accounting_periods.list + # api.accounting.accounting_periods.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/accounts/client.rb b/lib/merge_ruby_client/accounting/accounts/client.rb index ea42411f..855b6ee9 100644 --- a/lib/merge_ruby_client/accounting/accounts/client.rb +++ b/lib/merge_ruby_client/accounting/accounts/client.rb @@ -62,7 +62,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.accounts.list + # api.accounting.accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_type: nil, classification: nil, company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -280,7 +280,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.accounts.list + # api.accounting.accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_type: nil, classification: nil, company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/attachments/client.rb b/lib/merge_ruby_client/accounting/attachments/client.rb index a19af3a4..90d85ecb 100644 --- a/lib/merge_ruby_client/accounting/attachments/client.rb +++ b/lib/merge_ruby_client/accounting/attachments/client.rb @@ -48,7 +48,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.attachments.list + # api.accounting.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -231,7 +231,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.attachments.list + # api.accounting.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/audit_trail/client.rb b/lib/merge_ruby_client/accounting/audit_trail/client.rb index 79d66975..c44e4d04 100644 --- a/lib/merge_ruby_client/accounting/audit_trail/client.rb +++ b/lib/merge_ruby_client/accounting/audit_trail/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.audit_trail.list + # api.accounting.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -144,7 +144,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.audit_trail.list + # api.accounting.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/balance_sheets/client.rb b/lib/merge_ruby_client/accounting/balance_sheets/client.rb index e9d06dd0..803aaaf2 100644 --- a/lib/merge_ruby_client/accounting/balance_sheets/client.rb +++ b/lib/merge_ruby_client/accounting/balance_sheets/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.balance_sheets.list + # api.accounting.balance_sheets.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -164,7 +164,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.balance_sheets.list + # api.accounting.balance_sheets.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/bank_feed_accounts/client.rb b/lib/merge_ruby_client/accounting/bank_feed_accounts/client.rb index 8e9b72ac..624eea68 100644 --- a/lib/merge_ruby_client/accounting/bank_feed_accounts/client.rb +++ b/lib/merge_ruby_client/accounting/bank_feed_accounts/client.rb @@ -40,7 +40,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.bank_feed_accounts.list + # api.accounting.bank_feed_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -217,7 +217,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.bank_feed_accounts.list + # api.accounting.bank_feed_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/bank_feed_transactions/client.rb b/lib/merge_ruby_client/accounting/bank_feed_transactions/client.rb index 5e3f76a8..3b2a761c 100644 --- a/lib/merge_ruby_client/accounting/bank_feed_transactions/client.rb +++ b/lib/merge_ruby_client/accounting/bank_feed_transactions/client.rb @@ -51,7 +51,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.bank_feed_transactions.list + # api.accounting.bank_feed_transactions.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_processed: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -247,7 +247,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.bank_feed_transactions.list + # api.accounting.bank_feed_transactions.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_processed: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/cash_flow_statements/client.rb b/lib/merge_ruby_client/accounting/cash_flow_statements/client.rb index af4e922b..8ea40093 100644 --- a/lib/merge_ruby_client/accounting/cash_flow_statements/client.rb +++ b/lib/merge_ruby_client/accounting/cash_flow_statements/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.cash_flow_statements.list + # api.accounting.cash_flow_statements.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -164,7 +164,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.cash_flow_statements.list + # api.accounting.cash_flow_statements.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/client.rb b/lib/merge_ruby_client/accounting/client.rb index 8889ab97..ba27a396 100644 --- a/lib/merge_ruby_client/accounting/client.rb +++ b/lib/merge_ruby_client/accounting/client.rb @@ -21,6 +21,7 @@ require_relative "scopes/client" require_relative "delete_account/client" require_relative "employees/client" +require_relative "expense_reports/client" require_relative "expenses/client" require_relative "field_mapping/client" require_relative "general_ledger_transactions/client" @@ -91,6 +92,8 @@ class Client attr_reader :delete_account # @return [Merge::Accounting::EmployeesClient] attr_reader :employees + # @return [Merge::Accounting::ExpenseReportsClient] + attr_reader :expense_reports # @return [Merge::Accounting::ExpensesClient] attr_reader :expenses # @return [Merge::Accounting::FieldMappingClient] @@ -167,6 +170,7 @@ def initialize(request_client:) @scopes = Merge::Accounting::ScopesClient.new(request_client: request_client) @delete_account = Merge::Accounting::DeleteAccountClient.new(request_client: request_client) @employees = Merge::Accounting::EmployeesClient.new(request_client: request_client) + @expense_reports = Merge::Accounting::ExpenseReportsClient.new(request_client: request_client) @expenses = Merge::Accounting::ExpensesClient.new(request_client: request_client) @field_mapping = Merge::Accounting::FieldMappingClient.new(request_client: request_client) @general_ledger_transactions = Merge::Accounting::GeneralLedgerTransactionsClient.new(request_client: request_client) @@ -237,6 +241,8 @@ class AsyncClient attr_reader :delete_account # @return [Merge::Accounting::AsyncEmployeesClient] attr_reader :employees + # @return [Merge::Accounting::AsyncExpenseReportsClient] + attr_reader :expense_reports # @return [Merge::Accounting::AsyncExpensesClient] attr_reader :expenses # @return [Merge::Accounting::AsyncFieldMappingClient] @@ -313,6 +319,7 @@ def initialize(request_client:) @scopes = Merge::Accounting::AsyncScopesClient.new(request_client: request_client) @delete_account = Merge::Accounting::AsyncDeleteAccountClient.new(request_client: request_client) @employees = Merge::Accounting::AsyncEmployeesClient.new(request_client: request_client) + @expense_reports = Merge::Accounting::AsyncExpenseReportsClient.new(request_client: request_client) @expenses = Merge::Accounting::AsyncExpensesClient.new(request_client: request_client) @field_mapping = Merge::Accounting::AsyncFieldMappingClient.new(request_client: request_client) @general_ledger_transactions = Merge::Accounting::AsyncGeneralLedgerTransactionsClient.new(request_client: request_client) diff --git a/lib/merge_ruby_client/accounting/company_info/client.rb b/lib/merge_ruby_client/accounting/company_info/client.rb index 8d1b9dd4..745b1909 100644 --- a/lib/merge_ruby_client/accounting/company_info/client.rb +++ b/lib/merge_ruby_client/accounting/company_info/client.rb @@ -48,7 +48,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.company_info.list + # api.accounting.company_info.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -163,7 +163,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.company_info.list + # api.accounting.company_info.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/contacts/client.rb b/lib/merge_ruby_client/accounting/contacts/client.rb index 0d037fd0..e2e1dde5 100644 --- a/lib/merge_ruby_client/accounting/contacts/client.rb +++ b/lib/merge_ruby_client/accounting/contacts/client.rb @@ -8,6 +8,7 @@ require_relative "../types/contact_response" require_relative "types/contacts_retrieve_request_expand" require_relative "../types/contact" +require_relative "../types/patched_contact_request" require_relative "../types/meta_response" require_relative "../types/paginated_remote_field_class_list" require "async" @@ -64,7 +65,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.contacts.list + # api.accounting.contacts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, email_address: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_customer: nil, is_supplier: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -207,6 +208,88 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: Merge::Accounting::Contact.from_json(json_object: response.body) end + # Updates a `Contact` object with the given `id`. + # + # @param id [String] + # @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response. + # @param run_async [Boolean] Whether or not third-party updates should be run asynchronously. + # @param model [Hash] Request of type Merge::Accounting::PatchedContactRequest, as a Hash + # * :name (String) + # * :is_supplier (Boolean) + # * :is_customer (Boolean) + # * :email_address (String) + # * :tax_number (String) + # * :status (Merge::Accounting::Status7D1Enum) + # * :currency (String) + # * :company (String) + # * :addresses (Array) + # * :phone_numbers (Array) + # * :integration_params (Hash{String => Object}) + # * :linked_account_params (Hash{String => Object}) + # * :remote_fields (Array) + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::ContactResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.contacts.partial_update(id: "id", model: { }) + def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_options: nil) + response = @request_client.conn.patch do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "is_debug_mode": is_debug_mode, + "run_async": run_async + }.compact + req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/contacts/#{id}" + end + Merge::Accounting::ContactResponse.from_json(json_object: response.body) + end + + # Returns metadata for `Contact` PATCHs. + # + # @param id [String] + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::MetaResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.contacts.meta_patch_retrieve(id: "id") + def meta_patch_retrieve(id:, request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/contacts/meta/patch/#{id}" + end + Merge::Accounting::MetaResponse.from_json(json_object: response.body) + end + # Returns metadata for `Contact` POSTs. # # @param request_options [Merge::RequestOptions] @@ -262,7 +345,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.contacts.remote_field_classes_list + # api.accounting.contacts.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -343,7 +426,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.contacts.list + # api.accounting.contacts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, email_address: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_customer: nil, is_supplier: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) Async do @@ -492,6 +575,92 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: end end + # Updates a `Contact` object with the given `id`. + # + # @param id [String] + # @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response. + # @param run_async [Boolean] Whether or not third-party updates should be run asynchronously. + # @param model [Hash] Request of type Merge::Accounting::PatchedContactRequest, as a Hash + # * :name (String) + # * :is_supplier (Boolean) + # * :is_customer (Boolean) + # * :email_address (String) + # * :tax_number (String) + # * :status (Merge::Accounting::Status7D1Enum) + # * :currency (String) + # * :company (String) + # * :addresses (Array) + # * :phone_numbers (Array) + # * :integration_params (Hash{String => Object}) + # * :linked_account_params (Hash{String => Object}) + # * :remote_fields (Array) + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::ContactResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.contacts.partial_update(id: "id", model: { }) + def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_options: nil) + Async do + response = @request_client.conn.patch do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "is_debug_mode": is_debug_mode, + "run_async": run_async + }.compact + req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/contacts/#{id}" + end + Merge::Accounting::ContactResponse.from_json(json_object: response.body) + end + end + + # Returns metadata for `Contact` PATCHs. + # + # @param id [String] + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::MetaResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.contacts.meta_patch_retrieve(id: "id") + def meta_patch_retrieve(id:, request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/contacts/meta/patch/#{id}" + end + Merge::Accounting::MetaResponse.from_json(json_object: response.body) + end + end + # Returns metadata for `Contact` POSTs. # # @param request_options [Merge::RequestOptions] @@ -549,7 +718,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.contacts.remote_field_classes_list + # api.accounting.contacts.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/credit_notes/client.rb b/lib/merge_ruby_client/accounting/credit_notes/client.rb index fa79ab6f..9a1b58d6 100644 --- a/lib/merge_ruby_client/accounting/credit_notes/client.rb +++ b/lib/merge_ruby_client/accounting/credit_notes/client.rb @@ -62,7 +62,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.credit_notes.list + # api.accounting.credit_notes.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -281,7 +281,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.credit_notes.list + # api.accounting.credit_notes.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/employees/client.rb b/lib/merge_ruby_client/accounting/employees/client.rb index 1de1c182..b8fe8d65 100644 --- a/lib/merge_ruby_client/accounting/employees/client.rb +++ b/lib/merge_ruby_client/accounting/employees/client.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative "../../../requests" +require "date" require_relative "../types/paginated_employee_list" require_relative "../types/employee" require "async" @@ -19,6 +20,9 @@ def initialize(request_client:) # Returns a list of `Employee` objects. # + # @param company_id [String] If provided, will only return employees for this company. + # @param created_after [DateTime] If provided, will only return objects created after this datetime. + # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. # @param expand [String] Which relations should be returned in expanded form. Multiple relation names # should be comma separated without spaces. @@ -30,7 +34,11 @@ def initialize(request_client:) # produce these models. # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may # contain some metadata but all other fields are null). + # @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned. + # @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be + # returned. # @param page_size [Integer] Number of results to return per page. + # @param remote_id [String] The API provider's ID for the given object. # @param request_options [Merge::RequestOptions] # @return [Merge::Accounting::PaginatedEmployeeList] # @example @@ -39,9 +47,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.employees.list - def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, - page_size: nil, request_options: nil) + # api.accounting.employees.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, + include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? @@ -53,12 +61,18 @@ def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_dat }.compact req.params = { **(request_options&.additional_query_parameters || {}), + "company_id": company_id, + "created_after": created_after, + "created_before": created_before, "cursor": cursor, "expand": expand, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_shell_data": include_shell_data, - "page_size": page_size + "modified_after": modified_after, + "modified_before": modified_before, + "page_size": page_size, + "remote_id": remote_id }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact @@ -123,6 +137,9 @@ def initialize(request_client:) # Returns a list of `Employee` objects. # + # @param company_id [String] If provided, will only return employees for this company. + # @param created_after [DateTime] If provided, will only return objects created after this datetime. + # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. # @param expand [String] Which relations should be returned in expanded form. Multiple relation names # should be comma separated without spaces. @@ -134,7 +151,11 @@ def initialize(request_client:) # produce these models. # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may # contain some metadata but all other fields are null). + # @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned. + # @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be + # returned. # @param page_size [Integer] Number of results to return per page. + # @param remote_id [String] The API provider's ID for the given object. # @param request_options [Merge::RequestOptions] # @return [Merge::Accounting::PaginatedEmployeeList] # @example @@ -143,9 +164,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.employees.list - def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, - page_size: nil, request_options: nil) + # api.accounting.employees.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, + include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -158,12 +179,18 @@ def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_dat }.compact req.params = { **(request_options&.additional_query_parameters || {}), + "company_id": company_id, + "created_after": created_after, + "created_before": created_before, "cursor": cursor, "expand": expand, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_shell_data": include_shell_data, - "page_size": page_size + "modified_after": modified_after, + "modified_before": modified_before, + "page_size": page_size, + "remote_id": remote_id }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact diff --git a/lib/merge_ruby_client/accounting/expense_reports/client.rb b/lib/merge_ruby_client/accounting/expense_reports/client.rb new file mode 100644 index 00000000..82302c91 --- /dev/null +++ b/lib/merge_ruby_client/accounting/expense_reports/client.rb @@ -0,0 +1,765 @@ +# frozen_string_literal: true + +require_relative "../../../requests" +require "date" +require_relative "types/expense_reports_list_request_expand" +require_relative "../types/paginated_expense_report_list" +require_relative "../types/expense_report_request" +require_relative "../types/expense_report_response" +require_relative "types/expense_reports_lines_list_request_expand" +require_relative "../types/paginated_expense_report_line_list" +require_relative "types/expense_reports_retrieve_request_expand" +require_relative "../types/expense_report" +require_relative "../types/paginated_remote_field_class_list" +require_relative "../types/meta_response" +require "async" + +module Merge + module Accounting + class ExpenseReportsClient + # @return [Merge::RequestClient] + attr_reader :request_client + + # @param request_client [Merge::RequestClient] + # @return [Merge::Accounting::ExpenseReportsClient] + def initialize(request_client:) + @request_client = request_client + end + + # Returns a list of `ExpenseReport` objects. + # + # @param company_id [String] If provided, will only return expense reports for this company. + # @param created_after [DateTime] If provided, will only return objects created after this datetime. + # @param created_before [DateTime] If provided, will only return objects created before this datetime. + # @param cursor [String] The pagination cursor value. + # @param expand [Merge::Accounting::ExpenseReports::ExpenseReportsListRequestExpand] Which relations should be returned in expanded form. Multiple relation names + # should be comma separated without spaces. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_remote_fields [Boolean] Whether to include all remote fields, including fields that Merge did not map to + # common models, in a normalized format. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned. + # @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be + # returned. + # @param page_size [Integer] Number of results to return per page. + # @param remote_id [String] The API provider's ID for the given object. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedExpenseReportList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, + include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "company_id": company_id, + "created_after": created_after, + "created_before": created_before, + "cursor": cursor, + "expand": expand, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_remote_fields": include_remote_fields, + "include_shell_data": include_shell_data, + "modified_after": modified_after, + "modified_before": modified_before, + "page_size": page_size, + "remote_id": remote_id + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports" + end + Merge::Accounting::PaginatedExpenseReportList.from_json(json_object: response.body) + end + + # Creates an `ExpenseReport` object with the given values. + # + # @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response. + # @param run_async [Boolean] Whether or not third-party updates should be run asynchronously. + # @param model [Hash] Request of type Merge::Accounting::ExpenseReportRequest, as a Hash + # * :report_date (DateTime) + # * :report_identifier (String) + # * :employee (Hash) + # * :status (Merge::Accounting::ExpenseReportStatusEnum) + # * :total_amount (Float) + # * :currency (Merge::Accounting::TransactionCurrencyEnum) + # * :description (String) + # * :accounting_period (Hash) + # * :company (Hash) + # * :tracking_categories (Array) + # * :integration_params (Hash{String => Object}) + # * :linked_account_params (Hash{String => Object}) + # * :remote_fields (Array) + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::ExpenseReportResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.create(model: { tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] }) + def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil) + response = @request_client.conn.post do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "is_debug_mode": is_debug_mode, + "run_async": run_async + }.compact + req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports" + end + Merge::Accounting::ExpenseReportResponse.from_json(json_object: response.body) + end + + # Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` + # with the given id. + # + # @param expense_report_id [String] + # @param cursor [String] The pagination cursor value. + # @param expand [Merge::Accounting::ExpenseReports::ExpenseReportsLinesListRequestExpand] Which relations should be returned in expanded form. Multiple relation names + # should be comma separated without spaces. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_remote_fields [Boolean] Whether to include all remote fields, including fields that Merge did not map to + # common models, in a normalized format. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param page_size [Integer] Number of results to return per page. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedExpenseReportLineList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.lines_list(expense_report_id: "expense_report_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def lines_list(expense_report_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, + include_remote_fields: nil, include_shell_data: nil, page_size: nil, request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "cursor": cursor, + "expand": expand, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_remote_fields": include_remote_fields, + "include_shell_data": include_shell_data, + "page_size": page_size + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/#{expense_report_id}/lines" + end + Merge::Accounting::PaginatedExpenseReportLineList.from_json(json_object: response.body) + end + + # Returns an `ExpenseReport` object with the given `id`. + # + # @param id [String] + # @param expand [Merge::Accounting::ExpenseReports::ExpenseReportsRetrieveRequestExpand] Which relations should be returned in expanded form. Multiple relation names + # should be comma separated without spaces. + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_remote_fields [Boolean] Whether to include all remote fields, including fields that Merge did not map to + # common models, in a normalized format. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::ExpenseReport] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.retrieve(id: "id") + def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, + request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "expand": expand, + "include_remote_data": include_remote_data, + "include_remote_fields": include_remote_fields, + "include_shell_data": include_shell_data + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/#{id}" + end + Merge::Accounting::ExpenseReport.from_json(json_object: response.body) + end + + # Returns a list of `RemoteFieldClass` objects. + # + # @param cursor [String] The pagination cursor value. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param is_common_model_field [Boolean] If provided, will only return remote field classes with this + # is_common_model_field value + # @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value + # @param page_size [Integer] Number of results to return per page. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedRemoteFieldClassList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, + include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "cursor": cursor, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_shell_data": include_shell_data, + "is_common_model_field": is_common_model_field, + "is_custom": is_custom, + "page_size": page_size + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/lines/remote-field-classes" + end + Merge::Accounting::PaginatedRemoteFieldClassList.from_json(json_object: response.body) + end + + # Returns metadata for `ExpenseReport` POSTs. + # + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::MetaResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.meta_post_retrieve + def meta_post_retrieve(request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/meta/post" + end + Merge::Accounting::MetaResponse.from_json(json_object: response.body) + end + + # Returns a list of `RemoteFieldClass` objects. + # + # @param cursor [String] The pagination cursor value. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param is_common_model_field [Boolean] If provided, will only return remote field classes with this + # is_common_model_field value + # @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value + # @param page_size [Integer] Number of results to return per page. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedRemoteFieldClassList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, + include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "cursor": cursor, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_shell_data": include_shell_data, + "is_common_model_field": is_common_model_field, + "is_custom": is_custom, + "page_size": page_size + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/remote-field-classes" + end + Merge::Accounting::PaginatedRemoteFieldClassList.from_json(json_object: response.body) + end + end + + class AsyncExpenseReportsClient + # @return [Merge::AsyncRequestClient] + attr_reader :request_client + + # @param request_client [Merge::AsyncRequestClient] + # @return [Merge::Accounting::AsyncExpenseReportsClient] + def initialize(request_client:) + @request_client = request_client + end + + # Returns a list of `ExpenseReport` objects. + # + # @param company_id [String] If provided, will only return expense reports for this company. + # @param created_after [DateTime] If provided, will only return objects created after this datetime. + # @param created_before [DateTime] If provided, will only return objects created before this datetime. + # @param cursor [String] The pagination cursor value. + # @param expand [Merge::Accounting::ExpenseReports::ExpenseReportsListRequestExpand] Which relations should be returned in expanded form. Multiple relation names + # should be comma separated without spaces. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_remote_fields [Boolean] Whether to include all remote fields, including fields that Merge did not map to + # common models, in a normalized format. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned. + # @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be + # returned. + # @param page_size [Integer] Number of results to return per page. + # @param remote_id [String] The API provider's ID for the given object. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedExpenseReportList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, + include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "company_id": company_id, + "created_after": created_after, + "created_before": created_before, + "cursor": cursor, + "expand": expand, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_remote_fields": include_remote_fields, + "include_shell_data": include_shell_data, + "modified_after": modified_after, + "modified_before": modified_before, + "page_size": page_size, + "remote_id": remote_id + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports" + end + Merge::Accounting::PaginatedExpenseReportList.from_json(json_object: response.body) + end + end + + # Creates an `ExpenseReport` object with the given values. + # + # @param is_debug_mode [Boolean] Whether to include debug fields (such as log file links) in the response. + # @param run_async [Boolean] Whether or not third-party updates should be run asynchronously. + # @param model [Hash] Request of type Merge::Accounting::ExpenseReportRequest, as a Hash + # * :report_date (DateTime) + # * :report_identifier (String) + # * :employee (Hash) + # * :status (Merge::Accounting::ExpenseReportStatusEnum) + # * :total_amount (Float) + # * :currency (Merge::Accounting::TransactionCurrencyEnum) + # * :description (String) + # * :accounting_period (Hash) + # * :company (Hash) + # * :tracking_categories (Array) + # * :integration_params (Hash{String => Object}) + # * :linked_account_params (Hash{String => Object}) + # * :remote_fields (Array) + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::ExpenseReportResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.create(model: { tracking_categories: ["a1b2c3d4-e5f6-4a5b-9c3d-2e1f0a9b8c7d", "d4c3b2a1-9e8f-7g6h-5i4j-3k2l1m0n9o8p"] }) + def create(model:, is_debug_mode: nil, run_async: nil, request_options: nil) + Async do + response = @request_client.conn.post do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "is_debug_mode": is_debug_mode, + "run_async": run_async + }.compact + req.body = { **(request_options&.additional_body_parameters || {}), model: model }.compact + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports" + end + Merge::Accounting::ExpenseReportResponse.from_json(json_object: response.body) + end + end + + # Returns a list of `ExpenseReportLine` objects that point to a `ExpenseReport` + # with the given id. + # + # @param expense_report_id [String] + # @param cursor [String] The pagination cursor value. + # @param expand [Merge::Accounting::ExpenseReports::ExpenseReportsLinesListRequestExpand] Which relations should be returned in expanded form. Multiple relation names + # should be comma separated without spaces. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_remote_fields [Boolean] Whether to include all remote fields, including fields that Merge did not map to + # common models, in a normalized format. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param page_size [Integer] Number of results to return per page. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedExpenseReportLineList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.lines_list(expense_report_id: "expense_report_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def lines_list(expense_report_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, + include_remote_fields: nil, include_shell_data: nil, page_size: nil, request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "cursor": cursor, + "expand": expand, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_remote_fields": include_remote_fields, + "include_shell_data": include_shell_data, + "page_size": page_size + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/#{expense_report_id}/lines" + end + Merge::Accounting::PaginatedExpenseReportLineList.from_json(json_object: response.body) + end + end + + # Returns an `ExpenseReport` object with the given `id`. + # + # @param id [String] + # @param expand [Merge::Accounting::ExpenseReports::ExpenseReportsRetrieveRequestExpand] Which relations should be returned in expanded form. Multiple relation names + # should be comma separated without spaces. + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_remote_fields [Boolean] Whether to include all remote fields, including fields that Merge did not map to + # common models, in a normalized format. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::ExpenseReport] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.retrieve(id: "id") + def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, + request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "expand": expand, + "include_remote_data": include_remote_data, + "include_remote_fields": include_remote_fields, + "include_shell_data": include_shell_data + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/#{id}" + end + Merge::Accounting::ExpenseReport.from_json(json_object: response.body) + end + end + + # Returns a list of `RemoteFieldClass` objects. + # + # @param cursor [String] The pagination cursor value. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param is_common_model_field [Boolean] If provided, will only return remote field classes with this + # is_common_model_field value + # @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value + # @param page_size [Integer] Number of results to return per page. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedRemoteFieldClassList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, + include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "cursor": cursor, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_shell_data": include_shell_data, + "is_common_model_field": is_common_model_field, + "is_custom": is_custom, + "page_size": page_size + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/lines/remote-field-classes" + end + Merge::Accounting::PaginatedRemoteFieldClassList.from_json(json_object: response.body) + end + end + + # Returns metadata for `ExpenseReport` POSTs. + # + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::MetaResponse] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.meta_post_retrieve + def meta_post_retrieve(request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + unless request_options.nil? || request_options&.additional_query_parameters.nil? + req.params = { **(request_options&.additional_query_parameters || {}) }.compact + end + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/meta/post" + end + Merge::Accounting::MetaResponse.from_json(json_object: response.body) + end + end + + # Returns a list of `RemoteFieldClass` objects. + # + # @param cursor [String] The pagination cursor value. + # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param include_remote_data [Boolean] Whether to include the original data Merge fetched from the third-party to + # produce these models. + # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may + # contain some metadata but all other fields are null). + # @param is_common_model_field [Boolean] If provided, will only return remote field classes with this + # is_common_model_field value + # @param is_custom [Boolean] If provided, will only return remote fields classes with this is_custom value + # @param page_size [Integer] Number of results to return per page. + # @param request_options [Merge::RequestOptions] + # @return [Merge::Accounting::PaginatedRemoteFieldClassList] + # @example + # api = Merge::Client.new( + # base_url: "https://api.example.com", + # environment: Merge::Environment::PRODUCTION, + # api_key: "YOUR_AUTH_TOKEN" + # ) + # api.accounting.expense_reports.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, + include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) + Async do + response = @request_client.conn.get do |req| + req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? + req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? + req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil? + req.headers = { + **(req.headers || {}), + **@request_client.get_headers, + **(request_options&.additional_headers || {}) + }.compact + req.params = { + **(request_options&.additional_query_parameters || {}), + "cursor": cursor, + "include_deleted_data": include_deleted_data, + "include_remote_data": include_remote_data, + "include_shell_data": include_shell_data, + "is_common_model_field": is_common_model_field, + "is_custom": is_custom, + "page_size": page_size + }.compact + unless request_options.nil? || request_options&.additional_body_parameters.nil? + req.body = { **(request_options&.additional_body_parameters || {}) }.compact + end + req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/expense-reports/remote-field-classes" + end + Merge::Accounting::PaginatedRemoteFieldClassList.from_json(json_object: response.body) + end + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand.rb b/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand.rb new file mode 100644 index 00000000..bf65a41f --- /dev/null +++ b/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand.rb @@ -0,0 +1,73 @@ +# frozen_string_literal: true + +module Merge + module Accounting + class ExpenseReports + class ExpenseReportsLinesListRequestExpand + ACCOUNT = "account" + ACCOUNT_COMPANY = "account,company" + ACCOUNT_COMPANY_CONTACT = "account,company,contact" + ACCOUNT_COMPANY_CONTACT_TAX_RATE = "account,company,contact,tax_rate" + ACCOUNT_COMPANY_TAX_RATE = "account,company,tax_rate" + ACCOUNT_CONTACT = "account,contact" + ACCOUNT_CONTACT_TAX_RATE = "account,contact,tax_rate" + ACCOUNT_EMPLOYEE = "account,employee" + ACCOUNT_EMPLOYEE_COMPANY = "account,employee,company" + ACCOUNT_EMPLOYEE_COMPANY_CONTACT = "account,employee,company,contact" + ACCOUNT_EMPLOYEE_COMPANY_CONTACT_TAX_RATE = "account,employee,company,contact,tax_rate" + ACCOUNT_EMPLOYEE_COMPANY_TAX_RATE = "account,employee,company,tax_rate" + ACCOUNT_EMPLOYEE_CONTACT = "account,employee,contact" + ACCOUNT_EMPLOYEE_CONTACT_TAX_RATE = "account,employee,contact,tax_rate" + ACCOUNT_EMPLOYEE_PROJECT = "account,employee,project" + ACCOUNT_EMPLOYEE_PROJECT_COMPANY = "account,employee,project,company" + ACCOUNT_EMPLOYEE_PROJECT_COMPANY_CONTACT = "account,employee,project,company,contact" + ACCOUNT_EMPLOYEE_PROJECT_COMPANY_CONTACT_TAX_RATE = "account,employee,project,company,contact,tax_rate" + ACCOUNT_EMPLOYEE_PROJECT_COMPANY_TAX_RATE = "account,employee,project,company,tax_rate" + ACCOUNT_EMPLOYEE_PROJECT_CONTACT = "account,employee,project,contact" + ACCOUNT_EMPLOYEE_PROJECT_CONTACT_TAX_RATE = "account,employee,project,contact,tax_rate" + ACCOUNT_EMPLOYEE_PROJECT_TAX_RATE = "account,employee,project,tax_rate" + ACCOUNT_EMPLOYEE_TAX_RATE = "account,employee,tax_rate" + ACCOUNT_PROJECT = "account,project" + ACCOUNT_PROJECT_COMPANY = "account,project,company" + ACCOUNT_PROJECT_COMPANY_CONTACT = "account,project,company,contact" + ACCOUNT_PROJECT_COMPANY_CONTACT_TAX_RATE = "account,project,company,contact,tax_rate" + ACCOUNT_PROJECT_COMPANY_TAX_RATE = "account,project,company,tax_rate" + ACCOUNT_PROJECT_CONTACT = "account,project,contact" + ACCOUNT_PROJECT_CONTACT_TAX_RATE = "account,project,contact,tax_rate" + ACCOUNT_PROJECT_TAX_RATE = "account,project,tax_rate" + ACCOUNT_TAX_RATE = "account,tax_rate" + COMPANY = "company" + COMPANY_CONTACT = "company,contact" + COMPANY_CONTACT_TAX_RATE = "company,contact,tax_rate" + COMPANY_TAX_RATE = "company,tax_rate" + CONTACT = "contact" + CONTACT_TAX_RATE = "contact,tax_rate" + EMPLOYEE = "employee" + EMPLOYEE_COMPANY = "employee,company" + EMPLOYEE_COMPANY_CONTACT = "employee,company,contact" + EMPLOYEE_COMPANY_CONTACT_TAX_RATE = "employee,company,contact,tax_rate" + EMPLOYEE_COMPANY_TAX_RATE = "employee,company,tax_rate" + EMPLOYEE_CONTACT = "employee,contact" + EMPLOYEE_CONTACT_TAX_RATE = "employee,contact,tax_rate" + EMPLOYEE_PROJECT = "employee,project" + EMPLOYEE_PROJECT_COMPANY = "employee,project,company" + EMPLOYEE_PROJECT_COMPANY_CONTACT = "employee,project,company,contact" + EMPLOYEE_PROJECT_COMPANY_CONTACT_TAX_RATE = "employee,project,company,contact,tax_rate" + EMPLOYEE_PROJECT_COMPANY_TAX_RATE = "employee,project,company,tax_rate" + EMPLOYEE_PROJECT_CONTACT = "employee,project,contact" + EMPLOYEE_PROJECT_CONTACT_TAX_RATE = "employee,project,contact,tax_rate" + EMPLOYEE_PROJECT_TAX_RATE = "employee,project,tax_rate" + EMPLOYEE_TAX_RATE = "employee,tax_rate" + PROJECT = "project" + PROJECT_COMPANY = "project,company" + PROJECT_COMPANY_CONTACT = "project,company,contact" + PROJECT_COMPANY_CONTACT_TAX_RATE = "project,company,contact,tax_rate" + PROJECT_COMPANY_TAX_RATE = "project,company,tax_rate" + PROJECT_CONTACT = "project,contact" + PROJECT_CONTACT_TAX_RATE = "project,contact,tax_rate" + PROJECT_TAX_RATE = "project,tax_rate" + TAX_RATE = "tax_rate" + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand.rb b/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand.rb new file mode 100644 index 00000000..e377893f --- /dev/null +++ b/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module Merge + module Accounting + class ExpenseReports + class ExpenseReportsListRequestExpand + ACCOUNTING_PERIOD = "accounting_period" + ACCOUNTING_PERIOD_COMPANY = "accounting_period,company" + COMPANY = "company" + EMPLOYEE = "employee" + EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" + EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "employee,accounting_period,company" + EMPLOYEE_COMPANY = "employee,company" + LINES = "lines" + LINES_ACCOUNTING_PERIOD = "lines,accounting_period" + LINES_ACCOUNTING_PERIOD_COMPANY = "lines,accounting_period,company" + LINES_COMPANY = "lines,company" + LINES_EMPLOYEE = "lines,employee" + LINES_EMPLOYEE_ACCOUNTING_PERIOD = "lines,employee,accounting_period" + LINES_EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "lines,employee,accounting_period,company" + LINES_EMPLOYEE_COMPANY = "lines,employee,company" + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand.rb b/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand.rb new file mode 100644 index 00000000..4a6b085b --- /dev/null +++ b/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand.rb @@ -0,0 +1,25 @@ +# frozen_string_literal: true + +module Merge + module Accounting + class ExpenseReports + class ExpenseReportsRetrieveRequestExpand + ACCOUNTING_PERIOD = "accounting_period" + ACCOUNTING_PERIOD_COMPANY = "accounting_period,company" + COMPANY = "company" + EMPLOYEE = "employee" + EMPLOYEE_ACCOUNTING_PERIOD = "employee,accounting_period" + EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "employee,accounting_period,company" + EMPLOYEE_COMPANY = "employee,company" + LINES = "lines" + LINES_ACCOUNTING_PERIOD = "lines,accounting_period" + LINES_ACCOUNTING_PERIOD_COMPANY = "lines,accounting_period,company" + LINES_COMPANY = "lines,company" + LINES_EMPLOYEE = "lines,employee" + LINES_EMPLOYEE_ACCOUNTING_PERIOD = "lines,employee,accounting_period" + LINES_EMPLOYEE_ACCOUNTING_PERIOD_COMPANY = "lines,employee,accounting_period,company" + LINES_EMPLOYEE_COMPANY = "lines,employee,company" + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/expenses/client.rb b/lib/merge_ruby_client/accounting/expenses/client.rb index d71ff907..64969013 100644 --- a/lib/merge_ruby_client/accounting/expenses/client.rb +++ b/lib/merge_ruby_client/accounting/expenses/client.rb @@ -57,7 +57,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.expenses.list + # api.accounting.expenses.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -217,7 +217,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.expenses.lines_remote_field_classes_list + # api.accounting.expenses.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -302,7 +302,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.expenses.remote_field_classes_list + # api.accounting.expenses.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -376,7 +376,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.expenses.list + # api.accounting.expenses.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) Async do @@ -542,7 +542,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.expenses.lines_remote_field_classes_list + # api.accounting.expenses.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do @@ -631,7 +631,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.expenses.remote_field_classes_list + # api.accounting.expenses.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/general_ledger_transactions/client.rb b/lib/merge_ruby_client/accounting/general_ledger_transactions/client.rb index 1f7746e2..7ae8036a 100644 --- a/lib/merge_ruby_client/accounting/general_ledger_transactions/client.rb +++ b/lib/merge_ruby_client/accounting/general_ledger_transactions/client.rb @@ -51,7 +51,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.general_ledger_transactions.list + # api.accounting.general_ledger_transactions.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, posted_date_after: nil, posted_date_before: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -172,7 +172,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.general_ledger_transactions.list + # api.accounting.general_ledger_transactions.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, posted_date_after: nil, posted_date_before: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/income_statements/client.rb b/lib/merge_ruby_client/accounting/income_statements/client.rb index 7c07f8a5..b3f7dc82 100644 --- a/lib/merge_ruby_client/accounting/income_statements/client.rb +++ b/lib/merge_ruby_client/accounting/income_statements/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.income_statements.list + # api.accounting.income_statements.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -164,7 +164,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.income_statements.list + # api.accounting.income_statements.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/invoices/client.rb b/lib/merge_ruby_client/accounting/invoices/client.rb index b244aa33..c436992f 100644 --- a/lib/merge_ruby_client/accounting/invoices/client.rb +++ b/lib/merge_ruby_client/accounting/invoices/client.rb @@ -75,7 +75,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.invoices.list + # api.accounting.invoices.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, issue_date_after: nil, issue_date_before: nil, modified_after: nil, modified_before: nil, number: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, type: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -319,7 +319,7 @@ def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_opti # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.invoices.line_items_remote_field_classes_list + # api.accounting.invoices.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -437,7 +437,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.invoices.remote_field_classes_list + # api.accounting.invoices.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -527,7 +527,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.invoices.list + # api.accounting.invoices.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, issue_date_after: nil, issue_date_before: nil, modified_after: nil, modified_before: nil, number: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, type: nil, request_options: nil) Async do @@ -779,7 +779,7 @@ def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_opti # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.invoices.line_items_remote_field_classes_list + # api.accounting.invoices.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do @@ -903,7 +903,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.invoices.remote_field_classes_list + # api.accounting.invoices.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/issues/client.rb b/lib/merge_ruby_client/accounting/issues/client.rb index 3cbe1628..cb046925 100644 --- a/lib/merge_ruby_client/accounting/issues/client.rb +++ b/lib/merge_ruby_client/accounting/issues/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.issues.list + # api.accounting.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -166,7 +166,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.issues.list + # api.accounting.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/accounting/items/client.rb b/lib/merge_ruby_client/accounting/items/client.rb index e1d8fe37..afff94a0 100644 --- a/lib/merge_ruby_client/accounting/items/client.rb +++ b/lib/merge_ruby_client/accounting/items/client.rb @@ -57,7 +57,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.items.list + # api.accounting.items.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -347,7 +347,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.items.list + # api.accounting.items.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/accounting/journal_entries/client.rb b/lib/merge_ruby_client/accounting/journal_entries/client.rb index 4ae29be3..b8399815 100644 --- a/lib/merge_ruby_client/accounting/journal_entries/client.rb +++ b/lib/merge_ruby_client/accounting/journal_entries/client.rb @@ -57,7 +57,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.journal_entries.list + # api.accounting.journal_entries.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -213,7 +213,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.journal_entries.lines_remote_field_classes_list + # api.accounting.journal_entries.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -298,7 +298,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.journal_entries.remote_field_classes_list + # api.accounting.journal_entries.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -372,7 +372,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.journal_entries.list + # api.accounting.journal_entries.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) Async do @@ -534,7 +534,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.journal_entries.lines_remote_field_classes_list + # api.accounting.journal_entries.lines_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def lines_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do @@ -623,7 +623,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.journal_entries.remote_field_classes_list + # api.accounting.journal_entries.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/linked_accounts/client.rb b/lib/merge_ruby_client/accounting/linked_accounts/client.rb index c21ea3ba..d3fc38b5 100644 --- a/lib/merge_ruby_client/accounting/linked_accounts/client.rb +++ b/lib/merge_ruby_client/accounting/linked_accounts/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.linked_accounts.list + # api.accounting.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -142,7 +142,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.linked_accounts.list + # api.accounting.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/accounting/payment_methods/client.rb b/lib/merge_ruby_client/accounting/payment_methods/client.rb index 173332c6..324d0720 100644 --- a/lib/merge_ruby_client/accounting/payment_methods/client.rb +++ b/lib/merge_ruby_client/accounting/payment_methods/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payment_methods.list + # api.accounting.payment_methods.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -135,7 +135,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payment_methods.list + # api.accounting.payment_methods.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/payment_terms/client.rb b/lib/merge_ruby_client/accounting/payment_terms/client.rb index 14a3c7dd..61b517b0 100644 --- a/lib/merge_ruby_client/accounting/payment_terms/client.rb +++ b/lib/merge_ruby_client/accounting/payment_terms/client.rb @@ -39,7 +39,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payment_terms.list + # api.accounting.payment_terms.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -143,7 +143,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payment_terms.list + # api.accounting.payment_terms.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/payments/client.rb b/lib/merge_ruby_client/accounting/payments/client.rb index 04cb3ff5..b52d8564 100644 --- a/lib/merge_ruby_client/accounting/payments/client.rb +++ b/lib/merge_ruby_client/accounting/payments/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payments.list + # api.accounting.payments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, company_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -270,7 +270,7 @@ def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_opti # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payments.line_items_remote_field_classes_list + # api.accounting.payments.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -388,7 +388,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payments.remote_field_classes_list + # api.accounting.payments.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -464,7 +464,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payments.list + # api.accounting.payments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, company_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil) Async do @@ -682,7 +682,7 @@ def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_opti # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payments.line_items_remote_field_classes_list + # api.accounting.payments.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do @@ -806,7 +806,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.payments.remote_field_classes_list + # api.accounting.payments.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/projects/client.rb b/lib/merge_ruby_client/accounting/projects/client.rb index 2e725ae4..e1bf607e 100644 --- a/lib/merge_ruby_client/accounting/projects/client.rb +++ b/lib/merge_ruby_client/accounting/projects/client.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true require_relative "../../../requests" +require "date" require_relative "types/projects_list_request_expand" require_relative "../types/paginated_project_list" require_relative "types/projects_retrieve_request_expand" @@ -21,6 +22,9 @@ def initialize(request_client:) # Returns a list of `Project` objects. # + # @param company_id [String] If provided, will only return projects for this company. + # @param created_after [DateTime] If provided, will only return objects created after this datetime. + # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. # @param expand [Merge::Accounting::Projects::ProjectsListRequestExpand] Which relations should be returned in expanded form. Multiple relation names # should be comma separated without spaces. @@ -32,7 +36,11 @@ def initialize(request_client:) # produce these models. # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may # contain some metadata but all other fields are null). + # @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned. + # @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be + # returned. # @param page_size [Integer] Number of results to return per page. + # @param remote_id [String] The API provider's ID for the given object. # @param request_options [Merge::RequestOptions] # @return [Merge::Accounting::PaginatedProjectList] # @example @@ -41,9 +49,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.projects.list - def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, - page_size: nil, request_options: nil) + # api.accounting.projects.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, + include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? @@ -55,12 +63,18 @@ def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_dat }.compact req.params = { **(request_options&.additional_query_parameters || {}), + "company_id": company_id, + "created_after": created_after, + "created_before": created_before, "cursor": cursor, "expand": expand, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_shell_data": include_shell_data, - "page_size": page_size + "modified_after": modified_after, + "modified_before": modified_before, + "page_size": page_size, + "remote_id": remote_id }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact @@ -125,6 +139,9 @@ def initialize(request_client:) # Returns a list of `Project` objects. # + # @param company_id [String] If provided, will only return projects for this company. + # @param created_after [DateTime] If provided, will only return objects created after this datetime. + # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. # @param expand [Merge::Accounting::Projects::ProjectsListRequestExpand] Which relations should be returned in expanded form. Multiple relation names # should be comma separated without spaces. @@ -136,7 +153,11 @@ def initialize(request_client:) # produce these models. # @param include_shell_data [Boolean] Whether to include shell records. Shell records are empty records (they may # contain some metadata but all other fields are null). + # @param modified_after [DateTime] If provided, only objects synced by Merge after this date time will be returned. + # @param modified_before [DateTime] If provided, only objects synced by Merge before this date time will be + # returned. # @param page_size [Integer] Number of results to return per page. + # @param remote_id [String] The API provider's ID for the given object. # @param request_options [Merge::RequestOptions] # @return [Merge::Accounting::PaginatedProjectList] # @example @@ -145,9 +166,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.projects.list - def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, - page_size: nil, request_options: nil) + # api.accounting.projects.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, + include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -160,12 +181,18 @@ def list(cursor: nil, expand: nil, include_deleted_data: nil, include_remote_dat }.compact req.params = { **(request_options&.additional_query_parameters || {}), + "company_id": company_id, + "created_after": created_after, + "created_before": created_before, "cursor": cursor, "expand": expand, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_shell_data": include_shell_data, - "page_size": page_size + "modified_after": modified_after, + "modified_before": modified_before, + "page_size": page_size, + "remote_id": remote_id }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? req.body = { **(request_options&.additional_body_parameters || {}) }.compact diff --git a/lib/merge_ruby_client/accounting/purchase_orders/client.rb b/lib/merge_ruby_client/accounting/purchase_orders/client.rb index 552f407d..9c9a2079 100644 --- a/lib/merge_ruby_client/accounting/purchase_orders/client.rb +++ b/lib/merge_ruby_client/accounting/purchase_orders/client.rb @@ -61,7 +61,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.purchase_orders.list + # api.accounting.purchase_orders.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, issue_date_after: nil, issue_date_before: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -229,7 +229,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.purchase_orders.line_items_remote_field_classes_list + # api.accounting.purchase_orders.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -314,7 +314,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.purchase_orders.remote_field_classes_list + # api.accounting.purchase_orders.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -392,7 +392,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.purchase_orders.list + # api.accounting.purchase_orders.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, issue_date_after: nil, issue_date_before: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do @@ -566,7 +566,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.purchase_orders.line_items_remote_field_classes_list + # api.accounting.purchase_orders.line_items_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def line_items_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do @@ -655,7 +655,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.purchase_orders.remote_field_classes_list + # api.accounting.purchase_orders.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/sync_status/client.rb b/lib/merge_ruby_client/accounting/sync_status/client.rb index 10c9a9de..a3308165 100644 --- a/lib/merge_ruby_client/accounting/sync_status/client.rb +++ b/lib/merge_ruby_client/accounting/sync_status/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.sync_status.list + # api.accounting.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -93,7 +93,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.sync_status.list + # api.accounting.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| diff --git a/lib/merge_ruby_client/accounting/tax_rates/client.rb b/lib/merge_ruby_client/accounting/tax_rates/client.rb index 3009ec59..bceaa89c 100644 --- a/lib/merge_ruby_client/accounting/tax_rates/client.rb +++ b/lib/merge_ruby_client/accounting/tax_rates/client.rb @@ -48,7 +48,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.tax_rates.list + # api.accounting.tax_rates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -167,7 +167,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.tax_rates.list + # api.accounting.tax_rates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/tracking_categories/client.rb b/lib/merge_ruby_client/accounting/tracking_categories/client.rb index 059a183b..f1c76995 100644 --- a/lib/merge_ruby_client/accounting/tracking_categories/client.rb +++ b/lib/merge_ruby_client/accounting/tracking_categories/client.rb @@ -54,7 +54,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.tracking_categories.list + # api.accounting.tracking_categories.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category_type: nil, company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -190,7 +190,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.tracking_categories.list + # api.accounting.tracking_categories.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category_type: nil, company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/accounting/transactions/client.rb b/lib/merge_ruby_client/accounting/transactions/client.rb index f74ab7fe..0d964174 100644 --- a/lib/merge_ruby_client/accounting/transactions/client.rb +++ b/lib/merge_ruby_client/accounting/transactions/client.rb @@ -51,7 +51,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.transactions.list + # api.accounting.transactions.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -172,7 +172,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.transactions.list + # api.accounting.transactions.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/accounting/transactions/types/transactions_list_request_expand.rb b/lib/merge_ruby_client/accounting/transactions/types/transactions_list_request_expand.rb index 41680c25..988b0094 100644 --- a/lib/merge_ruby_client/accounting/transactions/types/transactions_list_request_expand.rb +++ b/lib/merge_ruby_client/accounting/transactions/types/transactions_list_request_expand.rb @@ -6,35 +6,67 @@ class Transactions class TransactionsListRequestExpand ACCOUNT = "account" ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" + ACCOUNT_COMPANY = "account,company" + ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" ACCOUNTING_PERIOD = "accounting_period" + COMPANY = "company" + COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" CONTACT = "contact" CONTACT_ACCOUNT = "contact,account" CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period" + CONTACT_ACCOUNT_COMPANY = "contact,account,company" + CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period" CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" + CONTACT_COMPANY = "contact,company" + CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" LINE_ITEMS = "line_items" LINE_ITEMS_ACCOUNT = "line_items,account" LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD = "line_items,account,accounting_period" + LINE_ITEMS_ACCOUNT_COMPANY = "line_items,account,company" + LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,account,company,accounting_period" LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" + LINE_ITEMS_COMPANY = "line_items,company" + LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" LINE_ITEMS_CONTACT = "line_items,contact" LINE_ITEMS_CONTACT_ACCOUNT = "line_items,contact,account" LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,contact,account,accounting_period" + LINE_ITEMS_CONTACT_ACCOUNT_COMPANY = "line_items,contact,account,company" + LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,account,company,accounting_period" LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" + LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" + LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT = "line_items,tracking_categories,account" LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "line_items,tracking_categories,account,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY = "line_items,tracking_categories,account,company" + LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,account,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" + LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT = "line_items,tracking_categories,contact,account" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,account,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "line_items,tracking_categories,contact,account,company" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,account,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,company,accounting_period" TRACKING_CATEGORIES = "tracking_categories" TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" + TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" + TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" + TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" + TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account" TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period" + TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company" + TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,account,company,accounting_period" TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" + TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" + TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" end end end diff --git a/lib/merge_ruby_client/accounting/transactions/types/transactions_retrieve_request_expand.rb b/lib/merge_ruby_client/accounting/transactions/types/transactions_retrieve_request_expand.rb index b6c5f48c..06cd17cb 100644 --- a/lib/merge_ruby_client/accounting/transactions/types/transactions_retrieve_request_expand.rb +++ b/lib/merge_ruby_client/accounting/transactions/types/transactions_retrieve_request_expand.rb @@ -6,35 +6,67 @@ class Transactions class TransactionsRetrieveRequestExpand ACCOUNT = "account" ACCOUNT_ACCOUNTING_PERIOD = "account,accounting_period" + ACCOUNT_COMPANY = "account,company" + ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "account,company,accounting_period" ACCOUNTING_PERIOD = "accounting_period" + COMPANY = "company" + COMPANY_ACCOUNTING_PERIOD = "company,accounting_period" CONTACT = "contact" CONTACT_ACCOUNT = "contact,account" CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "contact,account,accounting_period" + CONTACT_ACCOUNT_COMPANY = "contact,account,company" + CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "contact,account,company,accounting_period" CONTACT_ACCOUNTING_PERIOD = "contact,accounting_period" + CONTACT_COMPANY = "contact,company" + CONTACT_COMPANY_ACCOUNTING_PERIOD = "contact,company,accounting_period" LINE_ITEMS = "line_items" LINE_ITEMS_ACCOUNT = "line_items,account" LINE_ITEMS_ACCOUNT_ACCOUNTING_PERIOD = "line_items,account,accounting_period" + LINE_ITEMS_ACCOUNT_COMPANY = "line_items,account,company" + LINE_ITEMS_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,account,company,accounting_period" LINE_ITEMS_ACCOUNTING_PERIOD = "line_items,accounting_period" + LINE_ITEMS_COMPANY = "line_items,company" + LINE_ITEMS_COMPANY_ACCOUNTING_PERIOD = "line_items,company,accounting_period" LINE_ITEMS_CONTACT = "line_items,contact" LINE_ITEMS_CONTACT_ACCOUNT = "line_items,contact,account" LINE_ITEMS_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,contact,account,accounting_period" + LINE_ITEMS_CONTACT_ACCOUNT_COMPANY = "line_items,contact,account,company" + LINE_ITEMS_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,account,company,accounting_period" LINE_ITEMS_CONTACT_ACCOUNTING_PERIOD = "line_items,contact,accounting_period" + LINE_ITEMS_CONTACT_COMPANY = "line_items,contact,company" + LINE_ITEMS_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,contact,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES = "line_items,tracking_categories" LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT = "line_items,tracking_categories,account" LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "line_items,tracking_categories,account,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY = "line_items,tracking_categories,account,company" + LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,account,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "line_items,tracking_categories,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_COMPANY = "line_items,tracking_categories,company" + LINE_ITEMS_TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT = "line_items,tracking_categories,contact" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT = "line_items,tracking_categories,contact,account" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,account,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "line_items,tracking_categories,contact,account,company" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,account,company,accounting_period" LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,accounting_period" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY = "line_items,tracking_categories,contact,company" + LINE_ITEMS_TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "line_items,tracking_categories,contact,company,accounting_period" TRACKING_CATEGORIES = "tracking_categories" TRACKING_CATEGORIES_ACCOUNT = "tracking_categories,account" TRACKING_CATEGORIES_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,account,accounting_period" + TRACKING_CATEGORIES_ACCOUNT_COMPANY = "tracking_categories,account,company" + TRACKING_CATEGORIES_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,account,company,accounting_period" TRACKING_CATEGORIES_ACCOUNTING_PERIOD = "tracking_categories,accounting_period" + TRACKING_CATEGORIES_COMPANY = "tracking_categories,company" + TRACKING_CATEGORIES_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,company,accounting_period" TRACKING_CATEGORIES_CONTACT = "tracking_categories,contact" TRACKING_CATEGORIES_CONTACT_ACCOUNT = "tracking_categories,contact,account" TRACKING_CATEGORIES_CONTACT_ACCOUNT_ACCOUNTING_PERIOD = "tracking_categories,contact,account,accounting_period" + TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY = "tracking_categories,contact,account,company" + TRACKING_CATEGORIES_CONTACT_ACCOUNT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,account,company,accounting_period" TRACKING_CATEGORIES_CONTACT_ACCOUNTING_PERIOD = "tracking_categories,contact,accounting_period" + TRACKING_CATEGORIES_CONTACT_COMPANY = "tracking_categories,contact,company" + TRACKING_CATEGORIES_CONTACT_COMPANY_ACCOUNTING_PERIOD = "tracking_categories,contact,company,accounting_period" end end end diff --git a/lib/merge_ruby_client/accounting/types/expense_report.rb b/lib/merge_ruby_client/accounting/types/expense_report.rb new file mode 100644 index 00000000..6f654e93 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report.rb @@ -0,0 +1,869 @@ +# frozen_string_literal: true + +require "date" +require_relative "expense_report_status_enum" +require_relative "expense_report_line" +require_relative "transaction_currency_enum" +require_relative "expense_report_company" +require_relative "remote_data" +require_relative "remote_field" +require "ostruct" +require "json" + +module Merge + module Accounting + # # The ExpenseReport Object + # ### Description + # The `ExpenseReport` object represents a collection of expenses submitted for + # review and reimbursement. + # It includes details about the submitter, status, amounts, and associated + # metadata. + # ### Usage Example + # Fetch from the `GET ExpenseReport` endpoint to view details of expense reports + # and their line items. + class ExpenseReport + # @return [String] + attr_reader :id + # @return [String] The third-party API ID of the matching object. + attr_reader :remote_id + # @return [DateTime] The datetime that this object was created by Merge. + attr_reader :created_at + # @return [DateTime] The datetime that this object was modified by Merge. + attr_reader :modified_at + # @return [DateTime] The date of the expense report. + attr_reader :report_date + # @return [String] Human-readable expense report identifier. + attr_reader :report_identifier + # @return [String] Identifier for the employee who submitted or is associated with the expense + # report + attr_reader :employee + # @return [Merge::Accounting::ExpenseReportStatusEnum] Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, + # REJECTED + # * `DRAFT` - DRAFT + # * `SUBMITTED` - SUBMITTED + # * `APPROVED` - APPROVED + # * `REJECTED` - REJECTED + attr_reader :status + # @return [Float] Total amount of the expense report + attr_reader :total_amount + # @return [Array] + attr_reader :lines + # @return [Merge::Accounting::TransactionCurrencyEnum] Currency code for the expense report + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + attr_reader :currency + # @return [String] A brief description or purpose for the expense report + attr_reader :description + # @return [String] The accounting period the report was posted in + attr_reader :accounting_period + # @return [Merge::Accounting::ExpenseReportCompany] The subsidiary that the expense report is created in + attr_reader :company + # @return [Array] The related tracking categories associated with the expense report + attr_reader :tracking_categories + # @return [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + attr_reader :remote_was_deleted + # @return [Hash{String => Object}] + attr_reader :field_mappings + # @return [Array] + attr_reader :remote_data + # @return [Array] + attr_reader :remote_fields + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param id [String] + # @param remote_id [String] The third-party API ID of the matching object. + # @param created_at [DateTime] The datetime that this object was created by Merge. + # @param modified_at [DateTime] The datetime that this object was modified by Merge. + # @param report_date [DateTime] The date of the expense report. + # @param report_identifier [String] Human-readable expense report identifier. + # @param employee [String] Identifier for the employee who submitted or is associated with the expense + # report + # @param status [Merge::Accounting::ExpenseReportStatusEnum] Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, + # REJECTED + # * `DRAFT` - DRAFT + # * `SUBMITTED` - SUBMITTED + # * `APPROVED` - APPROVED + # * `REJECTED` - REJECTED + # @param total_amount [Float] Total amount of the expense report + # @param lines [Array] + # @param currency [Merge::Accounting::TransactionCurrencyEnum] Currency code for the expense report + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + # @param description [String] A brief description or purpose for the expense report + # @param accounting_period [String] The accounting period the report was posted in + # @param company [Merge::Accounting::ExpenseReportCompany] The subsidiary that the expense report is created in + # @param tracking_categories [Array] The related tracking categories associated with the expense report + # @param remote_was_deleted [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param field_mappings [Hash{String => Object}] + # @param remote_data [Array] + # @param remote_fields [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::ExpenseReport] + def initialize(tracking_categories:, id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, report_date: OMIT, + report_identifier: OMIT, employee: OMIT, status: OMIT, total_amount: OMIT, lines: OMIT, currency: OMIT, description: OMIT, accounting_period: OMIT, company: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, remote_fields: OMIT, additional_properties: nil) + @id = id if id != OMIT + @remote_id = remote_id if remote_id != OMIT + @created_at = created_at if created_at != OMIT + @modified_at = modified_at if modified_at != OMIT + @report_date = report_date if report_date != OMIT + @report_identifier = report_identifier if report_identifier != OMIT + @employee = employee if employee != OMIT + @status = status if status != OMIT + @total_amount = total_amount if total_amount != OMIT + @lines = lines if lines != OMIT + @currency = currency if currency != OMIT + @description = description if description != OMIT + @accounting_period = accounting_period if accounting_period != OMIT + @company = company if company != OMIT + @tracking_categories = tracking_categories + @remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT + @field_mappings = field_mappings if field_mappings != OMIT + @remote_data = remote_data if remote_data != OMIT + @remote_fields = remote_fields if remote_fields != OMIT + @additional_properties = additional_properties + @_field_set = { + "id": id, + "remote_id": remote_id, + "created_at": created_at, + "modified_at": modified_at, + "report_date": report_date, + "report_identifier": report_identifier, + "employee": employee, + "status": status, + "total_amount": total_amount, + "lines": lines, + "currency": currency, + "description": description, + "accounting_period": accounting_period, + "company": company, + "tracking_categories": tracking_categories, + "remote_was_deleted": remote_was_deleted, + "field_mappings": field_mappings, + "remote_data": remote_data, + "remote_fields": remote_fields + }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of ExpenseReport + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReport] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + id = parsed_json["id"] + remote_id = parsed_json["remote_id"] + created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?) + modified_at = (DateTime.parse(parsed_json["modified_at"]) unless parsed_json["modified_at"].nil?) + report_date = (DateTime.parse(parsed_json["report_date"]) unless parsed_json["report_date"].nil?) + report_identifier = parsed_json["report_identifier"] + employee = parsed_json["employee"] + status = parsed_json["status"] + total_amount = parsed_json["total_amount"] + lines = parsed_json["lines"]&.map do |item| + item = item.to_json + Merge::Accounting::ExpenseReportLine.from_json(json_object: item) + end + currency = parsed_json["currency"] + description = parsed_json["description"] + accounting_period = parsed_json["accounting_period"] + if parsed_json["company"].nil? + company = nil + else + company = parsed_json["company"].to_json + company = Merge::Accounting::ExpenseReportCompany.from_json(json_object: company) + end + tracking_categories = parsed_json["tracking_categories"] + remote_was_deleted = parsed_json["remote_was_deleted"] + field_mappings = parsed_json["field_mappings"] + remote_data = parsed_json["remote_data"]&.map do |item| + item = item.to_json + Merge::Accounting::RemoteData.from_json(json_object: item) + end + remote_fields = parsed_json["remote_fields"]&.map do |item| + item = item.to_json + Merge::Accounting::RemoteField.from_json(json_object: item) + end + new( + id: id, + remote_id: remote_id, + created_at: created_at, + modified_at: modified_at, + report_date: report_date, + report_identifier: report_identifier, + employee: employee, + status: status, + total_amount: total_amount, + lines: lines, + currency: currency, + description: description, + accounting_period: accounting_period, + company: company, + tracking_categories: tracking_categories, + remote_was_deleted: remote_was_deleted, + field_mappings: field_mappings, + remote_data: remote_data, + remote_fields: remote_fields, + additional_properties: struct + ) + end + + # Serialize an instance of ExpenseReport to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.") + obj.remote_id&.is_a?(String) != false || raise("Passed value for field obj.remote_id is not the expected type, validation failed.") + obj.created_at&.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.") + obj.modified_at&.is_a?(DateTime) != false || raise("Passed value for field obj.modified_at is not the expected type, validation failed.") + obj.report_date&.is_a?(DateTime) != false || raise("Passed value for field obj.report_date is not the expected type, validation failed.") + obj.report_identifier&.is_a?(String) != false || raise("Passed value for field obj.report_identifier is not the expected type, validation failed.") + obj.employee&.is_a?(String) != false || raise("Passed value for field obj.employee is not the expected type, validation failed.") + obj.status&.is_a?(Merge::Accounting::ExpenseReportStatusEnum) != false || raise("Passed value for field obj.status is not the expected type, validation failed.") + obj.total_amount&.is_a?(Float) != false || raise("Passed value for field obj.total_amount is not the expected type, validation failed.") + obj.lines&.is_a?(Array) != false || raise("Passed value for field obj.lines is not the expected type, validation failed.") + obj.currency&.is_a?(Merge::Accounting::TransactionCurrencyEnum) != false || raise("Passed value for field obj.currency is not the expected type, validation failed.") + obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") + obj.accounting_period&.is_a?(String) != false || raise("Passed value for field obj.accounting_period is not the expected type, validation failed.") + obj.company.nil? || Merge::Accounting::ExpenseReportCompany.validate_raw(obj: obj.company) + obj.tracking_categories.is_a?(Array) != false || raise("Passed value for field obj.tracking_categories is not the expected type, validation failed.") + obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.") + obj.field_mappings&.is_a?(Hash) != false || raise("Passed value for field obj.field_mappings is not the expected type, validation failed.") + obj.remote_data&.is_a?(Array) != false || raise("Passed value for field obj.remote_data is not the expected type, validation failed.") + obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_company.rb b/lib/merge_ruby_client/accounting/types/expense_report_company.rb new file mode 100644 index 00000000..34715a4a --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_company.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +require "json" +require_relative "company_info" + +module Merge + module Accounting + # The subsidiary that the expense report is created in + class ExpenseReportCompany + # Deserialize a JSON object to an instance of ExpenseReportCompany + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportCompany] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::CompanyInfo.validate_raw(obj: struct) + return Merge::Accounting::CompanyInfo.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::CompanyInfo.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line.rb b/lib/merge_ruby_client/accounting/types/expense_report_line.rb new file mode 100644 index 00000000..b2659a98 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line.rb @@ -0,0 +1,921 @@ +# frozen_string_literal: true + +require "date" +require_relative "expense_report_line_account" +require_relative "transaction_currency_enum" +require_relative "expense_report_line_employee" +require_relative "expense_report_line_project" +require_relative "expense_report_line_company" +require_relative "expense_report_line_contact" +require_relative "expense_report_line_tax_rate" +require_relative "remote_field" +require "ostruct" +require "json" + +module Merge + module Accounting + # # The ExpenseReportLine Object + # ### Description + # The `ExpenseReportLine` object represents an individual line item within an + # expense report, containing details about + # a specific expense such as amount, description, and associated metadata. + # ### Usage Example + # Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view + # all line items in the expense report. + class ExpenseReportLine + # @return [String] + attr_reader :id + # @return [String] The third-party API ID of the matching object. + attr_reader :remote_id + # @return [DateTime] The datetime that this object was created by Merge. + attr_reader :created_at + # @return [DateTime] The datetime that this object was modified by Merge. + attr_reader :modified_at + # @return [Merge::Accounting::ExpenseReportLineAccount] + attr_reader :account + # @return [String] Description of the individual expense. + attr_reader :description + # @return [DateTime] The date the individual expense was incurred. + attr_reader :expense_date + # @return [Float] The amount of the expense for the line item. + attr_reader :amount + # @return [Merge::Accounting::TransactionCurrencyEnum] Currency of the expense line (if different from the report currency). + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + attr_reader :currency + # @return [String] Exchange rate used if the line item is in a foreign currency. + attr_reader :exchange_rate + # @return [Boolean] Whether the expense line is billable to a client or project. + attr_reader :is_billable + # @return [Array] The related tracking categories associated with the expense report (Department, + # Location, Class, Expense Category) + attr_reader :tracking_categories + # @return [Merge::Accounting::ExpenseReportLineEmployee] Identifier for the employee who submitted or is associated with the expense + # report + attr_reader :employee + # @return [Merge::Accounting::ExpenseReportLineProject] + attr_reader :project + # @return [Merge::Accounting::ExpenseReportLineCompany] The subsidiary that the expense report is created in + attr_reader :company + # @return [Merge::Accounting::ExpenseReportLineContact] + attr_reader :contact + # @return [Float] Quantity for the expense line (e.g., miles driven, items purchased). + attr_reader :quantity + # @return [Float] Price per unit for the expense line (if applicable). + attr_reader :unit_price + # @return [Boolean] Whether the expense line is non-reimbursable (e.g., paid via company card). + attr_reader :non_reimbursable + # @return [Float] Tax amount applicable for the line item. + attr_reader :tax_amount + # @return [Boolean] Whether the amount is inclusive of tax. + attr_reader :inclusive_of_tax + # @return [Merge::Accounting::ExpenseReportLineTaxRate] + attr_reader :tax_rate + # @return [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + attr_reader :remote_was_deleted + # @return [Array] + attr_reader :remote_fields + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param id [String] + # @param remote_id [String] The third-party API ID of the matching object. + # @param created_at [DateTime] The datetime that this object was created by Merge. + # @param modified_at [DateTime] The datetime that this object was modified by Merge. + # @param account [Merge::Accounting::ExpenseReportLineAccount] + # @param description [String] Description of the individual expense. + # @param expense_date [DateTime] The date the individual expense was incurred. + # @param amount [Float] The amount of the expense for the line item. + # @param currency [Merge::Accounting::TransactionCurrencyEnum] Currency of the expense line (if different from the report currency). + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + # @param exchange_rate [String] Exchange rate used if the line item is in a foreign currency. + # @param is_billable [Boolean] Whether the expense line is billable to a client or project. + # @param tracking_categories [Array] The related tracking categories associated with the expense report (Department, + # Location, Class, Expense Category) + # @param employee [Merge::Accounting::ExpenseReportLineEmployee] Identifier for the employee who submitted or is associated with the expense + # report + # @param project [Merge::Accounting::ExpenseReportLineProject] + # @param company [Merge::Accounting::ExpenseReportLineCompany] The subsidiary that the expense report is created in + # @param contact [Merge::Accounting::ExpenseReportLineContact] + # @param quantity [Float] Quantity for the expense line (e.g., miles driven, items purchased). + # @param unit_price [Float] Price per unit for the expense line (if applicable). + # @param non_reimbursable [Boolean] Whether the expense line is non-reimbursable (e.g., paid via company card). + # @param tax_amount [Float] Tax amount applicable for the line item. + # @param inclusive_of_tax [Boolean] Whether the amount is inclusive of tax. + # @param tax_rate [Merge::Accounting::ExpenseReportLineTaxRate] + # @param remote_was_deleted [Boolean] Indicates whether or not this object has been deleted in the third party + # platform. Full coverage deletion detection is a premium add-on. Native deletion + # detection is offered for free with limited coverage. [Learn + # more](https://docs.merge.dev/integrations/hris/supported-features/). + # @param remote_fields [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::ExpenseReportLine] + def initialize(tracking_categories:, id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, account: OMIT, description: OMIT, + expense_date: OMIT, amount: OMIT, currency: OMIT, exchange_rate: OMIT, is_billable: OMIT, employee: OMIT, project: OMIT, company: OMIT, contact: OMIT, quantity: OMIT, unit_price: OMIT, non_reimbursable: OMIT, tax_amount: OMIT, inclusive_of_tax: OMIT, tax_rate: OMIT, remote_was_deleted: OMIT, remote_fields: OMIT, additional_properties: nil) + @id = id if id != OMIT + @remote_id = remote_id if remote_id != OMIT + @created_at = created_at if created_at != OMIT + @modified_at = modified_at if modified_at != OMIT + @account = account if account != OMIT + @description = description if description != OMIT + @expense_date = expense_date if expense_date != OMIT + @amount = amount if amount != OMIT + @currency = currency if currency != OMIT + @exchange_rate = exchange_rate if exchange_rate != OMIT + @is_billable = is_billable if is_billable != OMIT + @tracking_categories = tracking_categories + @employee = employee if employee != OMIT + @project = project if project != OMIT + @company = company if company != OMIT + @contact = contact if contact != OMIT + @quantity = quantity if quantity != OMIT + @unit_price = unit_price if unit_price != OMIT + @non_reimbursable = non_reimbursable if non_reimbursable != OMIT + @tax_amount = tax_amount if tax_amount != OMIT + @inclusive_of_tax = inclusive_of_tax if inclusive_of_tax != OMIT + @tax_rate = tax_rate if tax_rate != OMIT + @remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT + @remote_fields = remote_fields if remote_fields != OMIT + @additional_properties = additional_properties + @_field_set = { + "id": id, + "remote_id": remote_id, + "created_at": created_at, + "modified_at": modified_at, + "account": account, + "description": description, + "expense_date": expense_date, + "amount": amount, + "currency": currency, + "exchange_rate": exchange_rate, + "is_billable": is_billable, + "tracking_categories": tracking_categories, + "employee": employee, + "project": project, + "company": company, + "contact": contact, + "quantity": quantity, + "unit_price": unit_price, + "non_reimbursable": non_reimbursable, + "tax_amount": tax_amount, + "inclusive_of_tax": inclusive_of_tax, + "tax_rate": tax_rate, + "remote_was_deleted": remote_was_deleted, + "remote_fields": remote_fields + }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of ExpenseReportLine + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLine] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + id = parsed_json["id"] + remote_id = parsed_json["remote_id"] + created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?) + modified_at = (DateTime.parse(parsed_json["modified_at"]) unless parsed_json["modified_at"].nil?) + if parsed_json["account"].nil? + account = nil + else + account = parsed_json["account"].to_json + account = Merge::Accounting::ExpenseReportLineAccount.from_json(json_object: account) + end + description = parsed_json["description"] + expense_date = (DateTime.parse(parsed_json["expense_date"]) unless parsed_json["expense_date"].nil?) + amount = parsed_json["amount"] + currency = parsed_json["currency"] + exchange_rate = parsed_json["exchange_rate"] + is_billable = parsed_json["is_billable"] + tracking_categories = parsed_json["tracking_categories"] + if parsed_json["employee"].nil? + employee = nil + else + employee = parsed_json["employee"].to_json + employee = Merge::Accounting::ExpenseReportLineEmployee.from_json(json_object: employee) + end + if parsed_json["project"].nil? + project = nil + else + project = parsed_json["project"].to_json + project = Merge::Accounting::ExpenseReportLineProject.from_json(json_object: project) + end + if parsed_json["company"].nil? + company = nil + else + company = parsed_json["company"].to_json + company = Merge::Accounting::ExpenseReportLineCompany.from_json(json_object: company) + end + if parsed_json["contact"].nil? + contact = nil + else + contact = parsed_json["contact"].to_json + contact = Merge::Accounting::ExpenseReportLineContact.from_json(json_object: contact) + end + quantity = parsed_json["quantity"] + unit_price = parsed_json["unit_price"] + non_reimbursable = parsed_json["non_reimbursable"] + tax_amount = parsed_json["tax_amount"] + inclusive_of_tax = parsed_json["inclusive_of_tax"] + if parsed_json["tax_rate"].nil? + tax_rate = nil + else + tax_rate = parsed_json["tax_rate"].to_json + tax_rate = Merge::Accounting::ExpenseReportLineTaxRate.from_json(json_object: tax_rate) + end + remote_was_deleted = parsed_json["remote_was_deleted"] + remote_fields = parsed_json["remote_fields"]&.map do |item| + item = item.to_json + Merge::Accounting::RemoteField.from_json(json_object: item) + end + new( + id: id, + remote_id: remote_id, + created_at: created_at, + modified_at: modified_at, + account: account, + description: description, + expense_date: expense_date, + amount: amount, + currency: currency, + exchange_rate: exchange_rate, + is_billable: is_billable, + tracking_categories: tracking_categories, + employee: employee, + project: project, + company: company, + contact: contact, + quantity: quantity, + unit_price: unit_price, + non_reimbursable: non_reimbursable, + tax_amount: tax_amount, + inclusive_of_tax: inclusive_of_tax, + tax_rate: tax_rate, + remote_was_deleted: remote_was_deleted, + remote_fields: remote_fields, + additional_properties: struct + ) + end + + # Serialize an instance of ExpenseReportLine to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.") + obj.remote_id&.is_a?(String) != false || raise("Passed value for field obj.remote_id is not the expected type, validation failed.") + obj.created_at&.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.") + obj.modified_at&.is_a?(DateTime) != false || raise("Passed value for field obj.modified_at is not the expected type, validation failed.") + obj.account.nil? || Merge::Accounting::ExpenseReportLineAccount.validate_raw(obj: obj.account) + obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") + obj.expense_date&.is_a?(DateTime) != false || raise("Passed value for field obj.expense_date is not the expected type, validation failed.") + obj.amount&.is_a?(Float) != false || raise("Passed value for field obj.amount is not the expected type, validation failed.") + obj.currency&.is_a?(Merge::Accounting::TransactionCurrencyEnum) != false || raise("Passed value for field obj.currency is not the expected type, validation failed.") + obj.exchange_rate&.is_a?(String) != false || raise("Passed value for field obj.exchange_rate is not the expected type, validation failed.") + obj.is_billable&.is_a?(Boolean) != false || raise("Passed value for field obj.is_billable is not the expected type, validation failed.") + obj.tracking_categories.is_a?(Array) != false || raise("Passed value for field obj.tracking_categories is not the expected type, validation failed.") + obj.employee.nil? || Merge::Accounting::ExpenseReportLineEmployee.validate_raw(obj: obj.employee) + obj.project.nil? || Merge::Accounting::ExpenseReportLineProject.validate_raw(obj: obj.project) + obj.company.nil? || Merge::Accounting::ExpenseReportLineCompany.validate_raw(obj: obj.company) + obj.contact.nil? || Merge::Accounting::ExpenseReportLineContact.validate_raw(obj: obj.contact) + obj.quantity&.is_a?(Float) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.") + obj.unit_price&.is_a?(Float) != false || raise("Passed value for field obj.unit_price is not the expected type, validation failed.") + obj.non_reimbursable&.is_a?(Boolean) != false || raise("Passed value for field obj.non_reimbursable is not the expected type, validation failed.") + obj.tax_amount&.is_a?(Float) != false || raise("Passed value for field obj.tax_amount is not the expected type, validation failed.") + obj.inclusive_of_tax&.is_a?(Boolean) != false || raise("Passed value for field obj.inclusive_of_tax is not the expected type, validation failed.") + obj.tax_rate.nil? || Merge::Accounting::ExpenseReportLineTaxRate.validate_raw(obj: obj.tax_rate) + obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.") + obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_account.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_account.rb new file mode 100644 index 00000000..e7bff6b2 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_account.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "account" + +module Merge + module Accounting + class ExpenseReportLineAccount + # Deserialize a JSON object to an instance of ExpenseReportLineAccount + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineAccount] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Account.validate_raw(obj: struct) + return Merge::Accounting::Account.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Account.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_company.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_company.rb new file mode 100644 index 00000000..733ecc17 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_company.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +require "json" +require_relative "company_info" + +module Merge + module Accounting + # The subsidiary that the expense report is created in + class ExpenseReportLineCompany + # Deserialize a JSON object to an instance of ExpenseReportLineCompany + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineCompany] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::CompanyInfo.validate_raw(obj: struct) + return Merge::Accounting::CompanyInfo.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::CompanyInfo.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_contact.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_contact.rb new file mode 100644 index 00000000..9c98d583 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_contact.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "contact" + +module Merge + module Accounting + class ExpenseReportLineContact + # Deserialize a JSON object to an instance of ExpenseReportLineContact + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineContact] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Contact.validate_raw(obj: struct) + return Merge::Accounting::Contact.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Contact.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_employee.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_employee.rb new file mode 100644 index 00000000..71fee024 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_employee.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +require "json" +require_relative "employee" + +module Merge + module Accounting + # Identifier for the employee who submitted or is associated with the expense + # report + class ExpenseReportLineEmployee + # Deserialize a JSON object to an instance of ExpenseReportLineEmployee + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineEmployee] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Employee.validate_raw(obj: struct) + return Merge::Accounting::Employee.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Employee.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_project.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_project.rb new file mode 100644 index 00000000..286db6df --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_project.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "project" + +module Merge + module Accounting + class ExpenseReportLineProject + # Deserialize a JSON object to an instance of ExpenseReportLineProject + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineProject] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Project.validate_raw(obj: struct) + return Merge::Accounting::Project.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Project.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request.rb new file mode 100644 index 00000000..7ef22285 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request.rb @@ -0,0 +1,899 @@ +# frozen_string_literal: true + +require_relative "expense_report_line_request_account" +require "date" +require_relative "transaction_currency_enum" +require_relative "expense_report_line_request_employee" +require_relative "expense_report_line_request_project" +require_relative "expense_report_line_request_company" +require_relative "expense_report_line_request_contact" +require_relative "expense_report_line_request_tax_rate" +require_relative "remote_field_request" +require "ostruct" +require "json" + +module Merge + module Accounting + # # The ExpenseReportLine Object + # ### Description + # The `ExpenseReportLine` object represents an individual line item within an + # expense report, containing details about + # a specific expense such as amount, description, and associated metadata. + # ### Usage Example + # Fetch from the `GET ExpenseReport` endpoint and expand the lines field to view + # all line items in the expense report. + class ExpenseReportLineRequest + # @return [String] The third-party API ID of the matching object. + attr_reader :remote_id + # @return [Merge::Accounting::ExpenseReportLineRequestAccount] + attr_reader :account + # @return [String] Description of the individual expense. + attr_reader :description + # @return [DateTime] The date the individual expense was incurred. + attr_reader :expense_date + # @return [Float] The amount of the expense for the line item. + attr_reader :amount + # @return [Merge::Accounting::TransactionCurrencyEnum] Currency of the expense line (if different from the report currency). + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + attr_reader :currency + # @return [String] Exchange rate used if the line item is in a foreign currency. + attr_reader :exchange_rate + # @return [Boolean] Whether the expense line is billable to a client or project. + attr_reader :is_billable + # @return [Array] The related tracking categories associated with the expense report (Department, + # Location, Class, Expense Category) + attr_reader :tracking_categories + # @return [Merge::Accounting::ExpenseReportLineRequestEmployee] Identifier for the employee who submitted or is associated with the expense + # report + attr_reader :employee + # @return [Merge::Accounting::ExpenseReportLineRequestProject] + attr_reader :project + # @return [Merge::Accounting::ExpenseReportLineRequestCompany] The subsidiary that the expense report is created in + attr_reader :company + # @return [Merge::Accounting::ExpenseReportLineRequestContact] + attr_reader :contact + # @return [Float] Quantity for the expense line (e.g., miles driven, items purchased). + attr_reader :quantity + # @return [Float] Price per unit for the expense line (if applicable). + attr_reader :unit_price + # @return [Boolean] Whether the expense line is non-reimbursable (e.g., paid via company card). + attr_reader :non_reimbursable + # @return [Float] Tax amount applicable for the line item. + attr_reader :tax_amount + # @return [Boolean] Whether the amount is inclusive of tax. + attr_reader :inclusive_of_tax + # @return [Merge::Accounting::ExpenseReportLineRequestTaxRate] + attr_reader :tax_rate + # @return [Hash{String => Object}] + attr_reader :integration_params + # @return [Hash{String => Object}] + attr_reader :linked_account_params + # @return [Array] + attr_reader :remote_fields + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param remote_id [String] The third-party API ID of the matching object. + # @param account [Merge::Accounting::ExpenseReportLineRequestAccount] + # @param description [String] Description of the individual expense. + # @param expense_date [DateTime] The date the individual expense was incurred. + # @param amount [Float] The amount of the expense for the line item. + # @param currency [Merge::Accounting::TransactionCurrencyEnum] Currency of the expense line (if different from the report currency). + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + # @param exchange_rate [String] Exchange rate used if the line item is in a foreign currency. + # @param is_billable [Boolean] Whether the expense line is billable to a client or project. + # @param tracking_categories [Array] The related tracking categories associated with the expense report (Department, + # Location, Class, Expense Category) + # @param employee [Merge::Accounting::ExpenseReportLineRequestEmployee] Identifier for the employee who submitted or is associated with the expense + # report + # @param project [Merge::Accounting::ExpenseReportLineRequestProject] + # @param company [Merge::Accounting::ExpenseReportLineRequestCompany] The subsidiary that the expense report is created in + # @param contact [Merge::Accounting::ExpenseReportLineRequestContact] + # @param quantity [Float] Quantity for the expense line (e.g., miles driven, items purchased). + # @param unit_price [Float] Price per unit for the expense line (if applicable). + # @param non_reimbursable [Boolean] Whether the expense line is non-reimbursable (e.g., paid via company card). + # @param tax_amount [Float] Tax amount applicable for the line item. + # @param inclusive_of_tax [Boolean] Whether the amount is inclusive of tax. + # @param tax_rate [Merge::Accounting::ExpenseReportLineRequestTaxRate] + # @param integration_params [Hash{String => Object}] + # @param linked_account_params [Hash{String => Object}] + # @param remote_fields [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::ExpenseReportLineRequest] + def initialize(tracking_categories:, remote_id: OMIT, account: OMIT, description: OMIT, expense_date: OMIT, amount: OMIT, + currency: OMIT, exchange_rate: OMIT, is_billable: OMIT, employee: OMIT, project: OMIT, company: OMIT, contact: OMIT, quantity: OMIT, unit_price: OMIT, non_reimbursable: OMIT, tax_amount: OMIT, inclusive_of_tax: OMIT, tax_rate: OMIT, integration_params: OMIT, linked_account_params: OMIT, remote_fields: OMIT, additional_properties: nil) + @remote_id = remote_id if remote_id != OMIT + @account = account if account != OMIT + @description = description if description != OMIT + @expense_date = expense_date if expense_date != OMIT + @amount = amount if amount != OMIT + @currency = currency if currency != OMIT + @exchange_rate = exchange_rate if exchange_rate != OMIT + @is_billable = is_billable if is_billable != OMIT + @tracking_categories = tracking_categories + @employee = employee if employee != OMIT + @project = project if project != OMIT + @company = company if company != OMIT + @contact = contact if contact != OMIT + @quantity = quantity if quantity != OMIT + @unit_price = unit_price if unit_price != OMIT + @non_reimbursable = non_reimbursable if non_reimbursable != OMIT + @tax_amount = tax_amount if tax_amount != OMIT + @inclusive_of_tax = inclusive_of_tax if inclusive_of_tax != OMIT + @tax_rate = tax_rate if tax_rate != OMIT + @integration_params = integration_params if integration_params != OMIT + @linked_account_params = linked_account_params if linked_account_params != OMIT + @remote_fields = remote_fields if remote_fields != OMIT + @additional_properties = additional_properties + @_field_set = { + "remote_id": remote_id, + "account": account, + "description": description, + "expense_date": expense_date, + "amount": amount, + "currency": currency, + "exchange_rate": exchange_rate, + "is_billable": is_billable, + "tracking_categories": tracking_categories, + "employee": employee, + "project": project, + "company": company, + "contact": contact, + "quantity": quantity, + "unit_price": unit_price, + "non_reimbursable": non_reimbursable, + "tax_amount": tax_amount, + "inclusive_of_tax": inclusive_of_tax, + "tax_rate": tax_rate, + "integration_params": integration_params, + "linked_account_params": linked_account_params, + "remote_fields": remote_fields + }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of ExpenseReportLineRequest + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequest] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + remote_id = parsed_json["remote_id"] + if parsed_json["account"].nil? + account = nil + else + account = parsed_json["account"].to_json + account = Merge::Accounting::ExpenseReportLineRequestAccount.from_json(json_object: account) + end + description = parsed_json["description"] + expense_date = (DateTime.parse(parsed_json["expense_date"]) unless parsed_json["expense_date"].nil?) + amount = parsed_json["amount"] + currency = parsed_json["currency"] + exchange_rate = parsed_json["exchange_rate"] + is_billable = parsed_json["is_billable"] + tracking_categories = parsed_json["tracking_categories"] + if parsed_json["employee"].nil? + employee = nil + else + employee = parsed_json["employee"].to_json + employee = Merge::Accounting::ExpenseReportLineRequestEmployee.from_json(json_object: employee) + end + if parsed_json["project"].nil? + project = nil + else + project = parsed_json["project"].to_json + project = Merge::Accounting::ExpenseReportLineRequestProject.from_json(json_object: project) + end + if parsed_json["company"].nil? + company = nil + else + company = parsed_json["company"].to_json + company = Merge::Accounting::ExpenseReportLineRequestCompany.from_json(json_object: company) + end + if parsed_json["contact"].nil? + contact = nil + else + contact = parsed_json["contact"].to_json + contact = Merge::Accounting::ExpenseReportLineRequestContact.from_json(json_object: contact) + end + quantity = parsed_json["quantity"] + unit_price = parsed_json["unit_price"] + non_reimbursable = parsed_json["non_reimbursable"] + tax_amount = parsed_json["tax_amount"] + inclusive_of_tax = parsed_json["inclusive_of_tax"] + if parsed_json["tax_rate"].nil? + tax_rate = nil + else + tax_rate = parsed_json["tax_rate"].to_json + tax_rate = Merge::Accounting::ExpenseReportLineRequestTaxRate.from_json(json_object: tax_rate) + end + integration_params = parsed_json["integration_params"] + linked_account_params = parsed_json["linked_account_params"] + remote_fields = parsed_json["remote_fields"]&.map do |item| + item = item.to_json + Merge::Accounting::RemoteFieldRequest.from_json(json_object: item) + end + new( + remote_id: remote_id, + account: account, + description: description, + expense_date: expense_date, + amount: amount, + currency: currency, + exchange_rate: exchange_rate, + is_billable: is_billable, + tracking_categories: tracking_categories, + employee: employee, + project: project, + company: company, + contact: contact, + quantity: quantity, + unit_price: unit_price, + non_reimbursable: non_reimbursable, + tax_amount: tax_amount, + inclusive_of_tax: inclusive_of_tax, + tax_rate: tax_rate, + integration_params: integration_params, + linked_account_params: linked_account_params, + remote_fields: remote_fields, + additional_properties: struct + ) + end + + # Serialize an instance of ExpenseReportLineRequest to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.remote_id&.is_a?(String) != false || raise("Passed value for field obj.remote_id is not the expected type, validation failed.") + obj.account.nil? || Merge::Accounting::ExpenseReportLineRequestAccount.validate_raw(obj: obj.account) + obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") + obj.expense_date&.is_a?(DateTime) != false || raise("Passed value for field obj.expense_date is not the expected type, validation failed.") + obj.amount&.is_a?(Float) != false || raise("Passed value for field obj.amount is not the expected type, validation failed.") + obj.currency&.is_a?(Merge::Accounting::TransactionCurrencyEnum) != false || raise("Passed value for field obj.currency is not the expected type, validation failed.") + obj.exchange_rate&.is_a?(String) != false || raise("Passed value for field obj.exchange_rate is not the expected type, validation failed.") + obj.is_billable&.is_a?(Boolean) != false || raise("Passed value for field obj.is_billable is not the expected type, validation failed.") + obj.tracking_categories.is_a?(Array) != false || raise("Passed value for field obj.tracking_categories is not the expected type, validation failed.") + obj.employee.nil? || Merge::Accounting::ExpenseReportLineRequestEmployee.validate_raw(obj: obj.employee) + obj.project.nil? || Merge::Accounting::ExpenseReportLineRequestProject.validate_raw(obj: obj.project) + obj.company.nil? || Merge::Accounting::ExpenseReportLineRequestCompany.validate_raw(obj: obj.company) + obj.contact.nil? || Merge::Accounting::ExpenseReportLineRequestContact.validate_raw(obj: obj.contact) + obj.quantity&.is_a?(Float) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.") + obj.unit_price&.is_a?(Float) != false || raise("Passed value for field obj.unit_price is not the expected type, validation failed.") + obj.non_reimbursable&.is_a?(Boolean) != false || raise("Passed value for field obj.non_reimbursable is not the expected type, validation failed.") + obj.tax_amount&.is_a?(Float) != false || raise("Passed value for field obj.tax_amount is not the expected type, validation failed.") + obj.inclusive_of_tax&.is_a?(Boolean) != false || raise("Passed value for field obj.inclusive_of_tax is not the expected type, validation failed.") + obj.tax_rate.nil? || Merge::Accounting::ExpenseReportLineRequestTaxRate.validate_raw(obj: obj.tax_rate) + obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.") + obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.") + obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request_account.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request_account.rb new file mode 100644 index 00000000..9da7c2b7 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request_account.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "account" + +module Merge + module Accounting + class ExpenseReportLineRequestAccount + # Deserialize a JSON object to an instance of ExpenseReportLineRequestAccount + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequestAccount] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Account.validate_raw(obj: struct) + return Merge::Accounting::Account.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Account.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request_company.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request_company.rb new file mode 100644 index 00000000..f8d30fd4 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request_company.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +require "json" +require_relative "company_info" + +module Merge + module Accounting + # The subsidiary that the expense report is created in + class ExpenseReportLineRequestCompany + # Deserialize a JSON object to an instance of ExpenseReportLineRequestCompany + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequestCompany] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::CompanyInfo.validate_raw(obj: struct) + return Merge::Accounting::CompanyInfo.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::CompanyInfo.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request_contact.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request_contact.rb new file mode 100644 index 00000000..6979ff29 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request_contact.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "contact" + +module Merge + module Accounting + class ExpenseReportLineRequestContact + # Deserialize a JSON object to an instance of ExpenseReportLineRequestContact + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequestContact] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Contact.validate_raw(obj: struct) + return Merge::Accounting::Contact.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Contact.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request_employee.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request_employee.rb new file mode 100644 index 00000000..8824299f --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request_employee.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +require "json" +require_relative "employee" + +module Merge + module Accounting + # Identifier for the employee who submitted or is associated with the expense + # report + class ExpenseReportLineRequestEmployee + # Deserialize a JSON object to an instance of ExpenseReportLineRequestEmployee + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequestEmployee] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Employee.validate_raw(obj: struct) + return Merge::Accounting::Employee.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Employee.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request_project.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request_project.rb new file mode 100644 index 00000000..6131e283 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request_project.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "project" + +module Merge + module Accounting + class ExpenseReportLineRequestProject + # Deserialize a JSON object to an instance of ExpenseReportLineRequestProject + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequestProject] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Project.validate_raw(obj: struct) + return Merge::Accounting::Project.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Project.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_request_tax_rate.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_request_tax_rate.rb new file mode 100644 index 00000000..be93ea57 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_request_tax_rate.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "tax_rate" + +module Merge + module Accounting + class ExpenseReportLineRequestTaxRate + # Deserialize a JSON object to an instance of ExpenseReportLineRequestTaxRate + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineRequestTaxRate] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::TaxRate.validate_raw(obj: struct) + return Merge::Accounting::TaxRate.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::TaxRate.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_line_tax_rate.rb b/lib/merge_ruby_client/accounting/types/expense_report_line_tax_rate.rb new file mode 100644 index 00000000..705f6ce5 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_line_tax_rate.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "tax_rate" + +module Merge + module Accounting + class ExpenseReportLineTaxRate + # Deserialize a JSON object to an instance of ExpenseReportLineTaxRate + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportLineTaxRate] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::TaxRate.validate_raw(obj: struct) + return Merge::Accounting::TaxRate.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::TaxRate.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_request.rb b/lib/merge_ruby_client/accounting/types/expense_report_request.rb new file mode 100644 index 00000000..7c6dc5fc --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_request.rb @@ -0,0 +1,819 @@ +# frozen_string_literal: true + +require "date" +require_relative "expense_report_request_employee" +require_relative "expense_report_status_enum" +require_relative "transaction_currency_enum" +require_relative "expense_report_request_accounting_period" +require_relative "expense_report_request_company" +require_relative "remote_field_request" +require "ostruct" +require "json" + +module Merge + module Accounting + # # The ExpenseReport Object + # ### Description + # The `ExpenseReport` object represents a collection of expenses submitted for + # review and reimbursement. + # It includes details about the submitter, status, amounts, and associated + # metadata. + # ### Usage Example + # Fetch from the `GET ExpenseReport` endpoint to view details of expense reports + # and their line items. + class ExpenseReportRequest + # @return [DateTime] The date of the expense report. + attr_reader :report_date + # @return [String] Human-readable expense report identifier. + attr_reader :report_identifier + # @return [Merge::Accounting::ExpenseReportRequestEmployee] Identifier for the employee who submitted or is associated with the expense + # report + attr_reader :employee + # @return [Merge::Accounting::ExpenseReportStatusEnum] Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, + # REJECTED + # * `DRAFT` - DRAFT + # * `SUBMITTED` - SUBMITTED + # * `APPROVED` - APPROVED + # * `REJECTED` - REJECTED + attr_reader :status + # @return [Float] Total amount of the expense report + attr_reader :total_amount + # @return [Merge::Accounting::TransactionCurrencyEnum] Currency code for the expense report + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + attr_reader :currency + # @return [String] A brief description or purpose for the expense report + attr_reader :description + # @return [Merge::Accounting::ExpenseReportRequestAccountingPeriod] The accounting period the report was posted in + attr_reader :accounting_period + # @return [Merge::Accounting::ExpenseReportRequestCompany] The subsidiary that the expense report is created in + attr_reader :company + # @return [Array] The related tracking categories associated with the expense report + attr_reader :tracking_categories + # @return [Hash{String => Object}] + attr_reader :integration_params + # @return [Hash{String => Object}] + attr_reader :linked_account_params + # @return [Array] + attr_reader :remote_fields + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param report_date [DateTime] The date of the expense report. + # @param report_identifier [String] Human-readable expense report identifier. + # @param employee [Merge::Accounting::ExpenseReportRequestEmployee] Identifier for the employee who submitted or is associated with the expense + # report + # @param status [Merge::Accounting::ExpenseReportStatusEnum] Overall status of the expense report. One of DRAFT, SUBMITTED, APPROVED, + # REJECTED + # * `DRAFT` - DRAFT + # * `SUBMITTED` - SUBMITTED + # * `APPROVED` - APPROVED + # * `REJECTED` - REJECTED + # @param total_amount [Float] Total amount of the expense report + # @param currency [Merge::Accounting::TransactionCurrencyEnum] Currency code for the expense report + # * `XUA` - ADB Unit of Account + # * `AFN` - Afghan Afghani + # * `AFA` - Afghan Afghani (1927–2002) + # * `ALL` - Albanian Lek + # * `ALK` - Albanian Lek (1946–1965) + # * `DZD` - Algerian Dinar + # * `ADP` - Andorran Peseta + # * `AOA` - Angolan Kwanza + # * `AOK` - Angolan Kwanza (1977–1991) + # * `AON` - Angolan New Kwanza (1990–2000) + # * `AOR` - Angolan Readjusted Kwanza (1995–1999) + # * `ARA` - Argentine Austral + # * `ARS` - Argentine Peso + # * `ARM` - Argentine Peso (1881–1970) + # * `ARP` - Argentine Peso (1983–1985) + # * `ARL` - Argentine Peso Ley (1970–1983) + # * `AMD` - Armenian Dram + # * `AWG` - Aruban Florin + # * `AUD` - Australian Dollar + # * `ATS` - Austrian Schilling + # * `AZN` - Azerbaijani Manat + # * `AZM` - Azerbaijani Manat (1993–2006) + # * `BSD` - Bahamian Dollar + # * `BHD` - Bahraini Dinar + # * `BDT` - Bangladeshi Taka + # * `BBD` - Barbadian Dollar + # * `BYN` - Belarusian Ruble + # * `BYB` - Belarusian Ruble (1994–1999) + # * `BYR` - Belarusian Ruble (2000–2016) + # * `BEF` - Belgian Franc + # * `BEC` - Belgian Franc (convertible) + # * `BEL` - Belgian Franc (financial) + # * `BZD` - Belize Dollar + # * `BMD` - Bermudan Dollar + # * `BTN` - Bhutanese Ngultrum + # * `BOB` - Bolivian Boliviano + # * `BOL` - Bolivian Boliviano (1863–1963) + # * `BOV` - Bolivian Mvdol + # * `BOP` - Bolivian Peso + # * `BAM` - Bosnia-Herzegovina Convertible Mark + # * `BAD` - Bosnia-Herzegovina Dinar (1992–1994) + # * `BAN` - Bosnia-Herzegovina New Dinar (1994–1997) + # * `BWP` - Botswanan Pula + # * `BRC` - Brazilian Cruzado (1986–1989) + # * `BRZ` - Brazilian Cruzeiro (1942–1967) + # * `BRE` - Brazilian Cruzeiro (1990–1993) + # * `BRR` - Brazilian Cruzeiro (1993–1994) + # * `BRN` - Brazilian New Cruzado (1989–1990) + # * `BRB` - Brazilian New Cruzeiro (1967–1986) + # * `BRL` - Brazilian Real + # * `GBP` - British Pound + # * `BND` - Brunei Dollar + # * `BGL` - Bulgarian Hard Lev + # * `BGN` - Bulgarian Lev + # * `BGO` - Bulgarian Lev (1879–1952) + # * `BGM` - Bulgarian Socialist Lev + # * `BUK` - Burmese Kyat + # * `BIF` - Burundian Franc + # * `XPF` - CFP Franc + # * `KHR` - Cambodian Riel + # * `CAD` - Canadian Dollar + # * `CVE` - Cape Verdean Escudo + # * `KYD` - Cayman Islands Dollar + # * `XAF` - Central African CFA Franc + # * `CLE` - Chilean Escudo + # * `CLP` - Chilean Peso + # * `CLF` - Chilean Unit of Account (UF) + # * `CNX` - Chinese People’s Bank Dollar + # * `CNY` - Chinese Yuan + # * `CNH` - Chinese Yuan (offshore) + # * `COP` - Colombian Peso + # * `COU` - Colombian Real Value Unit + # * `KMF` - Comorian Franc + # * `CDF` - Congolese Franc + # * `CRC` - Costa Rican Colón + # * `HRD` - Croatian Dinar + # * `HRK` - Croatian Kuna + # * `CUC` - Cuban Convertible Peso + # * `CUP` - Cuban Peso + # * `CYP` - Cypriot Pound + # * `CZK` - Czech Koruna + # * `CSK` - Czechoslovak Hard Koruna + # * `DKK` - Danish Krone + # * `DJF` - Djiboutian Franc + # * `DOP` - Dominican Peso + # * `NLG` - Dutch Guilder + # * `XCD` - East Caribbean Dollar + # * `DDM` - East German Mark + # * `ECS` - Ecuadorian Sucre + # * `ECV` - Ecuadorian Unit of Constant Value + # * `EGP` - Egyptian Pound + # * `GQE` - Equatorial Guinean Ekwele + # * `ERN` - Eritrean Nakfa + # * `EEK` - Estonian Kroon + # * `ETB` - Ethiopian Birr + # * `EUR` - Euro + # * `XBA` - European Composite Unit + # * `XEU` - European Currency Unit + # * `XBB` - European Monetary Unit + # * `XBC` - European Unit of Account (XBC) + # * `XBD` - European Unit of Account (XBD) + # * `FKP` - Falkland Islands Pound + # * `FJD` - Fijian Dollar + # * `FIM` - Finnish Markka + # * `FRF` - French Franc + # * `XFO` - French Gold Franc + # * `XFU` - French UIC-Franc + # * `GMD` - Gambian Dalasi + # * `GEK` - Georgian Kupon Larit + # * `GEL` - Georgian Lari + # * `DEM` - German Mark + # * `GHS` - Ghanaian Cedi + # * `GHC` - Ghanaian Cedi (1979–2007) + # * `GIP` - Gibraltar Pound + # * `XAU` - Gold + # * `GRD` - Greek Drachma + # * `GTQ` - Guatemalan Quetzal + # * `GWP` - Guinea-Bissau Peso + # * `GNF` - Guinean Franc + # * `GNS` - Guinean Syli + # * `GYD` - Guyanaese Dollar + # * `HTG` - Haitian Gourde + # * `HNL` - Honduran Lempira + # * `HKD` - Hong Kong Dollar + # * `HUF` - Hungarian Forint + # * `IMP` - IMP + # * `ISK` - Icelandic Króna + # * `ISJ` - Icelandic Króna (1918–1981) + # * `INR` - Indian Rupee + # * `IDR` - Indonesian Rupiah + # * `IRR` - Iranian Rial + # * `IQD` - Iraqi Dinar + # * `IEP` - Irish Pound + # * `ILS` - Israeli New Shekel + # * `ILP` - Israeli Pound + # * `ILR` - Israeli Shekel (1980–1985) + # * `ITL` - Italian Lira + # * `JMD` - Jamaican Dollar + # * `JPY` - Japanese Yen + # * `JOD` - Jordanian Dinar + # * `KZT` - Kazakhstani Tenge + # * `KES` - Kenyan Shilling + # * `KWD` - Kuwaiti Dinar + # * `KGS` - Kyrgystani Som + # * `LAK` - Laotian Kip + # * `LVL` - Latvian Lats + # * `LVR` - Latvian Ruble + # * `LBP` - Lebanese Pound + # * `LSL` - Lesotho Loti + # * `LRD` - Liberian Dollar + # * `LYD` - Libyan Dinar + # * `LTL` - Lithuanian Litas + # * `LTT` - Lithuanian Talonas + # * `LUL` - Luxembourg Financial Franc + # * `LUC` - Luxembourgian Convertible Franc + # * `LUF` - Luxembourgian Franc + # * `MOP` - Macanese Pataca + # * `MKD` - Macedonian Denar + # * `MKN` - Macedonian Denar (1992–1993) + # * `MGA` - Malagasy Ariary + # * `MGF` - Malagasy Franc + # * `MWK` - Malawian Kwacha + # * `MYR` - Malaysian Ringgit + # * `MVR` - Maldivian Rufiyaa + # * `MVP` - Maldivian Rupee (1947–1981) + # * `MLF` - Malian Franc + # * `MTL` - Maltese Lira + # * `MTP` - Maltese Pound + # * `MRU` - Mauritanian Ouguiya + # * `MRO` - Mauritanian Ouguiya (1973–2017) + # * `MUR` - Mauritian Rupee + # * `MXV` - Mexican Investment Unit + # * `MXN` - Mexican Peso + # * `MXP` - Mexican Silver Peso (1861–1992) + # * `MDC` - Moldovan Cupon + # * `MDL` - Moldovan Leu + # * `MCF` - Monegasque Franc + # * `MNT` - Mongolian Tugrik + # * `MAD` - Moroccan Dirham + # * `MAF` - Moroccan Franc + # * `MZE` - Mozambican Escudo + # * `MZN` - Mozambican Metical + # * `MZM` - Mozambican Metical (1980–2006) + # * `MMK` - Myanmar Kyat + # * `NAD` - Namibian Dollar + # * `NPR` - Nepalese Rupee + # * `ANG` - Netherlands Antillean Guilder + # * `TWD` - New Taiwan Dollar + # * `NZD` - New Zealand Dollar + # * `NIO` - Nicaraguan Córdoba + # * `NIC` - Nicaraguan Córdoba (1988–1991) + # * `NGN` - Nigerian Naira + # * `KPW` - North Korean Won + # * `NOK` - Norwegian Krone + # * `OMR` - Omani Rial + # * `PKR` - Pakistani Rupee + # * `XPD` - Palladium + # * `PAB` - Panamanian Balboa + # * `PGK` - Papua New Guinean Kina + # * `PYG` - Paraguayan Guarani + # * `PEI` - Peruvian Inti + # * `PEN` - Peruvian Sol + # * `PES` - Peruvian Sol (1863–1965) + # * `PHP` - Philippine Peso + # * `XPT` - Platinum + # * `PLN` - Polish Zloty + # * `PLZ` - Polish Zloty (1950–1995) + # * `PTE` - Portuguese Escudo + # * `GWE` - Portuguese Guinea Escudo + # * `QAR` - Qatari Rial + # * `XRE` - RINET Funds + # * `RHD` - Rhodesian Dollar + # * `RON` - Romanian Leu + # * `ROL` - Romanian Leu (1952–2006) + # * `RUB` - Russian Ruble + # * `RUR` - Russian Ruble (1991–1998) + # * `RWF` - Rwandan Franc + # * `SVC` - Salvadoran Colón + # * `WST` - Samoan Tala + # * `SAR` - Saudi Riyal + # * `RSD` - Serbian Dinar + # * `CSD` - Serbian Dinar (2002–2006) + # * `SCR` - Seychellois Rupee + # * `SLL` - Sierra Leonean Leone + # * `XAG` - Silver + # * `SGD` - Singapore Dollar + # * `SKK` - Slovak Koruna + # * `SIT` - Slovenian Tolar + # * `SBD` - Solomon Islands Dollar + # * `SOS` - Somali Shilling + # * `ZAR` - South African Rand + # * `ZAL` - South African Rand (financial) + # * `KRH` - South Korean Hwan (1953–1962) + # * `KRW` - South Korean Won + # * `KRO` - South Korean Won (1945–1953) + # * `SSP` - South Sudanese Pound + # * `SUR` - Soviet Rouble + # * `ESP` - Spanish Peseta + # * `ESA` - Spanish Peseta (A account) + # * `ESB` - Spanish Peseta (convertible account) + # * `XDR` - Special Drawing Rights + # * `LKR` - Sri Lankan Rupee + # * `SHP` - St. Helena Pound + # * `XSU` - Sucre + # * `SDD` - Sudanese Dinar (1992–2007) + # * `SDG` - Sudanese Pound + # * `SDP` - Sudanese Pound (1957–1998) + # * `SRD` - Surinamese Dollar + # * `SRG` - Surinamese Guilder + # * `SZL` - Swazi Lilangeni + # * `SEK` - Swedish Krona + # * `CHF` - Swiss Franc + # * `SYP` - Syrian Pound + # * `STN` - São Tomé & Príncipe Dobra + # * `STD` - São Tomé & Príncipe Dobra (1977–2017) + # * `TVD` - TVD + # * `TJR` - Tajikistani Ruble + # * `TJS` - Tajikistani Somoni + # * `TZS` - Tanzanian Shilling + # * `XTS` - Testing Currency Code + # * `THB` - Thai Baht + # * `XXX` - The codes assigned for transactions where no currency is involved + # * `TPE` - Timorese Escudo + # * `TOP` - Tongan Paʻanga + # * `TTD` - Trinidad & Tobago Dollar + # * `TND` - Tunisian Dinar + # * `TRY` - Turkish Lira + # * `TRL` - Turkish Lira (1922–2005) + # * `TMT` - Turkmenistani Manat + # * `TMM` - Turkmenistani Manat (1993–2009) + # * `USD` - US Dollar + # * `USN` - US Dollar (Next day) + # * `USS` - US Dollar (Same day) + # * `UGX` - Ugandan Shilling + # * `UGS` - Ugandan Shilling (1966–1987) + # * `UAH` - Ukrainian Hryvnia + # * `UAK` - Ukrainian Karbovanets + # * `AED` - United Arab Emirates Dirham + # * `UYW` - Uruguayan Nominal Wage Index Unit + # * `UYU` - Uruguayan Peso + # * `UYP` - Uruguayan Peso (1975–1993) + # * `UYI` - Uruguayan Peso (Indexed Units) + # * `UZS` - Uzbekistani Som + # * `VUV` - Vanuatu Vatu + # * `VES` - Venezuelan Bolívar + # * `VEB` - Venezuelan Bolívar (1871–2008) + # * `VEF` - Venezuelan Bolívar (2008–2018) + # * `VND` - Vietnamese Dong + # * `VNN` - Vietnamese Dong (1978–1985) + # * `CHE` - WIR Euro + # * `CHW` - WIR Franc + # * `XOF` - West African CFA Franc + # * `YDD` - Yemeni Dinar + # * `YER` - Yemeni Rial + # * `YUN` - Yugoslavian Convertible Dinar (1990–1992) + # * `YUD` - Yugoslavian Hard Dinar (1966–1990) + # * `YUM` - Yugoslavian New Dinar (1994–2002) + # * `YUR` - Yugoslavian Reformed Dinar (1992–1993) + # * `ZWN` - ZWN + # * `ZRN` - Zairean New Zaire (1993–1998) + # * `ZRZ` - Zairean Zaire (1971–1993) + # * `ZMW` - Zambian Kwacha + # * `ZMK` - Zambian Kwacha (1968–2012) + # * `ZWD` - Zimbabwean Dollar (1980–2008) + # * `ZWR` - Zimbabwean Dollar (2008) + # * `ZWL` - Zimbabwean Dollar (2009) + # @param description [String] A brief description or purpose for the expense report + # @param accounting_period [Merge::Accounting::ExpenseReportRequestAccountingPeriod] The accounting period the report was posted in + # @param company [Merge::Accounting::ExpenseReportRequestCompany] The subsidiary that the expense report is created in + # @param tracking_categories [Array] The related tracking categories associated with the expense report + # @param integration_params [Hash{String => Object}] + # @param linked_account_params [Hash{String => Object}] + # @param remote_fields [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::ExpenseReportRequest] + def initialize(tracking_categories:, report_date: OMIT, report_identifier: OMIT, employee: OMIT, status: OMIT, total_amount: OMIT, + currency: OMIT, description: OMIT, accounting_period: OMIT, company: OMIT, integration_params: OMIT, linked_account_params: OMIT, remote_fields: OMIT, additional_properties: nil) + @report_date = report_date if report_date != OMIT + @report_identifier = report_identifier if report_identifier != OMIT + @employee = employee if employee != OMIT + @status = status if status != OMIT + @total_amount = total_amount if total_amount != OMIT + @currency = currency if currency != OMIT + @description = description if description != OMIT + @accounting_period = accounting_period if accounting_period != OMIT + @company = company if company != OMIT + @tracking_categories = tracking_categories + @integration_params = integration_params if integration_params != OMIT + @linked_account_params = linked_account_params if linked_account_params != OMIT + @remote_fields = remote_fields if remote_fields != OMIT + @additional_properties = additional_properties + @_field_set = { + "report_date": report_date, + "report_identifier": report_identifier, + "employee": employee, + "status": status, + "total_amount": total_amount, + "currency": currency, + "description": description, + "accounting_period": accounting_period, + "company": company, + "tracking_categories": tracking_categories, + "integration_params": integration_params, + "linked_account_params": linked_account_params, + "remote_fields": remote_fields + }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of ExpenseReportRequest + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportRequest] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + report_date = (DateTime.parse(parsed_json["report_date"]) unless parsed_json["report_date"].nil?) + report_identifier = parsed_json["report_identifier"] + if parsed_json["employee"].nil? + employee = nil + else + employee = parsed_json["employee"].to_json + employee = Merge::Accounting::ExpenseReportRequestEmployee.from_json(json_object: employee) + end + status = parsed_json["status"] + total_amount = parsed_json["total_amount"] + currency = parsed_json["currency"] + description = parsed_json["description"] + if parsed_json["accounting_period"].nil? + accounting_period = nil + else + accounting_period = parsed_json["accounting_period"].to_json + accounting_period = Merge::Accounting::ExpenseReportRequestAccountingPeriod.from_json(json_object: accounting_period) + end + if parsed_json["company"].nil? + company = nil + else + company = parsed_json["company"].to_json + company = Merge::Accounting::ExpenseReportRequestCompany.from_json(json_object: company) + end + tracking_categories = parsed_json["tracking_categories"] + integration_params = parsed_json["integration_params"] + linked_account_params = parsed_json["linked_account_params"] + remote_fields = parsed_json["remote_fields"]&.map do |item| + item = item.to_json + Merge::Accounting::RemoteFieldRequest.from_json(json_object: item) + end + new( + report_date: report_date, + report_identifier: report_identifier, + employee: employee, + status: status, + total_amount: total_amount, + currency: currency, + description: description, + accounting_period: accounting_period, + company: company, + tracking_categories: tracking_categories, + integration_params: integration_params, + linked_account_params: linked_account_params, + remote_fields: remote_fields, + additional_properties: struct + ) + end + + # Serialize an instance of ExpenseReportRequest to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.report_date&.is_a?(DateTime) != false || raise("Passed value for field obj.report_date is not the expected type, validation failed.") + obj.report_identifier&.is_a?(String) != false || raise("Passed value for field obj.report_identifier is not the expected type, validation failed.") + obj.employee.nil? || Merge::Accounting::ExpenseReportRequestEmployee.validate_raw(obj: obj.employee) + obj.status&.is_a?(Merge::Accounting::ExpenseReportStatusEnum) != false || raise("Passed value for field obj.status is not the expected type, validation failed.") + obj.total_amount&.is_a?(Float) != false || raise("Passed value for field obj.total_amount is not the expected type, validation failed.") + obj.currency&.is_a?(Merge::Accounting::TransactionCurrencyEnum) != false || raise("Passed value for field obj.currency is not the expected type, validation failed.") + obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") + obj.accounting_period.nil? || Merge::Accounting::ExpenseReportRequestAccountingPeriod.validate_raw(obj: obj.accounting_period) + obj.company.nil? || Merge::Accounting::ExpenseReportRequestCompany.validate_raw(obj: obj.company) + obj.tracking_categories.is_a?(Array) != false || raise("Passed value for field obj.tracking_categories is not the expected type, validation failed.") + obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.") + obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.") + obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_request_accounting_period.rb b/lib/merge_ruby_client/accounting/types/expense_report_request_accounting_period.rb new file mode 100644 index 00000000..3c0fe4ed --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_request_accounting_period.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +require "json" +require_relative "accounting_period" + +module Merge + module Accounting + # The accounting period the report was posted in + class ExpenseReportRequestAccountingPeriod + # Deserialize a JSON object to an instance of ExpenseReportRequestAccountingPeriod + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportRequestAccountingPeriod] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::AccountingPeriod.validate_raw(obj: struct) + return Merge::Accounting::AccountingPeriod.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::AccountingPeriod.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_request_company.rb b/lib/merge_ruby_client/accounting/types/expense_report_request_company.rb new file mode 100644 index 00000000..6bf78148 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_request_company.rb @@ -0,0 +1,56 @@ +# frozen_string_literal: true + +require "json" +require_relative "company_info" + +module Merge + module Accounting + # The subsidiary that the expense report is created in + class ExpenseReportRequestCompany + # Deserialize a JSON object to an instance of ExpenseReportRequestCompany + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportRequestCompany] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::CompanyInfo.validate_raw(obj: struct) + return Merge::Accounting::CompanyInfo.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::CompanyInfo.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_request_employee.rb b/lib/merge_ruby_client/accounting/types/expense_report_request_employee.rb new file mode 100644 index 00000000..2b5c0916 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_request_employee.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +require "json" +require_relative "employee" + +module Merge + module Accounting + # Identifier for the employee who submitted or is associated with the expense + # report + class ExpenseReportRequestEmployee + # Deserialize a JSON object to an instance of ExpenseReportRequestEmployee + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportRequestEmployee] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Employee.validate_raw(obj: struct) + return Merge::Accounting::Employee.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Employee.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_response.rb b/lib/merge_ruby_client/accounting/types/expense_report_response.rb new file mode 100644 index 00000000..04d3a1d8 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_response.rb @@ -0,0 +1,101 @@ +# frozen_string_literal: true + +require_relative "expense_report" +require_relative "warning_validation_problem" +require_relative "error_validation_problem" +require_relative "debug_mode_log" +require "ostruct" +require "json" + +module Merge + module Accounting + class ExpenseReportResponse + # @return [Merge::Accounting::ExpenseReport] + attr_reader :model + # @return [Array] + attr_reader :warnings + # @return [Array] + attr_reader :errors + # @return [Array] + attr_reader :logs + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param model [Merge::Accounting::ExpenseReport] + # @param warnings [Array] + # @param errors [Array] + # @param logs [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::ExpenseReportResponse] + def initialize(model:, warnings:, errors:, logs: OMIT, additional_properties: nil) + @model = model + @warnings = warnings + @errors = errors + @logs = logs if logs != OMIT + @additional_properties = additional_properties + @_field_set = { "model": model, "warnings": warnings, "errors": errors, "logs": logs }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of ExpenseReportResponse + # + # @param json_object [String] + # @return [Merge::Accounting::ExpenseReportResponse] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + if parsed_json["model"].nil? + model = nil + else + model = parsed_json["model"].to_json + model = Merge::Accounting::ExpenseReport.from_json(json_object: model) + end + warnings = parsed_json["warnings"]&.map do |item| + item = item.to_json + Merge::Accounting::WarningValidationProblem.from_json(json_object: item) + end + errors = parsed_json["errors"]&.map do |item| + item = item.to_json + Merge::Accounting::ErrorValidationProblem.from_json(json_object: item) + end + logs = parsed_json["logs"]&.map do |item| + item = item.to_json + Merge::Accounting::DebugModeLog.from_json(json_object: item) + end + new( + model: model, + warnings: warnings, + errors: errors, + logs: logs, + additional_properties: struct + ) + end + + # Serialize an instance of ExpenseReportResponse to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + Merge::Accounting::ExpenseReport.validate_raw(obj: obj.model) + obj.warnings.is_a?(Array) != false || raise("Passed value for field obj.warnings is not the expected type, validation failed.") + obj.errors.is_a?(Array) != false || raise("Passed value for field obj.errors is not the expected type, validation failed.") + obj.logs&.is_a?(Array) != false || raise("Passed value for field obj.logs is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/expense_report_status_enum.rb b/lib/merge_ruby_client/accounting/types/expense_report_status_enum.rb new file mode 100644 index 00000000..8dd69e69 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/expense_report_status_enum.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Merge + module Accounting + # * `DRAFT` - DRAFT + # * `SUBMITTED` - SUBMITTED + # * `APPROVED` - APPROVED + # * `REJECTED` - REJECTED + class ExpenseReportStatusEnum + DRAFT = "DRAFT" + SUBMITTED = "SUBMITTED" + APPROVED = "APPROVED" + REJECTED = "REJECTED" + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb b/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb index 31f8b4c1..b5879d76 100644 --- a/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb +++ b/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb @@ -28,6 +28,8 @@ class ExternalTargetFieldApiResponse # @return [Array] attr_reader :purchase_order # @return [Array] + attr_reader :expense_report + # @return [Array] attr_reader :tracking_category # @return [Array] attr_reader :journal_entry @@ -75,6 +77,7 @@ class ExternalTargetFieldApiResponse # @param credit_note [Array] # @param item [Array] # @param purchase_order [Array] + # @param expense_report [Array] # @param tracking_category [Array] # @param journal_entry [Array] # @param tax_rate [Array] @@ -93,7 +96,7 @@ class ExternalTargetFieldApiResponse # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Accounting::ExternalTargetFieldApiResponse] def initialize(account: OMIT, accounting_attachment: OMIT, balance_sheet: OMIT, cash_flow_statement: OMIT, - company_info: OMIT, contact: OMIT, income_statement: OMIT, credit_note: OMIT, item: OMIT, purchase_order: OMIT, tracking_category: OMIT, journal_entry: OMIT, tax_rate: OMIT, invoice: OMIT, payment: OMIT, expense: OMIT, vendor_credit: OMIT, transaction: OMIT, accounting_period: OMIT, general_ledger_transaction: OMIT, bank_feed_account: OMIT, employee: OMIT, payment_method: OMIT, project: OMIT, payment_term: OMIT, additional_properties: nil) + company_info: OMIT, contact: OMIT, income_statement: OMIT, credit_note: OMIT, item: OMIT, purchase_order: OMIT, expense_report: OMIT, tracking_category: OMIT, journal_entry: OMIT, tax_rate: OMIT, invoice: OMIT, payment: OMIT, expense: OMIT, vendor_credit: OMIT, transaction: OMIT, accounting_period: OMIT, general_ledger_transaction: OMIT, bank_feed_account: OMIT, employee: OMIT, payment_method: OMIT, project: OMIT, payment_term: OMIT, additional_properties: nil) @account = account if account != OMIT @accounting_attachment = accounting_attachment if accounting_attachment != OMIT @balance_sheet = balance_sheet if balance_sheet != OMIT @@ -104,6 +107,7 @@ def initialize(account: OMIT, accounting_attachment: OMIT, balance_sheet: OMIT, @credit_note = credit_note if credit_note != OMIT @item = item if item != OMIT @purchase_order = purchase_order if purchase_order != OMIT + @expense_report = expense_report if expense_report != OMIT @tracking_category = tracking_category if tracking_category != OMIT @journal_entry = journal_entry if journal_entry != OMIT @tax_rate = tax_rate if tax_rate != OMIT @@ -131,6 +135,7 @@ def initialize(account: OMIT, accounting_attachment: OMIT, balance_sheet: OMIT, "CreditNote": credit_note, "Item": item, "PurchaseOrder": purchase_order, + "ExpenseReport": expense_report, "TrackingCategory": tracking_category, "JournalEntry": journal_entry, "TaxRate": tax_rate, @@ -198,6 +203,10 @@ def self.from_json(json_object:) item = item.to_json Merge::Accounting::ExternalTargetFieldApi.from_json(json_object: item) end + expense_report = parsed_json["ExpenseReport"]&.map do |item| + item = item.to_json + Merge::Accounting::ExternalTargetFieldApi.from_json(json_object: item) + end tracking_category = parsed_json["TrackingCategory"]&.map do |item| item = item.to_json Merge::Accounting::ExternalTargetFieldApi.from_json(json_object: item) @@ -269,6 +278,7 @@ def self.from_json(json_object:) credit_note: credit_note, item: item, purchase_order: purchase_order, + expense_report: expense_report, tracking_category: tracking_category, journal_entry: journal_entry, tax_rate: tax_rate, @@ -312,6 +322,7 @@ def self.validate_raw(obj:) obj.credit_note&.is_a?(Array) != false || raise("Passed value for field obj.credit_note is not the expected type, validation failed.") obj.item&.is_a?(Array) != false || raise("Passed value for field obj.item is not the expected type, validation failed.") obj.purchase_order&.is_a?(Array) != false || raise("Passed value for field obj.purchase_order is not the expected type, validation failed.") + obj.expense_report&.is_a?(Array) != false || raise("Passed value for field obj.expense_report is not the expected type, validation failed.") obj.tracking_category&.is_a?(Array) != false || raise("Passed value for field obj.tracking_category is not the expected type, validation failed.") obj.journal_entry&.is_a?(Array) != false || raise("Passed value for field obj.journal_entry is not the expected type, validation failed.") obj.tax_rate&.is_a?(Array) != false || raise("Passed value for field obj.tax_rate is not the expected type, validation failed.") diff --git a/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb b/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb index 0200eace..a5bca031 100644 --- a/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb +++ b/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb @@ -28,6 +28,8 @@ class FieldMappingApiInstanceResponse # @return [Array] attr_reader :purchase_order # @return [Array] + attr_reader :expense_report + # @return [Array] attr_reader :tracking_category # @return [Array] attr_reader :journal_entry @@ -75,6 +77,7 @@ class FieldMappingApiInstanceResponse # @param credit_note [Array] # @param item [Array] # @param purchase_order [Array] + # @param expense_report [Array] # @param tracking_category [Array] # @param journal_entry [Array] # @param tax_rate [Array] @@ -93,7 +96,7 @@ class FieldMappingApiInstanceResponse # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Accounting::FieldMappingApiInstanceResponse] def initialize(account: OMIT, accounting_attachment: OMIT, balance_sheet: OMIT, cash_flow_statement: OMIT, - company_info: OMIT, contact: OMIT, income_statement: OMIT, credit_note: OMIT, item: OMIT, purchase_order: OMIT, tracking_category: OMIT, journal_entry: OMIT, tax_rate: OMIT, invoice: OMIT, payment: OMIT, expense: OMIT, vendor_credit: OMIT, transaction: OMIT, accounting_period: OMIT, general_ledger_transaction: OMIT, bank_feed_account: OMIT, employee: OMIT, payment_method: OMIT, project: OMIT, payment_term: OMIT, additional_properties: nil) + company_info: OMIT, contact: OMIT, income_statement: OMIT, credit_note: OMIT, item: OMIT, purchase_order: OMIT, expense_report: OMIT, tracking_category: OMIT, journal_entry: OMIT, tax_rate: OMIT, invoice: OMIT, payment: OMIT, expense: OMIT, vendor_credit: OMIT, transaction: OMIT, accounting_period: OMIT, general_ledger_transaction: OMIT, bank_feed_account: OMIT, employee: OMIT, payment_method: OMIT, project: OMIT, payment_term: OMIT, additional_properties: nil) @account = account if account != OMIT @accounting_attachment = accounting_attachment if accounting_attachment != OMIT @balance_sheet = balance_sheet if balance_sheet != OMIT @@ -104,6 +107,7 @@ def initialize(account: OMIT, accounting_attachment: OMIT, balance_sheet: OMIT, @credit_note = credit_note if credit_note != OMIT @item = item if item != OMIT @purchase_order = purchase_order if purchase_order != OMIT + @expense_report = expense_report if expense_report != OMIT @tracking_category = tracking_category if tracking_category != OMIT @journal_entry = journal_entry if journal_entry != OMIT @tax_rate = tax_rate if tax_rate != OMIT @@ -131,6 +135,7 @@ def initialize(account: OMIT, accounting_attachment: OMIT, balance_sheet: OMIT, "CreditNote": credit_note, "Item": item, "PurchaseOrder": purchase_order, + "ExpenseReport": expense_report, "TrackingCategory": tracking_category, "JournalEntry": journal_entry, "TaxRate": tax_rate, @@ -198,6 +203,10 @@ def self.from_json(json_object:) item = item.to_json Merge::Accounting::FieldMappingApiInstance.from_json(json_object: item) end + expense_report = parsed_json["ExpenseReport"]&.map do |item| + item = item.to_json + Merge::Accounting::FieldMappingApiInstance.from_json(json_object: item) + end tracking_category = parsed_json["TrackingCategory"]&.map do |item| item = item.to_json Merge::Accounting::FieldMappingApiInstance.from_json(json_object: item) @@ -269,6 +278,7 @@ def self.from_json(json_object:) credit_note: credit_note, item: item, purchase_order: purchase_order, + expense_report: expense_report, tracking_category: tracking_category, journal_entry: journal_entry, tax_rate: tax_rate, @@ -312,6 +322,7 @@ def self.validate_raw(obj:) obj.credit_note&.is_a?(Array) != false || raise("Passed value for field obj.credit_note is not the expected type, validation failed.") obj.item&.is_a?(Array) != false || raise("Passed value for field obj.item is not the expected type, validation failed.") obj.purchase_order&.is_a?(Array) != false || raise("Passed value for field obj.purchase_order is not the expected type, validation failed.") + obj.expense_report&.is_a?(Array) != false || raise("Passed value for field obj.expense_report is not the expected type, validation failed.") obj.tracking_category&.is_a?(Array) != false || raise("Passed value for field obj.tracking_category is not the expected type, validation failed.") obj.journal_entry&.is_a?(Array) != false || raise("Passed value for field obj.journal_entry is not the expected type, validation failed.") obj.tax_rate&.is_a?(Array) != false || raise("Passed value for field obj.tax_rate is not the expected type, validation failed.") diff --git a/lib/merge_ruby_client/accounting/types/item.rb b/lib/merge_ruby_client/accounting/types/item.rb index eaab5bdd..dab47782 100644 --- a/lib/merge_ruby_client/accounting/types/item.rb +++ b/lib/merge_ruby_client/accounting/types/item.rb @@ -2,6 +2,7 @@ require "date" require_relative "status_7_d_1_enum" +require_relative "type_2_bb_enum" require_relative "item_purchase_account" require_relative "item_sales_account" require_relative "item_company" @@ -33,6 +34,12 @@ class Item # * `ACTIVE` - ACTIVE # * `ARCHIVED` - ARCHIVED attr_reader :status + # @return [Merge::Accounting::Type2BbEnum] The item's type. + # * `INVENTORY` - INVENTORY + # * `NON_INVENTORY` - NON_INVENTORY + # * `SERVICE` - SERVICE + # * `UNKNOWN` - UNKNOWN + attr_reader :type # @return [Float] The item's unit price. attr_reader :unit_price # @return [Float] The price at which the item is purchased from a vendor. @@ -74,6 +81,11 @@ class Item # @param status [Merge::Accounting::Status7D1Enum] The item's status. # * `ACTIVE` - ACTIVE # * `ARCHIVED` - ARCHIVED + # @param type [Merge::Accounting::Type2BbEnum] The item's type. + # * `INVENTORY` - INVENTORY + # * `NON_INVENTORY` - NON_INVENTORY + # * `SERVICE` - SERVICE + # * `UNKNOWN` - UNKNOWN # @param unit_price [Float] The item's unit price. # @param purchase_price [Float] The price at which the item is purchased from a vendor. # @param purchase_account [Merge::Accounting::ItemPurchaseAccount] References the default account used to record a purchase of the item. @@ -91,13 +103,14 @@ class Item # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Accounting::Item] def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, name: OMIT, status: OMIT, - unit_price: OMIT, purchase_price: OMIT, purchase_account: OMIT, sales_account: OMIT, company: OMIT, purchase_tax_rate: OMIT, sales_tax_rate: OMIT, remote_updated_at: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil) + type: OMIT, unit_price: OMIT, purchase_price: OMIT, purchase_account: OMIT, sales_account: OMIT, company: OMIT, purchase_tax_rate: OMIT, sales_tax_rate: OMIT, remote_updated_at: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil) @id = id if id != OMIT @remote_id = remote_id if remote_id != OMIT @created_at = created_at if created_at != OMIT @modified_at = modified_at if modified_at != OMIT @name = name if name != OMIT @status = status if status != OMIT + @type = type if type != OMIT @unit_price = unit_price if unit_price != OMIT @purchase_price = purchase_price if purchase_price != OMIT @purchase_account = purchase_account if purchase_account != OMIT @@ -117,6 +130,7 @@ def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, n "modified_at": modified_at, "name": name, "status": status, + "type": type, "unit_price": unit_price, "purchase_price": purchase_price, "purchase_account": purchase_account, @@ -146,6 +160,7 @@ def self.from_json(json_object:) modified_at = (DateTime.parse(parsed_json["modified_at"]) unless parsed_json["modified_at"].nil?) name = parsed_json["name"] status = parsed_json["status"] + type = parsed_json["type"] unit_price = parsed_json["unit_price"] purchase_price = parsed_json["purchase_price"] if parsed_json["purchase_account"].nil? @@ -194,6 +209,7 @@ def self.from_json(json_object:) modified_at: modified_at, name: name, status: status, + type: type, unit_price: unit_price, purchase_price: purchase_price, purchase_account: purchase_account, @@ -229,6 +245,7 @@ def self.validate_raw(obj:) obj.modified_at&.is_a?(DateTime) != false || raise("Passed value for field obj.modified_at is not the expected type, validation failed.") obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.") obj.status&.is_a?(Merge::Accounting::Status7D1Enum) != false || raise("Passed value for field obj.status is not the expected type, validation failed.") + obj.type&.is_a?(Merge::Accounting::Type2BbEnum) != false || raise("Passed value for field obj.type is not the expected type, validation failed.") obj.unit_price&.is_a?(Float) != false || raise("Passed value for field obj.unit_price is not the expected type, validation failed.") obj.purchase_price&.is_a?(Float) != false || raise("Passed value for field obj.purchase_price is not the expected type, validation failed.") obj.purchase_account.nil? || Merge::Accounting::ItemPurchaseAccount.validate_raw(obj: obj.purchase_account) diff --git a/lib/merge_ruby_client/accounting/types/paginated_expense_report_line_list.rb b/lib/merge_ruby_client/accounting/types/paginated_expense_report_line_list.rb new file mode 100644 index 00000000..41152dca --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/paginated_expense_report_line_list.rb @@ -0,0 +1,80 @@ +# frozen_string_literal: true + +require_relative "expense_report_line" +require "ostruct" +require "json" + +module Merge + module Accounting + class PaginatedExpenseReportLineList + # @return [String] + attr_reader :next_ + # @return [String] + attr_reader :previous + # @return [Array] + attr_reader :results + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param next_ [String] + # @param previous [String] + # @param results [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::PaginatedExpenseReportLineList] + def initialize(next_: OMIT, previous: OMIT, results: OMIT, additional_properties: nil) + @next_ = next_ if next_ != OMIT + @previous = previous if previous != OMIT + @results = results if results != OMIT + @additional_properties = additional_properties + @_field_set = { "next": next_, "previous": previous, "results": results }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of PaginatedExpenseReportLineList + # + # @param json_object [String] + # @return [Merge::Accounting::PaginatedExpenseReportLineList] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + next_ = parsed_json["next"] + previous = parsed_json["previous"] + results = parsed_json["results"]&.map do |item| + item = item.to_json + Merge::Accounting::ExpenseReportLine.from_json(json_object: item) + end + new( + next_: next_, + previous: previous, + results: results, + additional_properties: struct + ) + end + + # Serialize an instance of PaginatedExpenseReportLineList to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.next_&.is_a?(String) != false || raise("Passed value for field obj.next_ is not the expected type, validation failed.") + obj.previous&.is_a?(String) != false || raise("Passed value for field obj.previous is not the expected type, validation failed.") + obj.results&.is_a?(Array) != false || raise("Passed value for field obj.results is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/paginated_expense_report_list.rb b/lib/merge_ruby_client/accounting/types/paginated_expense_report_list.rb new file mode 100644 index 00000000..439632c9 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/paginated_expense_report_list.rb @@ -0,0 +1,80 @@ +# frozen_string_literal: true + +require_relative "expense_report" +require "ostruct" +require "json" + +module Merge + module Accounting + class PaginatedExpenseReportList + # @return [String] + attr_reader :next_ + # @return [String] + attr_reader :previous + # @return [Array] + attr_reader :results + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param next_ [String] + # @param previous [String] + # @param results [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::PaginatedExpenseReportList] + def initialize(next_: OMIT, previous: OMIT, results: OMIT, additional_properties: nil) + @next_ = next_ if next_ != OMIT + @previous = previous if previous != OMIT + @results = results if results != OMIT + @additional_properties = additional_properties + @_field_set = { "next": next_, "previous": previous, "results": results }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of PaginatedExpenseReportList + # + # @param json_object [String] + # @return [Merge::Accounting::PaginatedExpenseReportList] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + next_ = parsed_json["next"] + previous = parsed_json["previous"] + results = parsed_json["results"]&.map do |item| + item = item.to_json + Merge::Accounting::ExpenseReport.from_json(json_object: item) + end + new( + next_: next_, + previous: previous, + results: results, + additional_properties: struct + ) + end + + # Serialize an instance of PaginatedExpenseReportList to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.next_&.is_a?(String) != false || raise("Passed value for field obj.next_ is not the expected type, validation failed.") + obj.previous&.is_a?(String) != false || raise("Passed value for field obj.previous is not the expected type, validation failed.") + obj.results&.is_a?(Array) != false || raise("Passed value for field obj.results is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/patched_contact_request.rb b/lib/merge_ruby_client/accounting/types/patched_contact_request.rb new file mode 100644 index 00000000..cf24e0ca --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/patched_contact_request.rb @@ -0,0 +1,188 @@ +# frozen_string_literal: true + +require_relative "status_7_d_1_enum" +require_relative "patched_contact_request_addresses_item" +require_relative "accounting_phone_number_request" +require_relative "remote_field_request" +require "ostruct" +require "json" + +module Merge + module Accounting + # # The Contact Object + # ### Description + # A `Contact` is an individual or business entity to which products and services + # are sold to or purchased from. The `Contact` model contains both Customers, in + # which products and services are sold to, and Vendors (or Suppliers), in which + # products and services are purchased from. + # * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true. + # * A `Contact` is a customer if the `is_customer` property is true. + # ### Usage Example + # Fetch from the `LIST Contacts` endpoint and view a company's contacts. + class PatchedContactRequest + # @return [String] The contact's name. + attr_reader :name + # @return [Boolean] Whether the contact is a supplier. + attr_reader :is_supplier + # @return [Boolean] Whether the contact is a customer. + attr_reader :is_customer + # @return [String] The contact's email address. + attr_reader :email_address + # @return [String] The contact's tax number. + attr_reader :tax_number + # @return [Merge::Accounting::Status7D1Enum] The contact's status + # * `ACTIVE` - ACTIVE + # * `ARCHIVED` - ARCHIVED + attr_reader :status + # @return [String] The currency the contact's transactions are in. + attr_reader :currency + # @return [String] The company the contact belongs to. + attr_reader :company + # @return [Array] `Address` object IDs for the given `Contacts` object. + attr_reader :addresses + # @return [Array] `AccountingPhoneNumber` object for the given `Contacts` object. + attr_reader :phone_numbers + # @return [Hash{String => Object}] + attr_reader :integration_params + # @return [Hash{String => Object}] + attr_reader :linked_account_params + # @return [Array] + attr_reader :remote_fields + # @return [OpenStruct] Additional properties unmapped to the current class definition + attr_reader :additional_properties + # @return [Object] + attr_reader :_field_set + protected :_field_set + + OMIT = Object.new + + # @param name [String] The contact's name. + # @param is_supplier [Boolean] Whether the contact is a supplier. + # @param is_customer [Boolean] Whether the contact is a customer. + # @param email_address [String] The contact's email address. + # @param tax_number [String] The contact's tax number. + # @param status [Merge::Accounting::Status7D1Enum] The contact's status + # * `ACTIVE` - ACTIVE + # * `ARCHIVED` - ARCHIVED + # @param currency [String] The currency the contact's transactions are in. + # @param company [String] The company the contact belongs to. + # @param addresses [Array] `Address` object IDs for the given `Contacts` object. + # @param phone_numbers [Array] `AccountingPhoneNumber` object for the given `Contacts` object. + # @param integration_params [Hash{String => Object}] + # @param linked_account_params [Hash{String => Object}] + # @param remote_fields [Array] + # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition + # @return [Merge::Accounting::PatchedContactRequest] + def initialize(name: OMIT, is_supplier: OMIT, is_customer: OMIT, email_address: OMIT, tax_number: OMIT, + status: OMIT, currency: OMIT, company: OMIT, addresses: OMIT, phone_numbers: OMIT, integration_params: OMIT, linked_account_params: OMIT, remote_fields: OMIT, additional_properties: nil) + @name = name if name != OMIT + @is_supplier = is_supplier if is_supplier != OMIT + @is_customer = is_customer if is_customer != OMIT + @email_address = email_address if email_address != OMIT + @tax_number = tax_number if tax_number != OMIT + @status = status if status != OMIT + @currency = currency if currency != OMIT + @company = company if company != OMIT + @addresses = addresses if addresses != OMIT + @phone_numbers = phone_numbers if phone_numbers != OMIT + @integration_params = integration_params if integration_params != OMIT + @linked_account_params = linked_account_params if linked_account_params != OMIT + @remote_fields = remote_fields if remote_fields != OMIT + @additional_properties = additional_properties + @_field_set = { + "name": name, + "is_supplier": is_supplier, + "is_customer": is_customer, + "email_address": email_address, + "tax_number": tax_number, + "status": status, + "currency": currency, + "company": company, + "addresses": addresses, + "phone_numbers": phone_numbers, + "integration_params": integration_params, + "linked_account_params": linked_account_params, + "remote_fields": remote_fields + }.reject do |_k, v| + v == OMIT + end + end + + # Deserialize a JSON object to an instance of PatchedContactRequest + # + # @param json_object [String] + # @return [Merge::Accounting::PatchedContactRequest] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + parsed_json = JSON.parse(json_object) + name = parsed_json["name"] + is_supplier = parsed_json["is_supplier"] + is_customer = parsed_json["is_customer"] + email_address = parsed_json["email_address"] + tax_number = parsed_json["tax_number"] + status = parsed_json["status"] + currency = parsed_json["currency"] + company = parsed_json["company"] + addresses = parsed_json["addresses"]&.map do |item| + item = item.to_json + Merge::Accounting::PatchedContactRequestAddressesItem.from_json(json_object: item) + end + phone_numbers = parsed_json["phone_numbers"]&.map do |item| + item = item.to_json + Merge::Accounting::AccountingPhoneNumberRequest.from_json(json_object: item) + end + integration_params = parsed_json["integration_params"] + linked_account_params = parsed_json["linked_account_params"] + remote_fields = parsed_json["remote_fields"]&.map do |item| + item = item.to_json + Merge::Accounting::RemoteFieldRequest.from_json(json_object: item) + end + new( + name: name, + is_supplier: is_supplier, + is_customer: is_customer, + email_address: email_address, + tax_number: tax_number, + status: status, + currency: currency, + company: company, + addresses: addresses, + phone_numbers: phone_numbers, + integration_params: integration_params, + linked_account_params: linked_account_params, + remote_fields: remote_fields, + additional_properties: struct + ) + end + + # Serialize an instance of PatchedContactRequest to a JSON object + # + # @return [String] + def to_json(*_args) + @_field_set&.to_json + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.") + obj.is_supplier&.is_a?(Boolean) != false || raise("Passed value for field obj.is_supplier is not the expected type, validation failed.") + obj.is_customer&.is_a?(Boolean) != false || raise("Passed value for field obj.is_customer is not the expected type, validation failed.") + obj.email_address&.is_a?(String) != false || raise("Passed value for field obj.email_address is not the expected type, validation failed.") + obj.tax_number&.is_a?(String) != false || raise("Passed value for field obj.tax_number is not the expected type, validation failed.") + obj.status&.is_a?(Merge::Accounting::Status7D1Enum) != false || raise("Passed value for field obj.status is not the expected type, validation failed.") + obj.currency&.is_a?(String) != false || raise("Passed value for field obj.currency is not the expected type, validation failed.") + obj.company&.is_a?(String) != false || raise("Passed value for field obj.company is not the expected type, validation failed.") + obj.addresses&.is_a?(Array) != false || raise("Passed value for field obj.addresses is not the expected type, validation failed.") + obj.phone_numbers&.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.") + obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.") + obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.") + obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/patched_contact_request_addresses_item.rb b/lib/merge_ruby_client/accounting/types/patched_contact_request_addresses_item.rb new file mode 100644 index 00000000..8cd1e1a3 --- /dev/null +++ b/lib/merge_ruby_client/accounting/types/patched_contact_request_addresses_item.rb @@ -0,0 +1,55 @@ +# frozen_string_literal: true + +require "json" +require_relative "address" + +module Merge + module Accounting + class PatchedContactRequestAddressesItem + # Deserialize a JSON object to an instance of PatchedContactRequestAddressesItem + # + # @param json_object [String] + # @return [Merge::Accounting::PatchedContactRequestAddressesItem] + def self.from_json(json_object:) + struct = JSON.parse(json_object, object_class: OpenStruct) + begin + struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.") + return struct unless struct.nil? + + return nil + rescue StandardError + # noop + end + begin + Merge::Accounting::Address.validate_raw(obj: struct) + return Merge::Accounting::Address.from_json(json_object: struct) unless struct.nil? + + return nil + rescue StandardError + # noop + end + struct + end + + # Leveraged for Union-type generation, validate_raw attempts to parse the given + # hash and check each fields type against the current object's property + # definitions. + # + # @param obj [Object] + # @return [Void] + def self.validate_raw(obj:) + begin + return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.") + rescue StandardError + # noop + end + begin + return Merge::Accounting::Address.validate_raw(obj: obj) + rescue StandardError + # noop + end + raise("Passed value matched no type within the union, validation failed.") + end + end + end +end diff --git a/lib/merge_ruby_client/accounting/types/remote_field_class.rb b/lib/merge_ruby_client/accounting/types/remote_field_class.rb index a7baaa3e..8459d5df 100644 --- a/lib/merge_ruby_client/accounting/types/remote_field_class.rb +++ b/lib/merge_ruby_client/accounting/types/remote_field_class.rb @@ -20,6 +20,8 @@ class RemoteFieldClass # @return [Boolean] attr_reader :is_custom # @return [Boolean] + attr_reader :is_common_model_field + # @return [Boolean] attr_reader :is_required # @return [Merge::Accounting::FieldTypeEnum] attr_reader :field_type @@ -42,6 +44,7 @@ class RemoteFieldClass # @param remote_key_name [String] # @param description [String] # @param is_custom [Boolean] + # @param is_common_model_field [Boolean] # @param is_required [Boolean] # @param field_type [Merge::Accounting::FieldTypeEnum] # @param field_format [Merge::Accounting::FieldFormatEnum] @@ -50,12 +53,13 @@ class RemoteFieldClass # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Accounting::RemoteFieldClass] def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: OMIT, is_custom: OMIT, - is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil) + is_common_model_field: OMIT, is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil) @id = id if id != OMIT @display_name = display_name if display_name != OMIT @remote_key_name = remote_key_name if remote_key_name != OMIT @description = description if description != OMIT @is_custom = is_custom if is_custom != OMIT + @is_common_model_field = is_common_model_field if is_common_model_field != OMIT @is_required = is_required if is_required != OMIT @field_type = field_type if field_type != OMIT @field_format = field_format if field_format != OMIT @@ -68,6 +72,7 @@ def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: "remote_key_name": remote_key_name, "description": description, "is_custom": is_custom, + "is_common_model_field": is_common_model_field, "is_required": is_required, "field_type": field_type, "field_format": field_format, @@ -90,6 +95,7 @@ def self.from_json(json_object:) remote_key_name = parsed_json["remote_key_name"] description = parsed_json["description"] is_custom = parsed_json["is_custom"] + is_common_model_field = parsed_json["is_common_model_field"] is_required = parsed_json["is_required"] field_type = parsed_json["field_type"] field_format = parsed_json["field_format"] @@ -106,6 +112,7 @@ def self.from_json(json_object:) remote_key_name: remote_key_name, description: description, is_custom: is_custom, + is_common_model_field: is_common_model_field, is_required: is_required, field_type: field_type, field_format: field_format, @@ -134,6 +141,7 @@ def self.validate_raw(obj:) obj.remote_key_name&.is_a?(String) != false || raise("Passed value for field obj.remote_key_name is not the expected type, validation failed.") obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") obj.is_custom&.is_a?(Boolean) != false || raise("Passed value for field obj.is_custom is not the expected type, validation failed.") + obj.is_common_model_field&.is_a?(Boolean) != false || raise("Passed value for field obj.is_common_model_field is not the expected type, validation failed.") obj.is_required&.is_a?(Boolean) != false || raise("Passed value for field obj.is_required is not the expected type, validation failed.") obj.field_type&.is_a?(Merge::Accounting::FieldTypeEnum) != false || raise("Passed value for field obj.field_type is not the expected type, validation failed.") obj.field_format&.is_a?(Merge::Accounting::FieldFormatEnum) != false || raise("Passed value for field obj.field_format is not the expected type, validation failed.") diff --git a/lib/merge_ruby_client/accounting/vendor_credits/client.rb b/lib/merge_ruby_client/accounting/vendor_credits/client.rb index 4ae0dd6a..26c47bb9 100644 --- a/lib/merge_ruby_client/accounting/vendor_credits/client.rb +++ b/lib/merge_ruby_client/accounting/vendor_credits/client.rb @@ -54,7 +54,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.vendor_credits.list + # api.accounting.vendor_credits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -255,7 +255,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.accounting.vendor_credits.list + # api.accounting.vendor_credits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/activities/client.rb b/lib/merge_ruby_client/ats/activities/client.rb index 2d1f3f78..91b8b9bd 100644 --- a/lib/merge_ruby_client/ats/activities/client.rb +++ b/lib/merge_ruby_client/ats/activities/client.rb @@ -58,7 +58,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.activities.list + # api.ats.activities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, 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, user_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -268,7 +268,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.activities.list + # api.ats.activities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, 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, user_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/applications/client.rb b/lib/merge_ruby_client/ats/applications/client.rb index 774398d2..f242d841 100644 --- a/lib/merge_ruby_client/ats/applications/client.rb +++ b/lib/merge_ruby_client/ats/applications/client.rb @@ -57,7 +57,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.applications.list + # api.ats.applications.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(candidate_id: nil, created_after: nil, created_before: nil, credited_to_id: nil, current_stage_id: nil, 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) response = @request_client.conn.get do |req| @@ -319,7 +319,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.applications.list + # api.ats.applications.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(candidate_id: nil, created_after: nil, created_before: nil, credited_to_id: nil, current_stage_id: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/attachments/client.rb b/lib/merge_ruby_client/ats/attachments/client.rb index 4df301dd..9cab1eaa 100644 --- a/lib/merge_ruby_client/ats/attachments/client.rb +++ b/lib/merge_ruby_client/ats/attachments/client.rb @@ -54,7 +54,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.attachments.list + # api.ats.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -262,7 +262,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.attachments.list + # api.ats.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/audit_trail/client.rb b/lib/merge_ruby_client/ats/audit_trail/client.rb index 502ac0b0..80abedee 100644 --- a/lib/merge_ruby_client/ats/audit_trail/client.rb +++ b/lib/merge_ruby_client/ats/audit_trail/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.audit_trail.list + # api.ats.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -144,7 +144,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.audit_trail.list + # api.ats.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/candidates/client.rb b/lib/merge_ruby_client/ats/candidates/client.rb index 5b55b6cc..ecf694e9 100644 --- a/lib/merge_ruby_client/ats/candidates/client.rb +++ b/lib/merge_ruby_client/ats/candidates/client.rb @@ -59,7 +59,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.candidates.list + # api.ats.candidates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -403,7 +403,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.candidates.list + # api.ats.candidates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/departments/client.rb b/lib/merge_ruby_client/ats/departments/client.rb index fbd538a7..bd18e5dc 100644 --- a/lib/merge_ruby_client/ats/departments/client.rb +++ b/lib/merge_ruby_client/ats/departments/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.departments.list + # api.ats.departments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.departments.list + # api.ats.departments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/eeocs/client.rb b/lib/merge_ruby_client/ats/eeocs/client.rb index 7c277ca5..414fc204 100644 --- a/lib/merge_ruby_client/ats/eeocs/client.rb +++ b/lib/merge_ruby_client/ats/eeocs/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.eeocs.list + # api.ats.eeocs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -185,7 +185,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.eeocs.list + # api.ats.eeocs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/interviews/client.rb b/lib/merge_ruby_client/ats/interviews/client.rb index 9462001e..774498b4 100644 --- a/lib/merge_ruby_client/ats/interviews/client.rb +++ b/lib/merge_ruby_client/ats/interviews/client.rb @@ -59,7 +59,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.interviews.list + # api.ats.interviews.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -277,7 +277,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.interviews.list + # api.ats.interviews.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/issues/client.rb b/lib/merge_ruby_client/ats/issues/client.rb index 41c51b58..0243ea7a 100644 --- a/lib/merge_ruby_client/ats/issues/client.rb +++ b/lib/merge_ruby_client/ats/issues/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.issues.list + # api.ats.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -166,7 +166,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.issues.list + # api.ats.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/job_interview_stages/client.rb b/lib/merge_ruby_client/ats/job_interview_stages/client.rb index 6ea1f732..27817805 100644 --- a/lib/merge_ruby_client/ats/job_interview_stages/client.rb +++ b/lib/merge_ruby_client/ats/job_interview_stages/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.job_interview_stages.list + # api.ats.job_interview_stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, 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, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -164,7 +164,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.job_interview_stages.list + # api.ats.job_interview_stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, 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, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/job_postings/client.rb b/lib/merge_ruby_client/ats/job_postings/client.rb index b4fd97f5..0d445a4f 100644 --- a/lib/merge_ruby_client/ats/job_postings/client.rb +++ b/lib/merge_ruby_client/ats/job_postings/client.rb @@ -54,7 +54,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.job_postings.list + # api.ats.job_postings.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, 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) response = @request_client.conn.get do |req| @@ -177,7 +177,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.job_postings.list + # api.ats.job_postings.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/jobs/client.rb b/lib/merge_ruby_client/ats/jobs/client.rb index e97123cf..f2b3cbe9 100644 --- a/lib/merge_ruby_client/ats/jobs/client.rb +++ b/lib/merge_ruby_client/ats/jobs/client.rb @@ -65,7 +65,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.jobs.list + # api.ats.jobs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(code: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, offices: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -176,7 +176,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_shell_data: nil # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.jobs.screening_questions_list(job_id: "job_id") + # api.ats.jobs.screening_questions_list(job_id: "job_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def screening_questions_list(job_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -258,7 +258,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.jobs.list + # api.ats.jobs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(code: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, offices: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil) Async do @@ -373,7 +373,7 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_shell_data: nil # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.jobs.screening_questions_list(job_id: "job_id") + # api.ats.jobs.screening_questions_list(job_id: "job_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def screening_questions_list(job_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/linked_accounts/client.rb b/lib/merge_ruby_client/ats/linked_accounts/client.rb index 1bdf3b62..8f3eaa78 100644 --- a/lib/merge_ruby_client/ats/linked_accounts/client.rb +++ b/lib/merge_ruby_client/ats/linked_accounts/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.linked_accounts.list + # api.ats.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -142,7 +142,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.linked_accounts.list + # api.ats.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/offers/client.rb b/lib/merge_ruby_client/ats/offers/client.rb index 0c60b42b..6b9b94c9 100644 --- a/lib/merge_ruby_client/ats/offers/client.rb +++ b/lib/merge_ruby_client/ats/offers/client.rb @@ -54,7 +54,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.offers.list + # api.ats.offers.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(application_id: nil, created_after: nil, created_before: nil, creator_id: nil, cursor: nil, expand: nil, 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) response = @request_client.conn.get do |req| @@ -186,7 +186,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.offers.list + # api.ats.offers.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(application_id: nil, created_after: nil, created_before: nil, creator_id: nil, cursor: nil, expand: nil, 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) Async do diff --git a/lib/merge_ruby_client/ats/offices/client.rb b/lib/merge_ruby_client/ats/offices/client.rb index 5bd389cc..8070caa3 100644 --- a/lib/merge_ruby_client/ats/offices/client.rb +++ b/lib/merge_ruby_client/ats/offices/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.offices.list + # api.ats.offices.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.offices.list + # api.ats.offices.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/reject_reasons/client.rb b/lib/merge_ruby_client/ats/reject_reasons/client.rb index 7c5dd1ee..bb234ec2 100644 --- a/lib/merge_ruby_client/ats/reject_reasons/client.rb +++ b/lib/merge_ruby_client/ats/reject_reasons/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.reject_reasons.list + # api.ats.reject_reasons.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.reject_reasons.list + # api.ats.reject_reasons.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/scorecards/client.rb b/lib/merge_ruby_client/ats/scorecards/client.rb index 5955edc4..f5867601 100644 --- a/lib/merge_ruby_client/ats/scorecards/client.rb +++ b/lib/merge_ruby_client/ats/scorecards/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.scorecards.list + # api.ats.scorecards.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, interview_id: nil, interviewer_id: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -189,7 +189,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.scorecards.list + # api.ats.scorecards.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, interview_id: nil, interviewer_id: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/sync_status/client.rb b/lib/merge_ruby_client/ats/sync_status/client.rb index 991328f2..a85bbe73 100644 --- a/lib/merge_ruby_client/ats/sync_status/client.rb +++ b/lib/merge_ruby_client/ats/sync_status/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.sync_status.list + # api.ats.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -93,7 +93,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.sync_status.list + # api.ats.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| diff --git a/lib/merge_ruby_client/ats/tags/client.rb b/lib/merge_ruby_client/ats/tags/client.rb index 7275e1da..e31a9762 100644 --- a/lib/merge_ruby_client/ats/tags/client.rb +++ b/lib/merge_ruby_client/ats/tags/client.rb @@ -43,7 +43,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.tags.list + # api.ats.tags.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -113,7 +113,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.tags.list + # api.ats.tags.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ats/types/event_type_enum.rb b/lib/merge_ruby_client/ats/types/event_type_enum.rb index a7ad65d4..02456dd9 100644 --- a/lib/merge_ruby_client/ats/types/event_type_enum.rb +++ b/lib/merge_ruby_client/ats/types/event_type_enum.rb @@ -62,6 +62,7 @@ class EventTypeEnum CREATED_TEST_API_KEY = "CREATED_TEST_API_KEY" DELETED_TEST_API_KEY = "DELETED_TEST_API_KEY" REGENERATED_PRODUCTION_API_KEY = "REGENERATED_PRODUCTION_API_KEY" + REGENERATED_WEBHOOK_SIGNATURE = "REGENERATED_WEBHOOK_SIGNATURE" INVITED_USER = "INVITED_USER" TWO_FACTOR_AUTH_ENABLED = "TWO_FACTOR_AUTH_ENABLED" TWO_FACTOR_AUTH_DISABLED = "TWO_FACTOR_AUTH_DISABLED" diff --git a/lib/merge_ruby_client/ats/users/client.rb b/lib/merge_ruby_client/ats/users/client.rb index fd091022..a07d968b 100644 --- a/lib/merge_ruby_client/ats/users/client.rb +++ b/lib/merge_ruby_client/ats/users/client.rb @@ -49,7 +49,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.users.list + # api.ats.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email: nil, 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) response = @request_client.conn.get do |req| @@ -173,7 +173,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ats.users.list + # api.ats.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email: nil, 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) Async do diff --git a/lib/merge_ruby_client/crm/accounts/client.rb b/lib/merge_ruby_client/crm/accounts/client.rb index 2f20d0c1..264e662f 100644 --- a/lib/merge_ruby_client/crm/accounts/client.rb +++ b/lib/merge_ruby_client/crm/accounts/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.accounts.list + # api.crm.accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, owner_id: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -321,7 +321,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.accounts.remote_field_classes_list + # api.crm.accounts.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -395,7 +395,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.accounts.list + # api.crm.accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, owner_id: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -673,7 +673,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.accounts.remote_field_classes_list + # api.crm.accounts.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/association_types/client.rb b/lib/merge_ruby_client/crm/association_types/client.rb index 8ae0051e..d0b8e2b1 100644 --- a/lib/merge_ruby_client/crm/association_types/client.rb +++ b/lib/merge_ruby_client/crm/association_types/client.rb @@ -50,7 +50,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.association_types.custom_object_classes_association_types_list(custom_object_class_id: "custom_object_class_id") + # api.crm.association_types.custom_object_classes_association_types_list(custom_object_class_id: "custom_object_class_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def custom_object_classes_association_types_list(custom_object_class_id:, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -246,7 +246,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.association_types.custom_object_classes_association_types_list(custom_object_class_id: "custom_object_class_id") + # api.crm.association_types.custom_object_classes_association_types_list(custom_object_class_id: "custom_object_class_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def custom_object_classes_association_types_list(custom_object_class_id:, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/associations/client.rb b/lib/merge_ruby_client/crm/associations/client.rb index 1b1ebf8b..e49603c1 100644 --- a/lib/merge_ruby_client/crm/associations/client.rb +++ b/lib/merge_ruby_client/crm/associations/client.rb @@ -49,7 +49,11 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.associations.custom_object_classes_custom_objects_associations_list(custom_object_class_id: "custom_object_class_id", object_id: "object_id") + # api.crm.associations.custom_object_classes_custom_objects_associations_list( + # custom_object_class_id: "custom_object_class_id", + # object_id: "object_id", + # cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" + # ) def custom_object_classes_custom_objects_associations_list(custom_object_class_id:, object_id:, association_type_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -175,7 +179,11 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.associations.custom_object_classes_custom_objects_associations_list(custom_object_class_id: "custom_object_class_id", object_id: "object_id") + # api.crm.associations.custom_object_classes_custom_objects_associations_list( + # custom_object_class_id: "custom_object_class_id", + # object_id: "object_id", + # cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" + # ) def custom_object_classes_custom_objects_associations_list(custom_object_class_id:, object_id:, association_type_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/audit_trail/client.rb b/lib/merge_ruby_client/crm/audit_trail/client.rb index 67cf831d..d33b0599 100644 --- a/lib/merge_ruby_client/crm/audit_trail/client.rb +++ b/lib/merge_ruby_client/crm/audit_trail/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.audit_trail.list + # api.crm.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -144,7 +144,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.audit_trail.list + # api.crm.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/contacts/client.rb b/lib/merge_ruby_client/crm/contacts/client.rb index 9433ae8b..3f7c3ae0 100644 --- a/lib/merge_ruby_client/crm/contacts/client.rb +++ b/lib/merge_ruby_client/crm/contacts/client.rb @@ -61,7 +61,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.contacts.list + # api.crm.contacts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, phone_numbers: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -364,7 +364,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.contacts.remote_field_classes_list + # api.crm.contacts.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -441,7 +441,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.contacts.list + # api.crm.contacts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, phone_numbers: nil, remote_id: nil, request_options: nil) Async do @@ -758,7 +758,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.contacts.remote_field_classes_list + # api.crm.contacts.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/custom_object_classes/client.rb b/lib/merge_ruby_client/crm/custom_object_classes/client.rb index e2b1fb56..04449c51 100644 --- a/lib/merge_ruby_client/crm/custom_object_classes/client.rb +++ b/lib/merge_ruby_client/crm/custom_object_classes/client.rb @@ -46,7 +46,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.custom_object_classes.list + # api.crm.custom_object_classes.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -161,7 +161,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.custom_object_classes.list + # api.crm.custom_object_classes.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/custom_objects/client.rb b/lib/merge_ruby_client/crm/custom_objects/client.rb index 75110011..7acfec8b 100644 --- a/lib/merge_ruby_client/crm/custom_objects/client.rb +++ b/lib/merge_ruby_client/crm/custom_objects/client.rb @@ -51,7 +51,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.custom_objects.custom_object_classes_custom_objects_list(custom_object_class_id: "custom_object_class_id") + # api.crm.custom_objects.custom_object_classes_custom_objects_list(custom_object_class_id: "custom_object_class_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def custom_object_classes_custom_objects_list(custom_object_class_id:, created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -227,7 +227,7 @@ def custom_object_classes_custom_objects_meta_post_retrieve(custom_object_class_ # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list + # api.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def custom_object_classes_custom_objects_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -298,7 +298,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.custom_objects.custom_object_classes_custom_objects_list(custom_object_class_id: "custom_object_class_id") + # api.crm.custom_objects.custom_object_classes_custom_objects_list(custom_object_class_id: "custom_object_class_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def custom_object_classes_custom_objects_list(custom_object_class_id:, created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -482,7 +482,7 @@ def custom_object_classes_custom_objects_meta_post_retrieve(custom_object_class_ # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list + # api.crm.custom_objects.custom_object_classes_custom_objects_remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def custom_object_classes_custom_objects_remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/engagement_types/client.rb b/lib/merge_ruby_client/crm/engagement_types/client.rb index 51d24126..a35d991a 100644 --- a/lib/merge_ruby_client/crm/engagement_types/client.rb +++ b/lib/merge_ruby_client/crm/engagement_types/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagement_types.list + # api.crm.engagement_types.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -149,7 +149,7 @@ def retrieve(id:, include_remote_data: nil, include_remote_fields: nil, include_ # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagement_types.remote_field_classes_list + # api.crm.engagement_types.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -219,7 +219,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagement_types.list + # api.crm.engagement_types.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -325,7 +325,7 @@ def retrieve(id:, include_remote_data: nil, include_remote_fields: nil, include_ # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagement_types.remote_field_classes_list + # api.crm.engagement_types.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/engagements/client.rb b/lib/merge_ruby_client/crm/engagements/client.rb index 83d368ea..f54e3587 100644 --- a/lib/merge_ruby_client/crm/engagements/client.rb +++ b/lib/merge_ruby_client/crm/engagements/client.rb @@ -57,7 +57,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagements.list + # api.crm.engagements.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, started_after: nil, started_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -325,7 +325,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagements.remote_field_classes_list + # api.crm.engagements.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -399,7 +399,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagements.list + # api.crm.engagements.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, started_after: nil, started_before: nil, request_options: nil) Async do @@ -679,7 +679,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.engagements.remote_field_classes_list + # api.crm.engagements.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/issues/client.rb b/lib/merge_ruby_client/crm/issues/client.rb index 74e416ad..538c0560 100644 --- a/lib/merge_ruby_client/crm/issues/client.rb +++ b/lib/merge_ruby_client/crm/issues/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.issues.list + # api.crm.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -166,7 +166,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.issues.list + # api.crm.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/crm/leads/client.rb b/lib/merge_ruby_client/crm/leads/client.rb index 28409b9d..684ebb95 100644 --- a/lib/merge_ruby_client/crm/leads/client.rb +++ b/lib/merge_ruby_client/crm/leads/client.rb @@ -61,7 +61,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.leads.list + # api.crm.leads.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(converted_account_id: nil, converted_contact_id: nil, created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, owner_id: nil, page_size: nil, phone_numbers: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -254,7 +254,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.leads.remote_field_classes_list + # api.crm.leads.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -333,7 +333,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.leads.list + # api.crm.leads.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(converted_account_id: nil, converted_contact_id: nil, created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, owner_id: nil, page_size: nil, phone_numbers: nil, remote_id: nil, request_options: nil) Async do @@ -534,7 +534,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.leads.remote_field_classes_list + # api.crm.leads.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/linked_accounts/client.rb b/lib/merge_ruby_client/crm/linked_accounts/client.rb index 21d040a0..1ec32086 100644 --- a/lib/merge_ruby_client/crm/linked_accounts/client.rb +++ b/lib/merge_ruby_client/crm/linked_accounts/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.linked_accounts.list + # api.crm.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -142,7 +142,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.linked_accounts.list + # api.crm.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/crm/notes/client.rb b/lib/merge_ruby_client/crm/notes/client.rb index 6a149782..75121b2e 100644 --- a/lib/merge_ruby_client/crm/notes/client.rb +++ b/lib/merge_ruby_client/crm/notes/client.rb @@ -58,7 +58,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.notes.list + # api.crm.notes.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, opportunity_id: nil, owner_id: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -243,7 +243,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.notes.remote_field_classes_list + # api.crm.notes.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -319,7 +319,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.notes.list + # api.crm.notes.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, contact_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, opportunity_id: nil, owner_id: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -512,7 +512,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.notes.remote_field_classes_list + # api.crm.notes.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/opportunities/client.rb b/lib/merge_ruby_client/crm/opportunities/client.rb index 82ffd082..b8e4bf40 100644 --- a/lib/merge_ruby_client/crm/opportunities/client.rb +++ b/lib/merge_ruby_client/crm/opportunities/client.rb @@ -70,7 +70,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.opportunities.list + # api.crm.opportunities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, owner_id: nil, page_size: nil, remote_created_after: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, stage_id: nil, status: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -349,7 +349,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.opportunities.remote_field_classes_list + # api.crm.opportunities.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -435,7 +435,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.opportunities.list + # api.crm.opportunities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, owner_id: nil, page_size: nil, remote_created_after: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, stage_id: nil, status: nil, request_options: nil) Async do @@ -726,7 +726,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.opportunities.remote_field_classes_list + # api.crm.opportunities.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/stages/client.rb b/lib/merge_ruby_client/crm/stages/client.rb index f74d0a36..780423e9 100644 --- a/lib/merge_ruby_client/crm/stages/client.rb +++ b/lib/merge_ruby_client/crm/stages/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.stages.list + # api.crm.stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -149,7 +149,7 @@ def retrieve(id:, include_remote_data: nil, include_remote_fields: nil, include_ # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.stages.remote_field_classes_list + # api.crm.stages.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -219,7 +219,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.stages.list + # api.crm.stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -325,7 +325,7 @@ def retrieve(id:, include_remote_data: nil, include_remote_fields: nil, include_ # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.stages.remote_field_classes_list + # api.crm.stages.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/sync_status/client.rb b/lib/merge_ruby_client/crm/sync_status/client.rb index 6f443ba9..0889c904 100644 --- a/lib/merge_ruby_client/crm/sync_status/client.rb +++ b/lib/merge_ruby_client/crm/sync_status/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.sync_status.list + # api.crm.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -93,7 +93,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.sync_status.list + # api.crm.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| diff --git a/lib/merge_ruby_client/crm/tasks/client.rb b/lib/merge_ruby_client/crm/tasks/client.rb index 8b1eabbc..cce5d8ef 100644 --- a/lib/merge_ruby_client/crm/tasks/client.rb +++ b/lib/merge_ruby_client/crm/tasks/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.tasks.list + # api.crm.tasks.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -319,7 +319,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.tasks.remote_field_classes_list + # api.crm.tasks.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -391,7 +391,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.tasks.list + # api.crm.tasks.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -667,7 +667,7 @@ def meta_post_retrieve(request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.tasks.remote_field_classes_list + # api.crm.tasks.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/crm/types/remote_field_class.rb b/lib/merge_ruby_client/crm/types/remote_field_class.rb index af80e0f4..1988e0af 100644 --- a/lib/merge_ruby_client/crm/types/remote_field_class.rb +++ b/lib/merge_ruby_client/crm/types/remote_field_class.rb @@ -21,6 +21,8 @@ class RemoteFieldClass # @return [Boolean] attr_reader :is_custom # @return [Boolean] + attr_reader :is_common_model_field + # @return [Boolean] attr_reader :is_required # @return [Merge::Crm::FieldTypeEnum] attr_reader :field_type @@ -43,6 +45,7 @@ class RemoteFieldClass # @param remote_key_name [String] # @param description [String] # @param is_custom [Boolean] + # @param is_common_model_field [Boolean] # @param is_required [Boolean] # @param field_type [Merge::Crm::FieldTypeEnum] # @param field_format [Merge::Crm::FieldFormatEnum] @@ -51,12 +54,13 @@ class RemoteFieldClass # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Crm::RemoteFieldClass] def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: OMIT, is_custom: OMIT, - is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil) + is_common_model_field: OMIT, is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil) @id = id if id != OMIT @display_name = display_name if display_name != OMIT @remote_key_name = remote_key_name if remote_key_name != OMIT @description = description if description != OMIT @is_custom = is_custom if is_custom != OMIT + @is_common_model_field = is_common_model_field if is_common_model_field != OMIT @is_required = is_required if is_required != OMIT @field_type = field_type if field_type != OMIT @field_format = field_format if field_format != OMIT @@ -69,6 +73,7 @@ def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: "remote_key_name": remote_key_name, "description": description, "is_custom": is_custom, + "is_common_model_field": is_common_model_field, "is_required": is_required, "field_type": field_type, "field_format": field_format, @@ -91,6 +96,7 @@ def self.from_json(json_object:) remote_key_name = parsed_json["remote_key_name"] description = parsed_json["description"] is_custom = parsed_json["is_custom"] + is_common_model_field = parsed_json["is_common_model_field"] is_required = parsed_json["is_required"] field_type = parsed_json["field_type"] field_format = parsed_json["field_format"] @@ -110,6 +116,7 @@ def self.from_json(json_object:) remote_key_name: remote_key_name, description: description, is_custom: is_custom, + is_common_model_field: is_common_model_field, is_required: is_required, field_type: field_type, field_format: field_format, @@ -138,6 +145,7 @@ def self.validate_raw(obj:) obj.remote_key_name&.is_a?(String) != false || raise("Passed value for field obj.remote_key_name is not the expected type, validation failed.") obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") obj.is_custom&.is_a?(Boolean) != false || raise("Passed value for field obj.is_custom is not the expected type, validation failed.") + obj.is_common_model_field&.is_a?(Boolean) != false || raise("Passed value for field obj.is_common_model_field is not the expected type, validation failed.") obj.is_required&.is_a?(Boolean) != false || raise("Passed value for field obj.is_required is not the expected type, validation failed.") obj.field_type&.is_a?(Merge::Crm::FieldTypeEnum) != false || raise("Passed value for field obj.field_type is not the expected type, validation failed.") obj.field_format&.is_a?(Merge::Crm::FieldFormatEnum) != false || raise("Passed value for field obj.field_format is not the expected type, validation failed.") diff --git a/lib/merge_ruby_client/crm/users/client.rb b/lib/merge_ruby_client/crm/users/client.rb index 9fb07905..e7353665 100644 --- a/lib/merge_ruby_client/crm/users/client.rb +++ b/lib/merge_ruby_client/crm/users/client.rb @@ -49,7 +49,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.users.list + # api.crm.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -188,7 +188,7 @@ def ignore_create(model_id:, request:, request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.users.remote_field_classes_list + # api.crm.users.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -259,7 +259,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.users.list + # api.crm.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -404,7 +404,7 @@ def ignore_create(model_id:, request:, request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.crm.users.remote_field_classes_list + # api.crm.users.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/filestorage/audit_trail/client.rb b/lib/merge_ruby_client/filestorage/audit_trail/client.rb index 10d429e9..df3cd265 100644 --- a/lib/merge_ruby_client/filestorage/audit_trail/client.rb +++ b/lib/merge_ruby_client/filestorage/audit_trail/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.audit_trail.list + # api.filestorage.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -144,7 +144,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.audit_trail.list + # api.filestorage.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/filestorage/drives/client.rb b/lib/merge_ruby_client/filestorage/drives/client.rb index 6d774f1f..a6c00403 100644 --- a/lib/merge_ruby_client/filestorage/drives/client.rb +++ b/lib/merge_ruby_client/filestorage/drives/client.rb @@ -46,7 +46,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.drives.list + # api.filestorage.drives.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -158,7 +158,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.drives.list + # api.filestorage.drives.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/filestorage/files/client.rb b/lib/merge_ruby_client/filestorage/files/client.rb index 63bbaa49..6cac58e7 100644 --- a/lib/merge_ruby_client/filestorage/files/client.rb +++ b/lib/merge_ruby_client/filestorage/files/client.rb @@ -56,6 +56,10 @@ def initialize(request_client:) # @param order_by [Merge::Filestorage::Files::FilesListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include: # created_at, -created_at, modified_at, -modified_at. # @param page_size [Integer] Number of results to return per page. + # @param remote_created_after [DateTime] If provided, will only return files created in the third party platform after + # this datetime. + # @param remote_created_before [DateTime] If provided, will only return files created in the third party platform before + # this datetime. # @param remote_id [String] The API provider's ID for the given object. # @param request_options [Merge::RequestOptions] # @return [Merge::Filestorage::PaginatedFileList] @@ -65,9 +69,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.files.list + # api.filestorage.files.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, expand: nil, folder_id: nil, - include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, order_by: nil, page_size: nil, remote_id: nil, request_options: nil) + include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, order_by: nil, page_size: nil, remote_created_after: nil, remote_created_before: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? @@ -94,6 +98,8 @@ def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, ex "name": name, "order_by": order_by, "page_size": page_size, + "remote_created_after": remote_created_after, + "remote_created_before": remote_created_before, "remote_id": remote_id }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? @@ -273,6 +279,8 @@ def download_request_meta_retrieve(id:, mime_type: nil, request_options: nil) # @param created_after [String] If provided, will only return objects created after this datetime. # @param created_before [String] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. + # @param ids [String] If provided, will only return objects with the given IDs. Comma-separated list + # of strings. # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party # platform. Full coverage deletion detection is a premium add-on. Native deletion # detection is offered for free with limited coverage. [Learn @@ -296,9 +304,9 @@ def download_request_meta_retrieve(id:, mime_type: nil, request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.files.download_request_meta_list - def download_request_meta_list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, - mime_types: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, request_options: nil) + # api.filestorage.files.download_request_meta_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def download_request_meta_list(created_after: nil, created_before: nil, cursor: nil, ids: nil, + include_deleted_data: nil, mime_types: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? @@ -313,6 +321,7 @@ def download_request_meta_list(created_after: nil, created_before: nil, cursor: "created_after": created_after, "created_before": created_before, "cursor": cursor, + "ids": ids, "include_deleted_data": include_deleted_data, "mime_types": mime_types, "modified_after": modified_after, @@ -400,6 +409,10 @@ def initialize(request_client:) # @param order_by [Merge::Filestorage::Files::FilesListRequestOrderBy] Overrides the default ordering for this endpoint. Possible values include: # created_at, -created_at, modified_at, -modified_at. # @param page_size [Integer] Number of results to return per page. + # @param remote_created_after [DateTime] If provided, will only return files created in the third party platform after + # this datetime. + # @param remote_created_before [DateTime] If provided, will only return files created in the third party platform before + # this datetime. # @param remote_id [String] The API provider's ID for the given object. # @param request_options [Merge::RequestOptions] # @return [Merge::Filestorage::PaginatedFileList] @@ -409,9 +422,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.files.list + # api.filestorage.files.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, expand: nil, folder_id: nil, - include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, order_by: nil, page_size: nil, remote_id: nil, request_options: nil) + include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, mime_type: nil, modified_after: nil, modified_before: nil, name: nil, order_by: nil, page_size: nil, remote_created_after: nil, remote_created_before: nil, remote_id: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -439,6 +452,8 @@ def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, ex "name": name, "order_by": order_by, "page_size": page_size, + "remote_created_after": remote_created_after, + "remote_created_before": remote_created_before, "remote_id": remote_id }.compact unless request_options.nil? || request_options&.additional_body_parameters.nil? @@ -627,6 +642,8 @@ def download_request_meta_retrieve(id:, mime_type: nil, request_options: nil) # @param created_after [String] If provided, will only return objects created after this datetime. # @param created_before [String] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. + # @param ids [String] If provided, will only return objects with the given IDs. Comma-separated list + # of strings. # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party # platform. Full coverage deletion detection is a premium add-on. Native deletion # detection is offered for free with limited coverage. [Learn @@ -650,9 +667,9 @@ def download_request_meta_retrieve(id:, mime_type: nil, request_options: nil) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.files.download_request_meta_list - def download_request_meta_list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, - mime_types: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, request_options: nil) + # api.filestorage.files.download_request_meta_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def download_request_meta_list(created_after: nil, created_before: nil, cursor: nil, ids: nil, + include_deleted_data: nil, mime_types: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -668,6 +685,7 @@ def download_request_meta_list(created_after: nil, created_before: nil, cursor: "created_after": created_after, "created_before": created_before, "cursor": cursor, + "ids": ids, "include_deleted_data": include_deleted_data, "mime_types": mime_types, "modified_after": modified_after, diff --git a/lib/merge_ruby_client/filestorage/folders/client.rb b/lib/merge_ruby_client/filestorage/folders/client.rb index f6a08e00..41c9384b 100644 --- a/lib/merge_ruby_client/filestorage/folders/client.rb +++ b/lib/merge_ruby_client/filestorage/folders/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.folders.list + # api.filestorage.folders.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, parent_folder_id: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -255,7 +255,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.folders.list + # api.filestorage.folders.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, drive_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, name: nil, page_size: nil, parent_folder_id: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/filestorage/groups/client.rb b/lib/merge_ruby_client/filestorage/groups/client.rb index cad4b8ef..8350b5ff 100644 --- a/lib/merge_ruby_client/filestorage/groups/client.rb +++ b/lib/merge_ruby_client/filestorage/groups/client.rb @@ -46,7 +46,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.groups.list + # api.filestorage.groups.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -161,7 +161,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.groups.list + # api.filestorage.groups.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/filestorage/issues/client.rb b/lib/merge_ruby_client/filestorage/issues/client.rb index 83c42fe0..b0209e90 100644 --- a/lib/merge_ruby_client/filestorage/issues/client.rb +++ b/lib/merge_ruby_client/filestorage/issues/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.issues.list + # api.filestorage.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -166,7 +166,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.issues.list + # api.filestorage.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/filestorage/linked_accounts/client.rb b/lib/merge_ruby_client/filestorage/linked_accounts/client.rb index 21d2c2e0..dca2949e 100644 --- a/lib/merge_ruby_client/filestorage/linked_accounts/client.rb +++ b/lib/merge_ruby_client/filestorage/linked_accounts/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.linked_accounts.list + # api.filestorage.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -142,7 +142,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.linked_accounts.list + # api.filestorage.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/filestorage/sync_status/client.rb b/lib/merge_ruby_client/filestorage/sync_status/client.rb index d0c60b25..60098315 100644 --- a/lib/merge_ruby_client/filestorage/sync_status/client.rb +++ b/lib/merge_ruby_client/filestorage/sync_status/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.sync_status.list + # api.filestorage.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -93,7 +93,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.sync_status.list + # api.filestorage.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| diff --git a/lib/merge_ruby_client/filestorage/users/client.rb b/lib/merge_ruby_client/filestorage/users/client.rb index 84bd690e..2b3d281e 100644 --- a/lib/merge_ruby_client/filestorage/users/client.rb +++ b/lib/merge_ruby_client/filestorage/users/client.rb @@ -45,7 +45,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.users.list + # api.filestorage.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_me: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -156,7 +156,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.filestorage.users.list + # api.filestorage.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_me: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/audit_trail/client.rb b/lib/merge_ruby_client/hris/audit_trail/client.rb index abd29916..9d4ec5e8 100644 --- a/lib/merge_ruby_client/hris/audit_trail/client.rb +++ b/lib/merge_ruby_client/hris/audit_trail/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.audit_trail.list + # api.hris.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -144,7 +144,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.audit_trail.list + # api.hris.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/bank_info/client.rb b/lib/merge_ruby_client/hris/bank_info/client.rb index fd9df698..47dfd58b 100644 --- a/lib/merge_ruby_client/hris/bank_info/client.rb +++ b/lib/merge_ruby_client/hris/bank_info/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.bank_info.list + # api.hris.bank_info.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_type: nil, bank_name: nil, created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -200,7 +200,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.bank_info.list + # api.hris.bank_info.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_type: nil, bank_name: nil, created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/benefits/client.rb b/lib/merge_ruby_client/hris/benefits/client.rb index bd09d39c..1f4ad48e 100644 --- a/lib/merge_ruby_client/hris/benefits/client.rb +++ b/lib/merge_ruby_client/hris/benefits/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.benefits.list + # api.hris.benefits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -164,7 +164,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.benefits.list + # api.hris.benefits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/companies/client.rb b/lib/merge_ruby_client/hris/companies/client.rb index 36b76b7e..fd17aec4 100644 --- a/lib/merge_ruby_client/hris/companies/client.rb +++ b/lib/merge_ruby_client/hris/companies/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.companies.list + # api.hris.companies.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.companies.list + # api.hris.companies.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/dependents/client.rb b/lib/merge_ruby_client/hris/dependents/client.rb index d09f5549..7ae7b9fe 100644 --- a/lib/merge_ruby_client/hris/dependents/client.rb +++ b/lib/merge_ruby_client/hris/dependents/client.rb @@ -23,6 +23,7 @@ def initialize(request_client:) # @param created_after [DateTime] If provided, will only return objects created after this datetime. # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. + # @param employee_id [String] If provided, will only return dependents for this employee. # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party # platform. Full coverage deletion detection is a premium add-on. Native deletion # detection is offered for free with limited coverage. [Learn @@ -46,8 +47,8 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.dependents.list - def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, + # api.hris.dependents.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, include_deleted_data: nil, include_remote_data: nil, include_sensitive_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -63,6 +64,7 @@ def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_d "created_after": created_after, "created_before": created_before, "cursor": cursor, + "employee_id": employee_id, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_sensitive_fields": include_sensitive_fields, @@ -139,6 +141,7 @@ def initialize(request_client:) # @param created_after [DateTime] If provided, will only return objects created after this datetime. # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. + # @param employee_id [String] If provided, will only return dependents for this employee. # @param include_deleted_data [Boolean] Indicates whether or not this object has been deleted in the third party # platform. Full coverage deletion detection is a premium add-on. Native deletion # detection is offered for free with limited coverage. [Learn @@ -162,8 +165,8 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.dependents.list - def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, + # api.hris.dependents.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") + def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, include_deleted_data: nil, include_remote_data: nil, include_sensitive_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do response = @request_client.conn.get do |req| @@ -180,6 +183,7 @@ def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_d "created_after": created_after, "created_before": created_before, "cursor": cursor, + "employee_id": employee_id, "include_deleted_data": include_deleted_data, "include_remote_data": include_remote_data, "include_sensitive_fields": include_sensitive_fields, diff --git a/lib/merge_ruby_client/hris/employee_payroll_runs/client.rb b/lib/merge_ruby_client/hris/employee_payroll_runs/client.rb index 5e798406..55a00dec 100644 --- a/lib/merge_ruby_client/hris/employee_payroll_runs/client.rb +++ b/lib/merge_ruby_client/hris/employee_payroll_runs/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employee_payroll_runs.list + # api.hris.employee_payroll_runs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, ended_after: nil, ended_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, payroll_run_id: nil, remote_id: nil, started_after: nil, started_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -183,7 +183,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employee_payroll_runs.list + # api.hris.employee_payroll_runs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, ended_after: nil, ended_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, payroll_run_id: nil, remote_id: nil, started_after: nil, started_before: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/employees/client.rb b/lib/merge_ruby_client/hris/employees/client.rb index 65858cd6..05e22b89 100644 --- a/lib/merge_ruby_client/hris/employees/client.rb +++ b/lib/merge_ruby_client/hris/employees/client.rb @@ -36,6 +36,7 @@ def initialize(request_client:) # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. # @param display_full_name [String] If provided, will only return employees with this display name. + # @param employee_number [String] If provided, will only return employees with this employee number. # @param employment_status [Merge::Hris::Employees::EmployeesListRequestEmploymentStatus] If provided, will only return employees with this employment status. # * `ACTIVE` - ACTIVE # * `PENDING` - PENDING @@ -90,9 +91,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employees.list + # api.hris.employees.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, display_full_name: nil, - employment_status: nil, employment_type: nil, expand: nil, first_name: nil, groups: nil, home_location_id: nil, include_deleted_data: nil, include_remote_data: nil, include_sensitive_fields: nil, include_shell_data: nil, job_title: nil, last_name: nil, manager_id: nil, modified_after: nil, modified_before: nil, page_size: nil, pay_group_id: nil, personal_email: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, started_after: nil, started_before: nil, team_id: nil, terminated_after: nil, terminated_before: nil, work_email: nil, work_location_id: nil, request_options: nil) + employee_number: nil, employment_status: nil, employment_type: nil, expand: nil, first_name: nil, groups: nil, home_location_id: nil, include_deleted_data: nil, include_remote_data: nil, include_sensitive_fields: nil, include_shell_data: nil, job_title: nil, last_name: nil, manager_id: nil, modified_after: nil, modified_before: nil, page_size: nil, pay_group_id: nil, personal_email: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, started_after: nil, started_before: nil, team_id: nil, terminated_after: nil, terminated_before: nil, work_email: nil, work_location_id: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? @@ -109,6 +110,7 @@ def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, "created_before": created_before, "cursor": cursor, "display_full_name": display_full_name, + "employee_number": employee_number, "employment_status": employment_status, "employment_type": employment_type, "expand": expand, @@ -347,6 +349,7 @@ def initialize(request_client:) # @param created_before [DateTime] If provided, will only return objects created before this datetime. # @param cursor [String] The pagination cursor value. # @param display_full_name [String] If provided, will only return employees with this display name. + # @param employee_number [String] If provided, will only return employees with this employee number. # @param employment_status [Merge::Hris::Employees::EmployeesListRequestEmploymentStatus] If provided, will only return employees with this employment status. # * `ACTIVE` - ACTIVE # * `PENDING` - PENDING @@ -401,9 +404,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employees.list + # api.hris.employees.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, display_full_name: nil, - employment_status: nil, employment_type: nil, expand: nil, first_name: nil, groups: nil, home_location_id: nil, include_deleted_data: nil, include_remote_data: nil, include_sensitive_fields: nil, include_shell_data: nil, job_title: nil, last_name: nil, manager_id: nil, modified_after: nil, modified_before: nil, page_size: nil, pay_group_id: nil, personal_email: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, started_after: nil, started_before: nil, team_id: nil, terminated_after: nil, terminated_before: nil, work_email: nil, work_location_id: nil, request_options: nil) + employee_number: nil, employment_status: nil, employment_type: nil, expand: nil, first_name: nil, groups: nil, home_location_id: nil, include_deleted_data: nil, include_remote_data: nil, include_sensitive_fields: nil, include_shell_data: nil, job_title: nil, last_name: nil, manager_id: nil, modified_after: nil, modified_before: nil, page_size: nil, pay_group_id: nil, personal_email: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, started_after: nil, started_before: nil, team_id: nil, terminated_after: nil, terminated_before: nil, work_email: nil, work_location_id: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -421,6 +424,7 @@ def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, "created_before": created_before, "cursor": cursor, "display_full_name": display_full_name, + "employee_number": employee_number, "employment_status": employment_status, "employment_type": employment_type, "expand": expand, diff --git a/lib/merge_ruby_client/hris/employer_benefits/client.rb b/lib/merge_ruby_client/hris/employer_benefits/client.rb index ceeceddd..9e296be4 100644 --- a/lib/merge_ruby_client/hris/employer_benefits/client.rb +++ b/lib/merge_ruby_client/hris/employer_benefits/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employer_benefits.list + # api.hris.employer_benefits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employer_benefits.list + # api.hris.employer_benefits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/employments/client.rb b/lib/merge_ruby_client/hris/employments/client.rb index 842fc9fb..d580b49f 100644 --- a/lib/merge_ruby_client/hris/employments/client.rb +++ b/lib/merge_ruby_client/hris/employments/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employments.list + # api.hris.employments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -193,7 +193,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.employments.list + # api.hris.employments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/groups/client.rb b/lib/merge_ruby_client/hris/groups/client.rb index 0d1d50ed..527e052f 100644 --- a/lib/merge_ruby_client/hris/groups/client.rb +++ b/lib/merge_ruby_client/hris/groups/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.groups.list + # api.hris.groups.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_commonly_used_as_team: nil, modified_after: nil, modified_before: nil, names: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, types: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -187,7 +187,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.groups.list + # api.hris.groups.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_commonly_used_as_team: nil, modified_after: nil, modified_before: nil, names: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, types: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/issues/client.rb b/lib/merge_ruby_client/hris/issues/client.rb index dfc1733e..5989c184 100644 --- a/lib/merge_ruby_client/hris/issues/client.rb +++ b/lib/merge_ruby_client/hris/issues/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.issues.list + # api.hris.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -166,7 +166,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.issues.list + # api.hris.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/hris/linked_accounts/client.rb b/lib/merge_ruby_client/hris/linked_accounts/client.rb index b4a3e913..c4b7ea5c 100644 --- a/lib/merge_ruby_client/hris/linked_accounts/client.rb +++ b/lib/merge_ruby_client/hris/linked_accounts/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.linked_accounts.list + # api.hris.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -142,7 +142,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.linked_accounts.list + # api.hris.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/hris/locations/client.rb b/lib/merge_ruby_client/hris/locations/client.rb index 0400bf38..d7dda691 100644 --- a/lib/merge_ruby_client/hris/locations/client.rb +++ b/lib/merge_ruby_client/hris/locations/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.locations.list + # api.hris.locations.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, location_type: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -182,7 +182,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.locations.list + # api.hris.locations.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, location_type: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/pay_groups/client.rb b/lib/merge_ruby_client/hris/pay_groups/client.rb index 6a50ae95..ec7f6ccb 100644 --- a/lib/merge_ruby_client/hris/pay_groups/client.rb +++ b/lib/merge_ruby_client/hris/pay_groups/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.pay_groups.list + # api.hris.pay_groups.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.pay_groups.list + # api.hris.pay_groups.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/payroll_runs/client.rb b/lib/merge_ruby_client/hris/payroll_runs/client.rb index 793dceef..3ba51fa1 100644 --- a/lib/merge_ruby_client/hris/payroll_runs/client.rb +++ b/lib/merge_ruby_client/hris/payroll_runs/client.rb @@ -64,7 +64,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.payroll_runs.list + # api.hris.payroll_runs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, ended_after: nil, ended_before: nil, 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, run_type: nil, show_enum_origins: nil, started_after: nil, started_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -202,7 +202,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.payroll_runs.list + # api.hris.payroll_runs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, ended_after: nil, ended_before: nil, 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, run_type: nil, show_enum_origins: nil, started_after: nil, started_before: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/sync_status/client.rb b/lib/merge_ruby_client/hris/sync_status/client.rb index c2708e5c..8947d624 100644 --- a/lib/merge_ruby_client/hris/sync_status/client.rb +++ b/lib/merge_ruby_client/hris/sync_status/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.sync_status.list + # api.hris.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -93,7 +93,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.sync_status.list + # api.hris.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| diff --git a/lib/merge_ruby_client/hris/teams/client.rb b/lib/merge_ruby_client/hris/teams/client.rb index 88e5d0b5..022fc3b3 100644 --- a/lib/merge_ruby_client/hris/teams/client.rb +++ b/lib/merge_ruby_client/hris/teams/client.rb @@ -47,7 +47,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.teams.list + # api.hris.teams.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_team_id: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -164,7 +164,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.teams.list + # api.hris.teams.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_team_id: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/time_off/client.rb b/lib/merge_ruby_client/hris/time_off/client.rb index e685acce..3fe5cd11 100644 --- a/lib/merge_ruby_client/hris/time_off/client.rb +++ b/lib/merge_ruby_client/hris/time_off/client.rb @@ -82,7 +82,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.time_off.list + # api.hris.time_off.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(approver_id: nil, created_after: nil, created_before: nil, cursor: nil, employee_id: nil, ended_after: nil, ended_before: nil, expand: nil, 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, request_type: nil, show_enum_origins: nil, started_after: nil, started_before: nil, status: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -317,7 +317,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.time_off.list + # api.hris.time_off.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(approver_id: nil, created_after: nil, created_before: nil, cursor: nil, employee_id: nil, ended_after: nil, ended_before: nil, expand: nil, 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, request_type: nil, show_enum_origins: nil, started_after: nil, started_before: nil, status: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/time_off_balances/client.rb b/lib/merge_ruby_client/hris/time_off_balances/client.rb index b6eb7427..f3622244 100644 --- a/lib/merge_ruby_client/hris/time_off_balances/client.rb +++ b/lib/merge_ruby_client/hris/time_off_balances/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.time_off_balances.list + # api.hris.time_off_balances.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, policy_type: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -199,7 +199,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.time_off_balances.list + # api.hris.time_off_balances.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, policy_type: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/timesheet_entries/client.rb b/lib/merge_ruby_client/hris/timesheet_entries/client.rb index 83e10c8b..68c52347 100644 --- a/lib/merge_ruby_client/hris/timesheet_entries/client.rb +++ b/lib/merge_ruby_client/hris/timesheet_entries/client.rb @@ -57,7 +57,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.timesheet_entries.list + # api.hris.timesheet_entries.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, ended_after: nil, ended_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, remote_id: nil, started_after: nil, started_before: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -258,7 +258,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.hris.timesheet_entries.list + # api.hris.timesheet_entries.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, employee_id: nil, ended_after: nil, ended_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, order_by: nil, page_size: nil, remote_id: nil, started_after: nil, started_before: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/hris/types/benefit.rb b/lib/merge_ruby_client/hris/types/benefit.rb index ee9b09f7..3339298d 100644 --- a/lib/merge_ruby_client/hris/types/benefit.rb +++ b/lib/merge_ruby_client/hris/types/benefit.rb @@ -37,13 +37,13 @@ class Benefit attr_reader :start_date # @return [DateTime] The day and time the benefit ended. attr_reader :end_date + # @return [String] The employer benefit plan the employee is enrolled in. + attr_reader :employer_benefit # @return [Boolean] Indicates whether or not this object has been deleted in the third party # platform. Full coverage deletion detection is a premium add-on. Native deletion # detection is offered for free with limited coverage. [Learn # more](https://docs.merge.dev/integrations/hris/supported-features/). attr_reader :remote_was_deleted - # @return [String] The employer benefit plan the employee is enrolled in. - attr_reader :employer_benefit # @return [Hash{String => Object}] attr_reader :field_mappings # @return [Array] @@ -67,17 +67,17 @@ class Benefit # @param company_contribution [Float] The company's contribution. # @param start_date [DateTime] The day and time the benefit started. # @param end_date [DateTime] The day and time the benefit ended. + # @param employer_benefit [String] The employer benefit plan the employee is enrolled in. # @param remote_was_deleted [Boolean] Indicates whether or not this object has been deleted in the third party # platform. Full coverage deletion detection is a premium add-on. Native deletion # detection is offered for free with limited coverage. [Learn # more](https://docs.merge.dev/integrations/hris/supported-features/). - # @param employer_benefit [String] The employer benefit plan the employee is enrolled in. # @param field_mappings [Hash{String => Object}] # @param remote_data [Array] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Hris::Benefit] def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, employee: OMIT, - provider_name: OMIT, benefit_plan_type: OMIT, employee_contribution: OMIT, company_contribution: OMIT, start_date: OMIT, end_date: OMIT, remote_was_deleted: OMIT, employer_benefit: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil) + provider_name: OMIT, benefit_plan_type: OMIT, employee_contribution: OMIT, company_contribution: OMIT, start_date: OMIT, end_date: OMIT, employer_benefit: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil) @id = id if id != OMIT @remote_id = remote_id if remote_id != OMIT @created_at = created_at if created_at != OMIT @@ -89,8 +89,8 @@ def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, e @company_contribution = company_contribution if company_contribution != OMIT @start_date = start_date if start_date != OMIT @end_date = end_date if end_date != OMIT - @remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT @employer_benefit = employer_benefit if employer_benefit != OMIT + @remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT @field_mappings = field_mappings if field_mappings != OMIT @remote_data = remote_data if remote_data != OMIT @additional_properties = additional_properties @@ -106,8 +106,8 @@ def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, e "company_contribution": company_contribution, "start_date": start_date, "end_date": end_date, - "remote_was_deleted": remote_was_deleted, "employer_benefit": employer_benefit, + "remote_was_deleted": remote_was_deleted, "field_mappings": field_mappings, "remote_data": remote_data }.reject do |_k, v| @@ -138,8 +138,8 @@ def self.from_json(json_object:) company_contribution = parsed_json["company_contribution"] start_date = (DateTime.parse(parsed_json["start_date"]) unless parsed_json["start_date"].nil?) end_date = (DateTime.parse(parsed_json["end_date"]) unless parsed_json["end_date"].nil?) - remote_was_deleted = parsed_json["remote_was_deleted"] employer_benefit = parsed_json["employer_benefit"] + remote_was_deleted = parsed_json["remote_was_deleted"] field_mappings = parsed_json["field_mappings"] remote_data = parsed_json["remote_data"]&.map do |item| item = item.to_json @@ -157,8 +157,8 @@ def self.from_json(json_object:) company_contribution: company_contribution, start_date: start_date, end_date: end_date, - remote_was_deleted: remote_was_deleted, employer_benefit: employer_benefit, + remote_was_deleted: remote_was_deleted, field_mappings: field_mappings, remote_data: remote_data, additional_properties: struct @@ -190,8 +190,8 @@ def self.validate_raw(obj:) obj.company_contribution&.is_a?(Float) != false || raise("Passed value for field obj.company_contribution is not the expected type, validation failed.") obj.start_date&.is_a?(DateTime) != false || raise("Passed value for field obj.start_date is not the expected type, validation failed.") obj.end_date&.is_a?(DateTime) != false || raise("Passed value for field obj.end_date is not the expected type, validation failed.") - obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.") obj.employer_benefit&.is_a?(String) != false || raise("Passed value for field obj.employer_benefit is not the expected type, validation failed.") + obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.") obj.field_mappings&.is_a?(Hash) != false || raise("Passed value for field obj.field_mappings is not the expected type, validation failed.") obj.remote_data&.is_a?(Array) != false || raise("Passed value for field obj.remote_data is not the expected type, validation failed.") end diff --git a/lib/merge_ruby_client/ticketing/accounts/client.rb b/lib/merge_ruby_client/ticketing/accounts/client.rb index b7bdcf51..2c0ab291 100644 --- a/lib/merge_ruby_client/ticketing/accounts/client.rb +++ b/lib/merge_ruby_client/ticketing/accounts/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.accounts.list + # api.ticketing.accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.accounts.list + # api.ticketing.accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/attachments/client.rb b/lib/merge_ruby_client/ticketing/attachments/client.rb index e4458d72..c823b249 100644 --- a/lib/merge_ruby_client/ticketing/attachments/client.rb +++ b/lib/merge_ruby_client/ticketing/attachments/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.attachments.list + # api.ticketing.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_created_after: nil, remote_id: nil, ticket_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -284,7 +284,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.attachments.list + # api.ticketing.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_created_after: nil, remote_id: nil, ticket_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/audit_trail/client.rb b/lib/merge_ruby_client/ticketing/audit_trail/client.rb index e5f4510e..9883855c 100644 --- a/lib/merge_ruby_client/ticketing/audit_trail/client.rb +++ b/lib/merge_ruby_client/ticketing/audit_trail/client.rb @@ -60,7 +60,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.audit_trail.list + # api.ticketing.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -144,7 +144,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.audit_trail.list + # api.ticketing.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/collections/client.rb b/lib/merge_ruby_client/ticketing/collections/client.rb index 3f70f3b0..55c7832f 100644 --- a/lib/merge_ruby_client/ticketing/collections/client.rb +++ b/lib/merge_ruby_client/ticketing/collections/client.rb @@ -55,7 +55,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.collections.list + # api.ticketing.collections.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(collection_type: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_collection_id: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -118,7 +118,7 @@ def list(collection_type: nil, created_after: nil, created_before: nil, cursor: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.collections.viewers_list(collection_id: "collection_id") + # api.ticketing.collections.viewers_list(collection_id: "collection_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def viewers_list(collection_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -242,7 +242,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.collections.list + # api.ticketing.collections.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(collection_type: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_collection_id: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil) Async do @@ -307,7 +307,7 @@ def list(collection_type: nil, created_after: nil, created_before: nil, cursor: # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.collections.viewers_list(collection_id: "collection_id") + # api.ticketing.collections.viewers_list(collection_id: "collection_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def viewers_list(collection_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/comments/client.rb b/lib/merge_ruby_client/ticketing/comments/client.rb index 43b3b744..9f888449 100644 --- a/lib/merge_ruby_client/ticketing/comments/client.rb +++ b/lib/merge_ruby_client/ticketing/comments/client.rb @@ -54,7 +54,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.comments.list + # api.ticketing.comments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_created_after: nil, remote_id: nil, ticket_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -249,7 +249,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.comments.list + # api.ticketing.comments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_created_after: nil, remote_id: nil, ticket_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/contacts/client.rb b/lib/merge_ruby_client/ticketing/contacts/client.rb index 1bb40c2e..90dc5e6b 100644 --- a/lib/merge_ruby_client/ticketing/contacts/client.rb +++ b/lib/merge_ruby_client/ticketing/contacts/client.rb @@ -49,7 +49,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.contacts.list + # api.ticketing.contacts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -238,7 +238,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.contacts.list + # api.ticketing.contacts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/issues/client.rb b/lib/merge_ruby_client/ticketing/issues/client.rb index 57b2232c..3c0cd0f3 100644 --- a/lib/merge_ruby_client/ticketing/issues/client.rb +++ b/lib/merge_ruby_client/ticketing/issues/client.rb @@ -52,7 +52,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.issues.list + # api.ticketing.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -166,7 +166,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.issues.list + # api.ticketing.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/ticketing/linked_accounts/client.rb b/lib/merge_ruby_client/ticketing/linked_accounts/client.rb index b656fd10..756e64dd 100644 --- a/lib/merge_ruby_client/ticketing/linked_accounts/client.rb +++ b/lib/merge_ruby_client/ticketing/linked_accounts/client.rb @@ -56,7 +56,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.linked_accounts.list + # api.ticketing.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) response = @request_client.conn.get do |req| @@ -142,7 +142,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.linked_accounts.list + # api.ticketing.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil, 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) Async do diff --git a/lib/merge_ruby_client/ticketing/projects/client.rb b/lib/merge_ruby_client/ticketing/projects/client.rb index 007a29ce..5771cd0f 100644 --- a/lib/merge_ruby_client/ticketing/projects/client.rb +++ b/lib/merge_ruby_client/ticketing/projects/client.rb @@ -46,7 +46,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.projects.list + # api.ticketing.projects.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -141,7 +141,7 @@ def retrieve(id:, include_remote_data: nil, include_shell_data: nil, request_opt # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.projects.users_list(parent_id: "parent_id") + # api.ticketing.projects.users_list(parent_id: "parent_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def users_list(parent_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -207,7 +207,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.projects.list + # api.ticketing.projects.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do @@ -306,7 +306,7 @@ def retrieve(id:, include_remote_data: nil, include_shell_data: nil, request_opt # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.projects.users_list(parent_id: "parent_id") + # api.ticketing.projects.users_list(parent_id: "parent_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def users_list(parent_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/roles/client.rb b/lib/merge_ruby_client/ticketing/roles/client.rb index 93aca58f..3a61ff62 100644 --- a/lib/merge_ruby_client/ticketing/roles/client.rb +++ b/lib/merge_ruby_client/ticketing/roles/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.roles.list + # api.ticketing.roles.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.roles.list + # api.ticketing.roles.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/sync_status/client.rb b/lib/merge_ruby_client/ticketing/sync_status/client.rb index 1da44187..81a5f1c0 100644 --- a/lib/merge_ruby_client/ticketing/sync_status/client.rb +++ b/lib/merge_ruby_client/ticketing/sync_status/client.rb @@ -37,7 +37,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.sync_status.list + # api.ticketing.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -93,7 +93,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.sync_status.list + # api.ticketing.sync_status.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(cursor: nil, page_size: nil, request_options: nil) Async do response = @request_client.conn.get do |req| diff --git a/lib/merge_ruby_client/ticketing/tags/client.rb b/lib/merge_ruby_client/ticketing/tags/client.rb index 48bff989..a8d5e1b1 100644 --- a/lib/merge_ruby_client/ticketing/tags/client.rb +++ b/lib/merge_ruby_client/ticketing/tags/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tags.list + # api.ticketing.tags.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tags.list + # api.ticketing.tags.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/teams/client.rb b/lib/merge_ruby_client/ticketing/teams/client.rb index dd0dd70b..76b5b77b 100644 --- a/lib/merge_ruby_client/ticketing/teams/client.rb +++ b/lib/merge_ruby_client/ticketing/teams/client.rb @@ -44,7 +44,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.teams.list + # api.ticketing.teams.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -153,7 +153,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.teams.list + # api.ticketing.teams.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/tickets/client.rb b/lib/merge_ruby_client/ticketing/tickets/client.rb index 3a2d76b9..8d66514b 100644 --- a/lib/merge_ruby_client/ticketing/tickets/client.rb +++ b/lib/merge_ruby_client/ticketing/tickets/client.rb @@ -44,6 +44,7 @@ def initialize(request_client:) # @param contact_id [String] If provided, will only return tickets for this contact. # @param created_after [DateTime] If provided, will only return objects created after this datetime. # @param created_before [DateTime] If provided, will only return objects created before this datetime. + # @param creator_id [String] If provided, will only return tickets created by this creator_id. # @param cursor [String] The pagination cursor value. # @param due_after [DateTime] If provided, will only return tickets due after this datetime. # @param due_before [DateTime] If provided, will only return tickets due before this datetime. @@ -96,9 +97,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tickets.list + # api.ticketing.tickets.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, assignee_ids: nil, collection_ids: nil, completed_after: nil, completed_before: nil, - contact_id: nil, created_after: nil, created_before: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, ticket_url: nil, request_options: nil) + contact_id: nil, created_after: nil, created_before: nil, creator_id: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, ticket_url: nil, request_options: nil) response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil? @@ -118,6 +119,7 @@ def list(account_id: nil, assignee_ids: nil, collection_ids: nil, completed_afte "contact_id": contact_id, "created_after": created_after, "created_before": created_before, + "creator_id": creator_id, "cursor": cursor, "due_after": due_after, "due_before": due_before, @@ -281,9 +283,9 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # * :access_level (Merge::Ticketing::TicketAccessLevelEnum) # * :tags (Array) # * :roles (Array) - # * :completed_at (DateTime) # * :ticket_url (String) # * :priority (Merge::Ticketing::PriorityEnum) + # * :completed_at (DateTime) # * :integration_params (Hash{String => Object}) # * :linked_account_params (Hash{String => Object}) # * :remote_fields (Array) @@ -342,7 +344,7 @@ def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_opti # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tickets.viewers_list(ticket_id: "ticket_id") + # api.ticketing.tickets.viewers_list(ticket_id: "ticket_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def viewers_list(ticket_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -464,7 +466,7 @@ def meta_post_retrieve(collection_id: nil, ticket_type: nil, request_options: ni # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tickets.remote_field_classes_list + # api.ticketing.tickets.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, ids: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -518,6 +520,7 @@ def initialize(request_client:) # @param contact_id [String] If provided, will only return tickets for this contact. # @param created_after [DateTime] If provided, will only return objects created after this datetime. # @param created_before [DateTime] If provided, will only return objects created before this datetime. + # @param creator_id [String] If provided, will only return tickets created by this creator_id. # @param cursor [String] The pagination cursor value. # @param due_after [DateTime] If provided, will only return tickets due after this datetime. # @param due_before [DateTime] If provided, will only return tickets due before this datetime. @@ -570,9 +573,9 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tickets.list + # api.ticketing.tickets.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(account_id: nil, assignee_ids: nil, collection_ids: nil, completed_after: nil, completed_before: nil, - contact_id: nil, created_after: nil, created_before: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, ticket_url: nil, request_options: nil) + contact_id: nil, created_after: nil, created_before: nil, creator_id: nil, cursor: nil, due_after: nil, due_before: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_remote_fields: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, parent_ticket_id: nil, priority: nil, remote_created_after: nil, remote_created_before: nil, remote_fields: nil, remote_id: nil, remote_updated_after: nil, remote_updated_before: nil, show_enum_origins: nil, status: nil, tags: nil, ticket_type: nil, ticket_url: nil, request_options: nil) Async do response = @request_client.conn.get do |req| req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil? @@ -593,6 +596,7 @@ def list(account_id: nil, assignee_ids: nil, collection_ids: nil, completed_afte "contact_id": contact_id, "created_after": created_after, "created_before": created_before, + "creator_id": creator_id, "cursor": cursor, "due_after": due_after, "due_before": due_before, @@ -761,9 +765,9 @@ def retrieve(id:, expand: nil, include_remote_data: nil, include_remote_fields: # * :access_level (Merge::Ticketing::TicketAccessLevelEnum) # * :tags (Array) # * :roles (Array) - # * :completed_at (DateTime) # * :ticket_url (String) # * :priority (Merge::Ticketing::PriorityEnum) + # * :completed_at (DateTime) # * :integration_params (Hash{String => Object}) # * :linked_account_params (Hash{String => Object}) # * :remote_fields (Array) @@ -824,7 +828,7 @@ def partial_update(id:, model:, is_debug_mode: nil, run_async: nil, request_opti # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tickets.viewers_list(ticket_id: "ticket_id") + # api.ticketing.tickets.viewers_list(ticket_id: "ticket_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def viewers_list(ticket_id:, cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil) Async do @@ -952,7 +956,7 @@ def meta_post_retrieve(collection_id: nil, ticket_type: nil, request_options: ni # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.tickets.remote_field_classes_list + # api.ticketing.tickets.remote_field_classes_list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def remote_field_classes_list(cursor: nil, ids: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, is_common_model_field: nil, is_custom: nil, page_size: nil, request_options: nil) Async do diff --git a/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb b/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb index 2ac45183..c99e5c85 100644 --- a/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb +++ b/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb @@ -63,8 +63,6 @@ class PatchedTicketRequest attr_reader :tags # @return [Array] attr_reader :roles - # @return [DateTime] When the ticket was completed. - attr_reader :completed_at # @return [String] The 3rd party url of the Ticket. attr_reader :ticket_url # @return [Merge::Ticketing::PriorityEnum] The priority or urgency of the Ticket. @@ -73,6 +71,8 @@ class PatchedTicketRequest # * `NORMAL` - NORMAL # * `LOW` - LOW attr_reader :priority + # @return [DateTime] When the ticket was completed. + attr_reader :completed_at # @return [Hash{String => Object}] attr_reader :integration_params # @return [Hash{String => Object}] @@ -119,20 +119,20 @@ class PatchedTicketRequest # * `COLLECTION` - COLLECTION # @param tags [Array] # @param roles [Array] - # @param completed_at [DateTime] When the ticket was completed. # @param ticket_url [String] The 3rd party url of the Ticket. # @param priority [Merge::Ticketing::PriorityEnum] The priority or urgency of the Ticket. # * `URGENT` - URGENT # * `HIGH` - HIGH # * `NORMAL` - NORMAL # * `LOW` - LOW + # @param completed_at [DateTime] When the ticket was completed. # @param integration_params [Hash{String => Object}] # @param linked_account_params [Hash{String => Object}] # @param remote_fields [Array] # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Ticketing::PatchedTicketRequest] def initialize(name: OMIT, assignees: OMIT, assigned_teams: OMIT, creator: OMIT, due_date: OMIT, status: OMIT, - description: OMIT, collections: OMIT, ticket_type: OMIT, account: OMIT, contact: OMIT, parent_ticket: OMIT, access_level: OMIT, tags: OMIT, roles: OMIT, completed_at: OMIT, ticket_url: OMIT, priority: OMIT, integration_params: OMIT, linked_account_params: OMIT, remote_fields: OMIT, additional_properties: nil) + description: OMIT, collections: OMIT, ticket_type: OMIT, account: OMIT, contact: OMIT, parent_ticket: OMIT, access_level: OMIT, tags: OMIT, roles: OMIT, ticket_url: OMIT, priority: OMIT, completed_at: OMIT, integration_params: OMIT, linked_account_params: OMIT, remote_fields: OMIT, additional_properties: nil) @name = name if name != OMIT @assignees = assignees if assignees != OMIT @assigned_teams = assigned_teams if assigned_teams != OMIT @@ -148,9 +148,9 @@ def initialize(name: OMIT, assignees: OMIT, assigned_teams: OMIT, creator: OMIT, @access_level = access_level if access_level != OMIT @tags = tags if tags != OMIT @roles = roles if roles != OMIT - @completed_at = completed_at if completed_at != OMIT @ticket_url = ticket_url if ticket_url != OMIT @priority = priority if priority != OMIT + @completed_at = completed_at if completed_at != OMIT @integration_params = integration_params if integration_params != OMIT @linked_account_params = linked_account_params if linked_account_params != OMIT @remote_fields = remote_fields if remote_fields != OMIT @@ -171,9 +171,9 @@ def initialize(name: OMIT, assignees: OMIT, assigned_teams: OMIT, creator: OMIT, "access_level": access_level, "tags": tags, "roles": roles, - "completed_at": completed_at, "ticket_url": ticket_url, "priority": priority, + "completed_at": completed_at, "integration_params": integration_params, "linked_account_params": linked_account_params, "remote_fields": remote_fields @@ -204,9 +204,9 @@ def self.from_json(json_object:) access_level = parsed_json["access_level"] tags = parsed_json["tags"] roles = parsed_json["roles"] - completed_at = (DateTime.parse(parsed_json["completed_at"]) unless parsed_json["completed_at"].nil?) ticket_url = parsed_json["ticket_url"] priority = parsed_json["priority"] + completed_at = (DateTime.parse(parsed_json["completed_at"]) unless parsed_json["completed_at"].nil?) integration_params = parsed_json["integration_params"] linked_account_params = parsed_json["linked_account_params"] remote_fields = parsed_json["remote_fields"]&.map do |item| @@ -229,9 +229,9 @@ def self.from_json(json_object:) access_level: access_level, tags: tags, roles: roles, - completed_at: completed_at, ticket_url: ticket_url, priority: priority, + completed_at: completed_at, integration_params: integration_params, linked_account_params: linked_account_params, remote_fields: remote_fields, @@ -268,9 +268,9 @@ def self.validate_raw(obj:) obj.access_level&.is_a?(Merge::Ticketing::TicketAccessLevelEnum) != false || raise("Passed value for field obj.access_level is not the expected type, validation failed.") obj.tags&.is_a?(Array) != false || raise("Passed value for field obj.tags is not the expected type, validation failed.") obj.roles&.is_a?(Array) != false || raise("Passed value for field obj.roles is not the expected type, validation failed.") - obj.completed_at&.is_a?(DateTime) != false || raise("Passed value for field obj.completed_at is not the expected type, validation failed.") obj.ticket_url&.is_a?(String) != false || raise("Passed value for field obj.ticket_url is not the expected type, validation failed.") obj.priority&.is_a?(Merge::Ticketing::PriorityEnum) != false || raise("Passed value for field obj.priority is not the expected type, validation failed.") + obj.completed_at&.is_a?(DateTime) != false || raise("Passed value for field obj.completed_at is not the expected type, validation failed.") obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.") obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.") obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.") diff --git a/lib/merge_ruby_client/ticketing/types/remote_field_class.rb b/lib/merge_ruby_client/ticketing/types/remote_field_class.rb index 64eae78d..8baae026 100644 --- a/lib/merge_ruby_client/ticketing/types/remote_field_class.rb +++ b/lib/merge_ruby_client/ticketing/types/remote_field_class.rb @@ -21,6 +21,8 @@ class RemoteFieldClass # @return [Boolean] attr_reader :is_custom # @return [Boolean] + attr_reader :is_common_model_field + # @return [Boolean] attr_reader :is_required # @return [Merge::Ticketing::FieldTypeEnum] attr_reader :field_type @@ -43,6 +45,7 @@ class RemoteFieldClass # @param remote_key_name [String] # @param description [String] # @param is_custom [Boolean] + # @param is_common_model_field [Boolean] # @param is_required [Boolean] # @param field_type [Merge::Ticketing::FieldTypeEnum] # @param field_format [Merge::Ticketing::FieldFormatEnum] @@ -51,12 +54,13 @@ class RemoteFieldClass # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition # @return [Merge::Ticketing::RemoteFieldClass] def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: OMIT, is_custom: OMIT, - is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil) + is_common_model_field: OMIT, is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil) @id = id if id != OMIT @display_name = display_name if display_name != OMIT @remote_key_name = remote_key_name if remote_key_name != OMIT @description = description if description != OMIT @is_custom = is_custom if is_custom != OMIT + @is_common_model_field = is_common_model_field if is_common_model_field != OMIT @is_required = is_required if is_required != OMIT @field_type = field_type if field_type != OMIT @field_format = field_format if field_format != OMIT @@ -69,6 +73,7 @@ def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: "remote_key_name": remote_key_name, "description": description, "is_custom": is_custom, + "is_common_model_field": is_common_model_field, "is_required": is_required, "field_type": field_type, "field_format": field_format, @@ -91,6 +96,7 @@ def self.from_json(json_object:) remote_key_name = parsed_json["remote_key_name"] description = parsed_json["description"] is_custom = parsed_json["is_custom"] + is_common_model_field = parsed_json["is_common_model_field"] is_required = parsed_json["is_required"] field_type = parsed_json["field_type"] field_format = parsed_json["field_format"] @@ -110,6 +116,7 @@ def self.from_json(json_object:) remote_key_name: remote_key_name, description: description, is_custom: is_custom, + is_common_model_field: is_common_model_field, is_required: is_required, field_type: field_type, field_format: field_format, @@ -138,6 +145,7 @@ def self.validate_raw(obj:) obj.remote_key_name&.is_a?(String) != false || raise("Passed value for field obj.remote_key_name is not the expected type, validation failed.") obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.") obj.is_custom&.is_a?(Boolean) != false || raise("Passed value for field obj.is_custom is not the expected type, validation failed.") + obj.is_common_model_field&.is_a?(Boolean) != false || raise("Passed value for field obj.is_common_model_field is not the expected type, validation failed.") obj.is_required&.is_a?(Boolean) != false || raise("Passed value for field obj.is_required is not the expected type, validation failed.") obj.field_type&.is_a?(Merge::Ticketing::FieldTypeEnum) != false || raise("Passed value for field obj.field_type is not the expected type, validation failed.") obj.field_format&.is_a?(Merge::Ticketing::FieldFormatEnum) != false || raise("Passed value for field obj.field_format is not the expected type, validation failed.") diff --git a/lib/merge_ruby_client/ticketing/users/client.rb b/lib/merge_ruby_client/ticketing/users/client.rb index caec0a80..886d29fc 100644 --- a/lib/merge_ruby_client/ticketing/users/client.rb +++ b/lib/merge_ruby_client/ticketing/users/client.rb @@ -51,7 +51,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.users.list + # api.ticketing.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email_address: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, team: nil, request_options: nil) response = @request_client.conn.get do |req| @@ -171,7 +171,7 @@ def initialize(request_client:) # environment: Merge::Environment::PRODUCTION, # api_key: "YOUR_AUTH_TOKEN" # ) - # api.ticketing.users.list + # api.ticketing.users.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw") def list(created_after: nil, created_before: nil, cursor: nil, email_address: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, team: nil, request_options: nil) Async do diff --git a/lib/requests.rb b/lib/requests.rb index 941501d1..70e19910 100644 --- a/lib/requests.rb +++ b/lib/requests.rb @@ -48,7 +48,7 @@ def get_url(request_options: nil) # @return [Hash{String => String}] def get_headers - headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "2.0.0" } + headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "2.1.0" } headers["Authorization"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil? headers end @@ -96,7 +96,7 @@ def get_url(request_options: nil) # @return [Hash{String => String}] def get_headers - headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "2.0.0" } + headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "merge_ruby_client", "X-Fern-SDK-Version": "2.1.0" } headers["Authorization"] = ((@api_key.is_a? Method) ? @api_key.call : @api_key) unless @api_key.nil? headers end diff --git a/lib/types_export.rb b/lib/types_export.rb index 8d8339eb..ed7934f6 100644 --- a/lib/types_export.rb +++ b/lib/types_export.rb @@ -415,206 +415,6 @@ require_relative "merge_ruby_client/crm/types/validation_problem_source" require_relative "merge_ruby_client/crm/types/warning_validation_problem" require_relative "merge_ruby_client/crm/types/webhook_receiver" -require_relative "merge_ruby_client/hris/types/remote_response" -require_relative "merge_ruby_client/hris/async_passthrough/types/async_passthrough_retrieve_response" -require_relative "merge_ruby_client/hris/bank_info/types/bank_info_list_request_account_type" -require_relative "merge_ruby_client/hris/bank_info/types/bank_info_list_request_order_by" -require_relative "merge_ruby_client/hris/employee_payroll_runs/types/employee_payroll_runs_list_request_expand" -require_relative "merge_ruby_client/hris/employee_payroll_runs/types/employee_payroll_runs_retrieve_request_expand" -require_relative "merge_ruby_client/hris/employees/types/employees_list_request_employment_status" -require_relative "merge_ruby_client/hris/employees/types/employees_list_request_expand" -require_relative "merge_ruby_client/hris/employees/types/employees_list_request_remote_fields" -require_relative "merge_ruby_client/hris/employees/types/employees_list_request_show_enum_origins" -require_relative "merge_ruby_client/hris/employees/types/employees_retrieve_request_expand" -require_relative "merge_ruby_client/hris/employees/types/employees_retrieve_request_remote_fields" -require_relative "merge_ruby_client/hris/employees/types/employees_retrieve_request_show_enum_origins" -require_relative "merge_ruby_client/hris/employments/types/employments_list_request_expand" -require_relative "merge_ruby_client/hris/employments/types/employments_list_request_order_by" -require_relative "merge_ruby_client/hris/employments/types/employments_list_request_remote_fields" -require_relative "merge_ruby_client/hris/employments/types/employments_list_request_show_enum_origins" -require_relative "merge_ruby_client/hris/employments/types/employments_retrieve_request_expand" -require_relative "merge_ruby_client/hris/employments/types/employments_retrieve_request_remote_fields" -require_relative "merge_ruby_client/hris/employments/types/employments_retrieve_request_show_enum_origins" -require_relative "merge_ruby_client/hris/issues/types/issues_list_request_status" -require_relative "merge_ruby_client/hris/linked_accounts/types/linked_accounts_list_request_category" -require_relative "merge_ruby_client/hris/locations/types/locations_list_request_location_type" -require_relative "merge_ruby_client/hris/locations/types/locations_list_request_remote_fields" -require_relative "merge_ruby_client/hris/locations/types/locations_list_request_show_enum_origins" -require_relative "merge_ruby_client/hris/locations/types/locations_retrieve_request_remote_fields" -require_relative "merge_ruby_client/hris/locations/types/locations_retrieve_request_show_enum_origins" -require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_list_request_remote_fields" -require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_list_request_run_type" -require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_list_request_show_enum_origins" -require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_retrieve_request_remote_fields" -require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_retrieve_request_show_enum_origins" -require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_expand" -require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_remote_fields" -require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_request_type" -require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_show_enum_origins" -require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_status" -require_relative "merge_ruby_client/hris/time_off/types/time_off_retrieve_request_expand" -require_relative "merge_ruby_client/hris/time_off/types/time_off_retrieve_request_remote_fields" -require_relative "merge_ruby_client/hris/time_off/types/time_off_retrieve_request_show_enum_origins" -require_relative "merge_ruby_client/hris/time_off_balances/types/time_off_balances_list_request_policy_type" -require_relative "merge_ruby_client/hris/timesheet_entries/types/timesheet_entries_list_request_order_by" -require_relative "merge_ruby_client/hris/types/account_details" -require_relative "merge_ruby_client/hris/types/account_details_and_actions" -require_relative "merge_ruby_client/hris/types/account_details_and_actions_integration" -require_relative "merge_ruby_client/hris/types/account_details_and_actions_status_enum" -require_relative "merge_ruby_client/hris/types/account_integration" -require_relative "merge_ruby_client/hris/types/account_token" -require_relative "merge_ruby_client/hris/types/account_type_enum" -require_relative "merge_ruby_client/hris/types/advanced_metadata" -require_relative "merge_ruby_client/hris/types/async_passthrough_reciept" -require_relative "merge_ruby_client/hris/types/audit_log_event" -require_relative "merge_ruby_client/hris/types/available_actions" -require_relative "merge_ruby_client/hris/types/employee" -require_relative "merge_ruby_client/hris/types/bank_info_employee" -require_relative "merge_ruby_client/hris/types/bank_info" -require_relative "merge_ruby_client/hris/types/benefit_employee" -require_relative "merge_ruby_client/hris/types/benefit" -require_relative "merge_ruby_client/hris/types/benefit_plan_type_enum" -require_relative "merge_ruby_client/hris/types/categories_enum" -require_relative "merge_ruby_client/hris/types/category_enum" -require_relative "merge_ruby_client/hris/types/common_model_scope_api" -require_relative "merge_ruby_client/hris/types/common_model_scopes_body_request" -require_relative "merge_ruby_client/hris/types/company" -require_relative "merge_ruby_client/hris/types/country_enum" -require_relative "merge_ruby_client/hris/types/data_passthrough_request" -require_relative "merge_ruby_client/hris/types/debug_mode_log" -require_relative "merge_ruby_client/hris/types/debug_model_log_summary" -require_relative "merge_ruby_client/hris/types/deduction" -require_relative "merge_ruby_client/hris/types/dependent" -require_relative "merge_ruby_client/hris/types/earning" -require_relative "merge_ruby_client/hris/types/earning_type_enum" -require_relative "merge_ruby_client/hris/types/employee_company" -require_relative "merge_ruby_client/hris/types/group" -require_relative "merge_ruby_client/hris/types/employee_groups_item" -require_relative "merge_ruby_client/hris/types/employment" -require_relative "merge_ruby_client/hris/types/employee_employments_item" -require_relative "merge_ruby_client/hris/types/location" -require_relative "merge_ruby_client/hris/types/employee_home_location" -require_relative "merge_ruby_client/hris/types/employee_work_location" -require_relative "merge_ruby_client/hris/types/employee_manager" -require_relative "merge_ruby_client/hris/types/team" -require_relative "merge_ruby_client/hris/types/employee_team" -require_relative "merge_ruby_client/hris/types/pay_group" -require_relative "merge_ruby_client/hris/types/employee_pay_group" -require_relative "merge_ruby_client/hris/types/employee_payroll_run_employee" -require_relative "merge_ruby_client/hris/types/payroll_run" -require_relative "merge_ruby_client/hris/types/employee_payroll_run_payroll_run" -require_relative "merge_ruby_client/hris/types/employee_payroll_run" -require_relative "merge_ruby_client/hris/types/employee_request_company" -require_relative "merge_ruby_client/hris/types/employee_request_groups_item" -require_relative "merge_ruby_client/hris/types/employee_request_employments_item" -require_relative "merge_ruby_client/hris/types/employee_request_home_location" -require_relative "merge_ruby_client/hris/types/employee_request_work_location" -require_relative "merge_ruby_client/hris/types/employee_request_manager" -require_relative "merge_ruby_client/hris/types/employee_request_team" -require_relative "merge_ruby_client/hris/types/employee_request_pay_group" -require_relative "merge_ruby_client/hris/types/employee_request" -require_relative "merge_ruby_client/hris/types/employee_response" -require_relative "merge_ruby_client/hris/types/employer_benefit" -require_relative "merge_ruby_client/hris/types/employment_employee" -require_relative "merge_ruby_client/hris/types/employment_pay_group" -require_relative "merge_ruby_client/hris/types/employment_status_enum" -require_relative "merge_ruby_client/hris/types/employment_type_enum" -require_relative "merge_ruby_client/hris/types/enabled_actions_enum" -require_relative "merge_ruby_client/hris/types/encoding_enum" -require_relative "merge_ruby_client/hris/types/error_validation_problem" -require_relative "merge_ruby_client/hris/types/ethnicity_enum" -require_relative "merge_ruby_client/hris/types/event_type_enum" -require_relative "merge_ruby_client/hris/types/external_target_field_api" -require_relative "merge_ruby_client/hris/types/external_target_field_api_response" -require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_target_field" -require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_remote_field_remote_endpoint_info" -require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_remote_field" -require_relative "merge_ruby_client/hris/types/field_mapping_api_instance" -require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_response" -require_relative "merge_ruby_client/hris/types/field_mapping_instance_response" -require_relative "merge_ruby_client/hris/types/field_permission_deserializer" -require_relative "merge_ruby_client/hris/types/field_permission_deserializer_request" -require_relative "merge_ruby_client/hris/types/flsa_status_enum" -require_relative "merge_ruby_client/hris/types/gender_enum" -require_relative "merge_ruby_client/hris/types/group_type_enum" -require_relative "merge_ruby_client/hris/types/individual_common_model_scope_deserializer" -require_relative "merge_ruby_client/hris/types/individual_common_model_scope_deserializer_request" -require_relative "merge_ruby_client/hris/types/issue" -require_relative "merge_ruby_client/hris/types/issue_status_enum" -require_relative "merge_ruby_client/hris/types/language_enum" -require_relative "merge_ruby_client/hris/types/last_sync_result_enum" -require_relative "merge_ruby_client/hris/types/link_token" -require_relative "merge_ruby_client/hris/types/linked_account_status" -require_relative "merge_ruby_client/hris/types/location_type_enum" -require_relative "merge_ruby_client/hris/types/marital_status_enum" -require_relative "merge_ruby_client/hris/types/meta_response" -require_relative "merge_ruby_client/hris/types/method_enum" -require_relative "merge_ruby_client/hris/types/model_operation" -require_relative "merge_ruby_client/hris/types/model_permission_deserializer" -require_relative "merge_ruby_client/hris/types/model_permission_deserializer_request" -require_relative "merge_ruby_client/hris/types/multipart_form_field_request" -require_relative "merge_ruby_client/hris/types/paginated_account_details_and_actions_list" -require_relative "merge_ruby_client/hris/types/paginated_audit_log_event_list" -require_relative "merge_ruby_client/hris/types/paginated_bank_info_list" -require_relative "merge_ruby_client/hris/types/paginated_benefit_list" -require_relative "merge_ruby_client/hris/types/paginated_company_list" -require_relative "merge_ruby_client/hris/types/paginated_dependent_list" -require_relative "merge_ruby_client/hris/types/paginated_employee_list" -require_relative "merge_ruby_client/hris/types/paginated_employee_payroll_run_list" -require_relative "merge_ruby_client/hris/types/paginated_employer_benefit_list" -require_relative "merge_ruby_client/hris/types/paginated_employment_list" -require_relative "merge_ruby_client/hris/types/paginated_group_list" -require_relative "merge_ruby_client/hris/types/paginated_issue_list" -require_relative "merge_ruby_client/hris/types/paginated_location_list" -require_relative "merge_ruby_client/hris/types/paginated_pay_group_list" -require_relative "merge_ruby_client/hris/types/paginated_payroll_run_list" -require_relative "merge_ruby_client/hris/types/paginated_sync_status_list" -require_relative "merge_ruby_client/hris/types/paginated_team_list" -require_relative "merge_ruby_client/hris/types/paginated_time_off_balance_list" -require_relative "merge_ruby_client/hris/types/paginated_time_off_list" -require_relative "merge_ruby_client/hris/types/paginated_timesheet_entry_list" -require_relative "merge_ruby_client/hris/types/pay_currency_enum" -require_relative "merge_ruby_client/hris/types/pay_frequency_enum" -require_relative "merge_ruby_client/hris/types/pay_period_enum" -require_relative "merge_ruby_client/hris/types/policy_type_enum" -require_relative "merge_ruby_client/hris/types/reason_enum" -require_relative "merge_ruby_client/hris/types/relationship_enum" -require_relative "merge_ruby_client/hris/types/remote_data" -require_relative "merge_ruby_client/hris/types/remote_endpoint_info" -require_relative "merge_ruby_client/hris/types/remote_field_api_coverage" -require_relative "merge_ruby_client/hris/types/remote_field_api" -require_relative "merge_ruby_client/hris/types/remote_field_api_response" -require_relative "merge_ruby_client/hris/types/remote_key" -require_relative "merge_ruby_client/hris/types/request_format_enum" -require_relative "merge_ruby_client/hris/types/request_type_enum" -require_relative "merge_ruby_client/hris/types/response_type_enum" -require_relative "merge_ruby_client/hris/types/role_enum" -require_relative "merge_ruby_client/hris/types/run_state_enum" -require_relative "merge_ruby_client/hris/types/run_type_enum" -require_relative "merge_ruby_client/hris/types/selective_sync_configurations_usage_enum" -require_relative "merge_ruby_client/hris/types/status_fd_5_enum" -require_relative "merge_ruby_client/hris/types/sync_status" -require_relative "merge_ruby_client/hris/types/tax" -require_relative "merge_ruby_client/hris/types/team_parent_team" -require_relative "merge_ruby_client/hris/types/time_off_employee" -require_relative "merge_ruby_client/hris/types/time_off_approver" -require_relative "merge_ruby_client/hris/types/time_off" -require_relative "merge_ruby_client/hris/types/time_off_balance_employee" -require_relative "merge_ruby_client/hris/types/time_off_balance" -require_relative "merge_ruby_client/hris/types/time_off_request_employee" -require_relative "merge_ruby_client/hris/types/time_off_request_approver" -require_relative "merge_ruby_client/hris/types/time_off_request" -require_relative "merge_ruby_client/hris/types/time_off_response" -require_relative "merge_ruby_client/hris/types/time_off_status_enum" -require_relative "merge_ruby_client/hris/types/timesheet_entry_employee" -require_relative "merge_ruby_client/hris/types/timesheet_entry" -require_relative "merge_ruby_client/hris/types/timesheet_entry_request_employee" -require_relative "merge_ruby_client/hris/types/timesheet_entry_request" -require_relative "merge_ruby_client/hris/types/timesheet_entry_response" -require_relative "merge_ruby_client/hris/types/units_enum" -require_relative "merge_ruby_client/hris/types/validation_problem_source" -require_relative "merge_ruby_client/hris/types/warning_validation_problem" -require_relative "merge_ruby_client/hris/types/webhook_receiver" require_relative "merge_ruby_client/filestorage/types/remote_response" require_relative "merge_ruby_client/filestorage/async_passthrough/types/async_passthrough_retrieve_response" require_relative "merge_ruby_client/filestorage/files/types/files_list_request_expand" @@ -895,6 +695,206 @@ require_relative "merge_ruby_client/ticketing/types/viewer" require_relative "merge_ruby_client/ticketing/types/warning_validation_problem" require_relative "merge_ruby_client/ticketing/types/webhook_receiver" +require_relative "merge_ruby_client/hris/types/remote_response" +require_relative "merge_ruby_client/hris/async_passthrough/types/async_passthrough_retrieve_response" +require_relative "merge_ruby_client/hris/bank_info/types/bank_info_list_request_account_type" +require_relative "merge_ruby_client/hris/bank_info/types/bank_info_list_request_order_by" +require_relative "merge_ruby_client/hris/employee_payroll_runs/types/employee_payroll_runs_list_request_expand" +require_relative "merge_ruby_client/hris/employee_payroll_runs/types/employee_payroll_runs_retrieve_request_expand" +require_relative "merge_ruby_client/hris/employees/types/employees_list_request_employment_status" +require_relative "merge_ruby_client/hris/employees/types/employees_list_request_expand" +require_relative "merge_ruby_client/hris/employees/types/employees_list_request_remote_fields" +require_relative "merge_ruby_client/hris/employees/types/employees_list_request_show_enum_origins" +require_relative "merge_ruby_client/hris/employees/types/employees_retrieve_request_expand" +require_relative "merge_ruby_client/hris/employees/types/employees_retrieve_request_remote_fields" +require_relative "merge_ruby_client/hris/employees/types/employees_retrieve_request_show_enum_origins" +require_relative "merge_ruby_client/hris/employments/types/employments_list_request_expand" +require_relative "merge_ruby_client/hris/employments/types/employments_list_request_order_by" +require_relative "merge_ruby_client/hris/employments/types/employments_list_request_remote_fields" +require_relative "merge_ruby_client/hris/employments/types/employments_list_request_show_enum_origins" +require_relative "merge_ruby_client/hris/employments/types/employments_retrieve_request_expand" +require_relative "merge_ruby_client/hris/employments/types/employments_retrieve_request_remote_fields" +require_relative "merge_ruby_client/hris/employments/types/employments_retrieve_request_show_enum_origins" +require_relative "merge_ruby_client/hris/issues/types/issues_list_request_status" +require_relative "merge_ruby_client/hris/linked_accounts/types/linked_accounts_list_request_category" +require_relative "merge_ruby_client/hris/locations/types/locations_list_request_location_type" +require_relative "merge_ruby_client/hris/locations/types/locations_list_request_remote_fields" +require_relative "merge_ruby_client/hris/locations/types/locations_list_request_show_enum_origins" +require_relative "merge_ruby_client/hris/locations/types/locations_retrieve_request_remote_fields" +require_relative "merge_ruby_client/hris/locations/types/locations_retrieve_request_show_enum_origins" +require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_list_request_remote_fields" +require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_list_request_run_type" +require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_list_request_show_enum_origins" +require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_retrieve_request_remote_fields" +require_relative "merge_ruby_client/hris/payroll_runs/types/payroll_runs_retrieve_request_show_enum_origins" +require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_expand" +require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_remote_fields" +require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_request_type" +require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_show_enum_origins" +require_relative "merge_ruby_client/hris/time_off/types/time_off_list_request_status" +require_relative "merge_ruby_client/hris/time_off/types/time_off_retrieve_request_expand" +require_relative "merge_ruby_client/hris/time_off/types/time_off_retrieve_request_remote_fields" +require_relative "merge_ruby_client/hris/time_off/types/time_off_retrieve_request_show_enum_origins" +require_relative "merge_ruby_client/hris/time_off_balances/types/time_off_balances_list_request_policy_type" +require_relative "merge_ruby_client/hris/timesheet_entries/types/timesheet_entries_list_request_order_by" +require_relative "merge_ruby_client/hris/types/account_details" +require_relative "merge_ruby_client/hris/types/account_details_and_actions" +require_relative "merge_ruby_client/hris/types/account_details_and_actions_integration" +require_relative "merge_ruby_client/hris/types/account_details_and_actions_status_enum" +require_relative "merge_ruby_client/hris/types/account_integration" +require_relative "merge_ruby_client/hris/types/account_token" +require_relative "merge_ruby_client/hris/types/account_type_enum" +require_relative "merge_ruby_client/hris/types/advanced_metadata" +require_relative "merge_ruby_client/hris/types/async_passthrough_reciept" +require_relative "merge_ruby_client/hris/types/audit_log_event" +require_relative "merge_ruby_client/hris/types/available_actions" +require_relative "merge_ruby_client/hris/types/employee" +require_relative "merge_ruby_client/hris/types/bank_info_employee" +require_relative "merge_ruby_client/hris/types/bank_info" +require_relative "merge_ruby_client/hris/types/benefit_employee" +require_relative "merge_ruby_client/hris/types/benefit" +require_relative "merge_ruby_client/hris/types/benefit_plan_type_enum" +require_relative "merge_ruby_client/hris/types/categories_enum" +require_relative "merge_ruby_client/hris/types/category_enum" +require_relative "merge_ruby_client/hris/types/common_model_scope_api" +require_relative "merge_ruby_client/hris/types/common_model_scopes_body_request" +require_relative "merge_ruby_client/hris/types/company" +require_relative "merge_ruby_client/hris/types/country_enum" +require_relative "merge_ruby_client/hris/types/data_passthrough_request" +require_relative "merge_ruby_client/hris/types/debug_mode_log" +require_relative "merge_ruby_client/hris/types/debug_model_log_summary" +require_relative "merge_ruby_client/hris/types/deduction" +require_relative "merge_ruby_client/hris/types/dependent" +require_relative "merge_ruby_client/hris/types/earning" +require_relative "merge_ruby_client/hris/types/earning_type_enum" +require_relative "merge_ruby_client/hris/types/employee_company" +require_relative "merge_ruby_client/hris/types/group" +require_relative "merge_ruby_client/hris/types/employee_groups_item" +require_relative "merge_ruby_client/hris/types/employment" +require_relative "merge_ruby_client/hris/types/employee_employments_item" +require_relative "merge_ruby_client/hris/types/location" +require_relative "merge_ruby_client/hris/types/employee_home_location" +require_relative "merge_ruby_client/hris/types/employee_work_location" +require_relative "merge_ruby_client/hris/types/employee_manager" +require_relative "merge_ruby_client/hris/types/team" +require_relative "merge_ruby_client/hris/types/employee_team" +require_relative "merge_ruby_client/hris/types/pay_group" +require_relative "merge_ruby_client/hris/types/employee_pay_group" +require_relative "merge_ruby_client/hris/types/employee_payroll_run_employee" +require_relative "merge_ruby_client/hris/types/payroll_run" +require_relative "merge_ruby_client/hris/types/employee_payroll_run_payroll_run" +require_relative "merge_ruby_client/hris/types/employee_payroll_run" +require_relative "merge_ruby_client/hris/types/employee_request_company" +require_relative "merge_ruby_client/hris/types/employee_request_groups_item" +require_relative "merge_ruby_client/hris/types/employee_request_employments_item" +require_relative "merge_ruby_client/hris/types/employee_request_home_location" +require_relative "merge_ruby_client/hris/types/employee_request_work_location" +require_relative "merge_ruby_client/hris/types/employee_request_manager" +require_relative "merge_ruby_client/hris/types/employee_request_team" +require_relative "merge_ruby_client/hris/types/employee_request_pay_group" +require_relative "merge_ruby_client/hris/types/employee_request" +require_relative "merge_ruby_client/hris/types/employee_response" +require_relative "merge_ruby_client/hris/types/employer_benefit" +require_relative "merge_ruby_client/hris/types/employment_employee" +require_relative "merge_ruby_client/hris/types/employment_pay_group" +require_relative "merge_ruby_client/hris/types/employment_status_enum" +require_relative "merge_ruby_client/hris/types/employment_type_enum" +require_relative "merge_ruby_client/hris/types/enabled_actions_enum" +require_relative "merge_ruby_client/hris/types/encoding_enum" +require_relative "merge_ruby_client/hris/types/error_validation_problem" +require_relative "merge_ruby_client/hris/types/ethnicity_enum" +require_relative "merge_ruby_client/hris/types/event_type_enum" +require_relative "merge_ruby_client/hris/types/external_target_field_api" +require_relative "merge_ruby_client/hris/types/external_target_field_api_response" +require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_target_field" +require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_remote_field_remote_endpoint_info" +require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_remote_field" +require_relative "merge_ruby_client/hris/types/field_mapping_api_instance" +require_relative "merge_ruby_client/hris/types/field_mapping_api_instance_response" +require_relative "merge_ruby_client/hris/types/field_mapping_instance_response" +require_relative "merge_ruby_client/hris/types/field_permission_deserializer" +require_relative "merge_ruby_client/hris/types/field_permission_deserializer_request" +require_relative "merge_ruby_client/hris/types/flsa_status_enum" +require_relative "merge_ruby_client/hris/types/gender_enum" +require_relative "merge_ruby_client/hris/types/group_type_enum" +require_relative "merge_ruby_client/hris/types/individual_common_model_scope_deserializer" +require_relative "merge_ruby_client/hris/types/individual_common_model_scope_deserializer_request" +require_relative "merge_ruby_client/hris/types/issue" +require_relative "merge_ruby_client/hris/types/issue_status_enum" +require_relative "merge_ruby_client/hris/types/language_enum" +require_relative "merge_ruby_client/hris/types/last_sync_result_enum" +require_relative "merge_ruby_client/hris/types/link_token" +require_relative "merge_ruby_client/hris/types/linked_account_status" +require_relative "merge_ruby_client/hris/types/location_type_enum" +require_relative "merge_ruby_client/hris/types/marital_status_enum" +require_relative "merge_ruby_client/hris/types/meta_response" +require_relative "merge_ruby_client/hris/types/method_enum" +require_relative "merge_ruby_client/hris/types/model_operation" +require_relative "merge_ruby_client/hris/types/model_permission_deserializer" +require_relative "merge_ruby_client/hris/types/model_permission_deserializer_request" +require_relative "merge_ruby_client/hris/types/multipart_form_field_request" +require_relative "merge_ruby_client/hris/types/paginated_account_details_and_actions_list" +require_relative "merge_ruby_client/hris/types/paginated_audit_log_event_list" +require_relative "merge_ruby_client/hris/types/paginated_bank_info_list" +require_relative "merge_ruby_client/hris/types/paginated_benefit_list" +require_relative "merge_ruby_client/hris/types/paginated_company_list" +require_relative "merge_ruby_client/hris/types/paginated_dependent_list" +require_relative "merge_ruby_client/hris/types/paginated_employee_list" +require_relative "merge_ruby_client/hris/types/paginated_employee_payroll_run_list" +require_relative "merge_ruby_client/hris/types/paginated_employer_benefit_list" +require_relative "merge_ruby_client/hris/types/paginated_employment_list" +require_relative "merge_ruby_client/hris/types/paginated_group_list" +require_relative "merge_ruby_client/hris/types/paginated_issue_list" +require_relative "merge_ruby_client/hris/types/paginated_location_list" +require_relative "merge_ruby_client/hris/types/paginated_pay_group_list" +require_relative "merge_ruby_client/hris/types/paginated_payroll_run_list" +require_relative "merge_ruby_client/hris/types/paginated_sync_status_list" +require_relative "merge_ruby_client/hris/types/paginated_team_list" +require_relative "merge_ruby_client/hris/types/paginated_time_off_balance_list" +require_relative "merge_ruby_client/hris/types/paginated_time_off_list" +require_relative "merge_ruby_client/hris/types/paginated_timesheet_entry_list" +require_relative "merge_ruby_client/hris/types/pay_currency_enum" +require_relative "merge_ruby_client/hris/types/pay_frequency_enum" +require_relative "merge_ruby_client/hris/types/pay_period_enum" +require_relative "merge_ruby_client/hris/types/policy_type_enum" +require_relative "merge_ruby_client/hris/types/reason_enum" +require_relative "merge_ruby_client/hris/types/relationship_enum" +require_relative "merge_ruby_client/hris/types/remote_data" +require_relative "merge_ruby_client/hris/types/remote_endpoint_info" +require_relative "merge_ruby_client/hris/types/remote_field_api_coverage" +require_relative "merge_ruby_client/hris/types/remote_field_api" +require_relative "merge_ruby_client/hris/types/remote_field_api_response" +require_relative "merge_ruby_client/hris/types/remote_key" +require_relative "merge_ruby_client/hris/types/request_format_enum" +require_relative "merge_ruby_client/hris/types/request_type_enum" +require_relative "merge_ruby_client/hris/types/response_type_enum" +require_relative "merge_ruby_client/hris/types/role_enum" +require_relative "merge_ruby_client/hris/types/run_state_enum" +require_relative "merge_ruby_client/hris/types/run_type_enum" +require_relative "merge_ruby_client/hris/types/selective_sync_configurations_usage_enum" +require_relative "merge_ruby_client/hris/types/status_fd_5_enum" +require_relative "merge_ruby_client/hris/types/sync_status" +require_relative "merge_ruby_client/hris/types/tax" +require_relative "merge_ruby_client/hris/types/team_parent_team" +require_relative "merge_ruby_client/hris/types/time_off_employee" +require_relative "merge_ruby_client/hris/types/time_off_approver" +require_relative "merge_ruby_client/hris/types/time_off" +require_relative "merge_ruby_client/hris/types/time_off_balance_employee" +require_relative "merge_ruby_client/hris/types/time_off_balance" +require_relative "merge_ruby_client/hris/types/time_off_request_employee" +require_relative "merge_ruby_client/hris/types/time_off_request_approver" +require_relative "merge_ruby_client/hris/types/time_off_request" +require_relative "merge_ruby_client/hris/types/time_off_response" +require_relative "merge_ruby_client/hris/types/time_off_status_enum" +require_relative "merge_ruby_client/hris/types/timesheet_entry_employee" +require_relative "merge_ruby_client/hris/types/timesheet_entry" +require_relative "merge_ruby_client/hris/types/timesheet_entry_request_employee" +require_relative "merge_ruby_client/hris/types/timesheet_entry_request" +require_relative "merge_ruby_client/hris/types/timesheet_entry_response" +require_relative "merge_ruby_client/hris/types/units_enum" +require_relative "merge_ruby_client/hris/types/validation_problem_source" +require_relative "merge_ruby_client/hris/types/warning_validation_problem" +require_relative "merge_ruby_client/hris/types/webhook_receiver" require_relative "merge_ruby_client/accounting/accounts/types/accounts_list_request_remote_fields" require_relative "merge_ruby_client/accounting/accounts/types/accounts_list_request_show_enum_origins" require_relative "merge_ruby_client/accounting/accounts/types/accounts_retrieve_request_remote_fields" @@ -911,6 +911,9 @@ require_relative "merge_ruby_client/accounting/credit_notes/types/credit_notes_retrieve_request_expand" require_relative "merge_ruby_client/accounting/credit_notes/types/credit_notes_retrieve_request_remote_fields" require_relative "merge_ruby_client/accounting/credit_notes/types/credit_notes_retrieve_request_show_enum_origins" +require_relative "merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand" +require_relative "merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand" +require_relative "merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand" require_relative "merge_ruby_client/accounting/expenses/types/expenses_list_request_expand" require_relative "merge_ruby_client/accounting/expenses/types/expenses_retrieve_request_expand" require_relative "merge_ruby_client/accounting/general_ledger_transactions/types/general_ledger_transactions_list_request_expand" @@ -1061,6 +1064,29 @@ require_relative "merge_ruby_client/accounting/types/expense_line_request_contact" require_relative "merge_ruby_client/accounting/types/expense_line_request_project" require_relative "merge_ruby_client/accounting/types/expense_line_request" +require_relative "merge_ruby_client/accounting/types/expense_report_company" +require_relative "merge_ruby_client/accounting/types/expense_report" +require_relative "merge_ruby_client/accounting/types/expense_report_line_account" +require_relative "merge_ruby_client/accounting/types/expense_report_line_employee" +require_relative "merge_ruby_client/accounting/types/expense_report_line_project" +require_relative "merge_ruby_client/accounting/types/expense_report_line_company" +require_relative "merge_ruby_client/accounting/types/expense_report_line_contact" +require_relative "merge_ruby_client/accounting/types/tax_rate" +require_relative "merge_ruby_client/accounting/types/expense_report_line_tax_rate" +require_relative "merge_ruby_client/accounting/types/expense_report_line" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request_account" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request_employee" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request_project" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request_company" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request_contact" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request_tax_rate" +require_relative "merge_ruby_client/accounting/types/expense_report_line_request" +require_relative "merge_ruby_client/accounting/types/expense_report_request_employee" +require_relative "merge_ruby_client/accounting/types/expense_report_request_accounting_period" +require_relative "merge_ruby_client/accounting/types/expense_report_request_company" +require_relative "merge_ruby_client/accounting/types/expense_report_request" +require_relative "merge_ruby_client/accounting/types/expense_report_response" +require_relative "merge_ruby_client/accounting/types/expense_report_status_enum" require_relative "merge_ruby_client/accounting/types/expense_request_account" require_relative "merge_ruby_client/accounting/types/expense_request_contact" require_relative "merge_ruby_client/accounting/types/expense_request_company" @@ -1145,7 +1171,6 @@ require_relative "merge_ruby_client/accounting/types/item_purchase_account" require_relative "merge_ruby_client/accounting/types/item_sales_account" require_relative "merge_ruby_client/accounting/types/item_company" -require_relative "merge_ruby_client/accounting/types/tax_rate" require_relative "merge_ruby_client/accounting/types/item_purchase_tax_rate" require_relative "merge_ruby_client/accounting/types/item_sales_tax_rate" require_relative "merge_ruby_client/accounting/types/item_format_enum" @@ -1204,6 +1229,8 @@ require_relative "merge_ruby_client/accounting/types/paginated_credit_note_list" require_relative "merge_ruby_client/accounting/types/paginated_employee_list" require_relative "merge_ruby_client/accounting/types/paginated_expense_list" +require_relative "merge_ruby_client/accounting/types/paginated_expense_report_line_list" +require_relative "merge_ruby_client/accounting/types/paginated_expense_report_list" require_relative "merge_ruby_client/accounting/types/paginated_general_ledger_transaction_list" require_relative "merge_ruby_client/accounting/types/paginated_income_statement_list" require_relative "merge_ruby_client/accounting/types/paginated_invoice_list" @@ -1221,6 +1248,8 @@ require_relative "merge_ruby_client/accounting/types/paginated_tracking_category_list" require_relative "merge_ruby_client/accounting/types/paginated_transaction_list" require_relative "merge_ruby_client/accounting/types/paginated_vendor_credit_list" +require_relative "merge_ruby_client/accounting/types/patched_contact_request_addresses_item" +require_relative "merge_ruby_client/accounting/types/patched_contact_request" require_relative "merge_ruby_client/accounting/types/patched_item_request_request" require_relative "merge_ruby_client/accounting/types/patched_payment_request_contact" require_relative "merge_ruby_client/accounting/types/patched_payment_request_account" diff --git a/merge_ruby_client.gemspec b/merge_ruby_client.gemspec index 8bbd4965..d4fab1e5 100644 --- a/merge_ruby_client.gemspec +++ b/merge_ruby_client.gemspec @@ -4,7 +4,7 @@ require_relative "lib/gemconfig" Gem::Specification.new do |spec| spec.name = "merge_ruby_client" - spec.version = "2.0.0" + spec.version = "2.1.0" spec.authors = Merge::Gemconfig::AUTHORS spec.email = Merge::Gemconfig::EMAIL spec.summary = Merge::Gemconfig::SUMMARY