merge_ruby_client 0.0.5 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/merge_ruby_client/accounting/audit_trail/client.rb +2 -4
- data/lib/merge_ruby_client/accounting/client.rb +7 -0
- data/lib/merge_ruby_client/accounting/link_token/client.rb +4 -8
- data/lib/merge_ruby_client/accounting/payments/client.rb +0 -4
- data/lib/merge_ruby_client/accounting/selective_sync/client.rb +218 -0
- data/lib/merge_ruby_client/accounting/types/account.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/accounting_attachment.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/accounting_period.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/accounting_phone_number.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/address.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/audit_log_event.rb +0 -6
- data/lib/merge_ruby_client/accounting/types/balance_sheet.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/cash_flow_statement.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/company_info.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/condition_schema.rb +136 -0
- data/lib/merge_ruby_client/accounting/types/condition_type_enum.rb +22 -0
- data/lib/merge_ruby_client/accounting/types/contact.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/credit_note.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/credit_note_line_item.rb +13 -5
- data/lib/merge_ruby_client/accounting/types/event_type_enum.rb +0 -6
- data/lib/merge_ruby_client/accounting/types/expense.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/expense_line.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/income_statement.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/invoice.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/invoice_line_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/journal_entry.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/journal_line.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/linked_account_condition.rb +104 -0
- data/lib/merge_ruby_client/accounting/types/linked_account_condition_request.rb +87 -0
- data/lib/merge_ruby_client/accounting/types/linked_account_selective_sync_configuration.rb +65 -0
- data/lib/merge_ruby_client/accounting/types/linked_account_selective_sync_configuration_request.rb +63 -0
- data/lib/merge_ruby_client/accounting/types/operator_schema.rb +68 -0
- data/lib/merge_ruby_client/accounting/types/paginated_condition_schema_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/patched_payment_request.rb +1 -14
- data/lib/merge_ruby_client/accounting/types/payment.rb +5 -18
- data/lib/merge_ruby_client/accounting/types/payment_line_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/payment_request.rb +1 -14
- data/lib/merge_ruby_client/accounting/types/purchase_order.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/purchase_order_line_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/remote_field_api.rb +2 -16
- data/lib/merge_ruby_client/accounting/types/report_item.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/tax_rate.rb +10 -12
- data/lib/merge_ruby_client/accounting/types/tax_rate_company.rb +1 -2
- data/lib/merge_ruby_client/accounting/types/tracking_category.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/transaction.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/transaction_line_item.rb +6 -6
- data/lib/merge_ruby_client/accounting/types/vendor_credit.rb +4 -4
- data/lib/merge_ruby_client/accounting/types/vendor_credit_line.rb +4 -4
- data/lib/merge_ruby_client/ats/audit_trail/client.rb +2 -4
- data/lib/merge_ruby_client/ats/client.rb +7 -0
- data/lib/merge_ruby_client/ats/job_postings/client.rb +4 -16
- data/lib/merge_ruby_client/ats/link_token/client.rb +4 -8
- data/lib/merge_ruby_client/ats/selective_sync/client.rb +218 -0
- data/lib/merge_ruby_client/ats/types/activity.rb +4 -4
- data/lib/merge_ruby_client/ats/types/application.rb +4 -4
- data/lib/merge_ruby_client/ats/types/attachment.rb +4 -4
- data/lib/merge_ruby_client/ats/types/audit_log_event.rb +0 -6
- data/lib/merge_ruby_client/ats/types/candidate.rb +4 -4
- data/lib/merge_ruby_client/ats/types/condition_schema.rb +136 -0
- data/lib/merge_ruby_client/ats/types/condition_type_enum.rb +22 -0
- data/lib/merge_ruby_client/ats/types/department.rb +4 -4
- data/lib/merge_ruby_client/ats/types/eeoc.rb +4 -4
- data/lib/merge_ruby_client/ats/types/email_address.rb +4 -4
- data/lib/merge_ruby_client/ats/types/event_type_enum.rb +0 -6
- data/lib/merge_ruby_client/ats/types/job.rb +4 -4
- data/lib/merge_ruby_client/ats/types/job_interview_stage.rb +4 -4
- data/lib/merge_ruby_client/ats/types/job_posting.rb +4 -4
- data/lib/merge_ruby_client/ats/types/linked_account_condition.rb +104 -0
- data/lib/merge_ruby_client/ats/types/linked_account_condition_request.rb +87 -0
- data/lib/merge_ruby_client/ats/types/linked_account_selective_sync_configuration.rb +65 -0
- data/lib/merge_ruby_client/ats/types/linked_account_selective_sync_configuration_request.rb +63 -0
- data/lib/merge_ruby_client/ats/types/offer.rb +4 -4
- data/lib/merge_ruby_client/ats/types/office.rb +4 -4
- data/lib/merge_ruby_client/ats/types/operator_schema.rb +68 -0
- data/lib/merge_ruby_client/ats/types/paginated_condition_schema_list.rb +80 -0
- data/lib/merge_ruby_client/ats/types/phone_number.rb +4 -4
- data/lib/merge_ruby_client/ats/types/reject_reason.rb +4 -4
- data/lib/merge_ruby_client/ats/types/remote_field_api.rb +2 -16
- data/lib/merge_ruby_client/ats/types/remote_user.rb +4 -4
- data/lib/merge_ruby_client/ats/types/scheduled_interview.rb +4 -4
- data/lib/merge_ruby_client/ats/types/scorecard.rb +4 -4
- data/lib/merge_ruby_client/ats/types/screening_question.rb +4 -4
- data/lib/merge_ruby_client/ats/types/screening_question_option.rb +4 -4
- data/lib/merge_ruby_client/ats/types/tag.rb +4 -4
- data/lib/merge_ruby_client/ats/types/url.rb +4 -4
- data/lib/merge_ruby_client/crm/accounts/client.rb +0 -4
- data/lib/merge_ruby_client/crm/audit_trail/client.rb +2 -4
- data/lib/merge_ruby_client/crm/client.rb +7 -0
- data/lib/merge_ruby_client/crm/custom_objects/client.rb +2 -2
- data/lib/merge_ruby_client/crm/link_token/client.rb +4 -8
- data/lib/merge_ruby_client/crm/selective_sync/client.rb +218 -0
- data/lib/merge_ruby_client/crm/types/account.rb +4 -4
- data/lib/merge_ruby_client/crm/types/account_request.rb +1 -13
- data/lib/merge_ruby_client/crm/types/address.rb +4 -4
- data/lib/merge_ruby_client/crm/types/association.rb +6 -6
- data/lib/merge_ruby_client/crm/types/association_association_type.rb +0 -1
- data/lib/merge_ruby_client/crm/types/association_sub_type.rb +4 -4
- data/lib/merge_ruby_client/crm/types/association_type.rb +6 -8
- data/lib/merge_ruby_client/crm/types/audit_log_event.rb +0 -6
- data/lib/merge_ruby_client/crm/types/condition_schema.rb +136 -0
- data/lib/merge_ruby_client/crm/types/condition_type_enum.rb +22 -0
- data/lib/merge_ruby_client/crm/types/contact.rb +4 -4
- data/lib/merge_ruby_client/crm/types/custom_object.rb +8 -8
- data/lib/merge_ruby_client/crm/types/custom_object_class.rb +8 -10
- data/lib/merge_ruby_client/crm/types/email_address.rb +4 -4
- data/lib/merge_ruby_client/crm/types/engagement.rb +4 -4
- data/lib/merge_ruby_client/crm/types/engagement_type.rb +4 -4
- data/lib/merge_ruby_client/crm/types/event_type_enum.rb +0 -6
- data/lib/merge_ruby_client/crm/types/lead.rb +4 -4
- data/lib/merge_ruby_client/crm/types/linked_account_condition.rb +104 -0
- data/lib/merge_ruby_client/crm/types/linked_account_condition_request.rb +87 -0
- data/lib/merge_ruby_client/crm/types/linked_account_selective_sync_configuration.rb +65 -0
- data/lib/merge_ruby_client/crm/types/linked_account_selective_sync_configuration_request.rb +63 -0
- data/lib/merge_ruby_client/crm/types/note.rb +4 -4
- data/lib/merge_ruby_client/crm/types/operator_schema.rb +68 -0
- data/lib/merge_ruby_client/crm/types/opportunity.rb +4 -4
- data/lib/merge_ruby_client/crm/types/paginated_condition_schema_list.rb +80 -0
- data/lib/merge_ruby_client/crm/types/patched_account_request.rb +1 -13
- data/lib/merge_ruby_client/crm/types/phone_number.rb +4 -4
- data/lib/merge_ruby_client/crm/types/remote_field_api.rb +2 -16
- data/lib/merge_ruby_client/crm/types/remote_field_class_for_custom_object_class.rb +4 -4
- data/lib/merge_ruby_client/crm/types/stage.rb +4 -4
- data/lib/merge_ruby_client/crm/types/task.rb +4 -4
- data/lib/merge_ruby_client/crm/types/user.rb +4 -4
- data/lib/merge_ruby_client/filestorage/audit_trail/client.rb +2 -4
- data/lib/merge_ruby_client/filestorage/client.rb +7 -0
- data/lib/merge_ruby_client/filestorage/link_token/client.rb +4 -8
- data/lib/merge_ruby_client/filestorage/selective_sync/client.rb +218 -0
- data/lib/merge_ruby_client/filestorage/types/audit_log_event.rb +0 -6
- data/lib/merge_ruby_client/filestorage/types/condition_schema.rb +136 -0
- data/lib/merge_ruby_client/filestorage/types/condition_type_enum.rb +22 -0
- data/lib/merge_ruby_client/filestorage/types/drive.rb +4 -4
- data/lib/merge_ruby_client/filestorage/types/event_type_enum.rb +0 -6
- data/lib/merge_ruby_client/filestorage/types/file.rb +4 -4
- data/lib/merge_ruby_client/filestorage/types/folder.rb +4 -4
- data/lib/merge_ruby_client/filestorage/types/group.rb +4 -4
- data/lib/merge_ruby_client/filestorage/types/linked_account_condition.rb +104 -0
- data/lib/merge_ruby_client/filestorage/types/linked_account_condition_request.rb +87 -0
- data/lib/merge_ruby_client/filestorage/types/linked_account_selective_sync_configuration.rb +65 -0
- data/lib/merge_ruby_client/filestorage/types/linked_account_selective_sync_configuration_request.rb +63 -0
- data/lib/merge_ruby_client/filestorage/types/operator_schema.rb +68 -0
- data/lib/merge_ruby_client/filestorage/types/paginated_condition_schema_list.rb +80 -0
- data/lib/merge_ruby_client/filestorage/types/permission.rb +4 -4
- data/lib/merge_ruby_client/filestorage/types/remote_field_api.rb +2 -16
- data/lib/merge_ruby_client/filestorage/types/user.rb +4 -4
- data/lib/merge_ruby_client/hris/audit_trail/client.rb +2 -4
- data/lib/merge_ruby_client/hris/client.rb +7 -0
- data/lib/merge_ruby_client/hris/groups/client.rb +2 -10
- data/lib/merge_ruby_client/hris/link_token/client.rb +4 -8
- data/lib/merge_ruby_client/hris/selective_sync/client.rb +218 -0
- data/lib/merge_ruby_client/hris/types/audit_log_event.rb +0 -6
- data/lib/merge_ruby_client/hris/types/bank_info.rb +4 -4
- data/lib/merge_ruby_client/hris/types/benefit.rb +4 -4
- data/lib/merge_ruby_client/hris/types/company.rb +4 -4
- data/lib/merge_ruby_client/hris/types/condition_schema.rb +136 -0
- data/lib/merge_ruby_client/hris/types/condition_type_enum.rb +22 -0
- data/lib/merge_ruby_client/hris/types/deduction.rb +4 -4
- data/lib/merge_ruby_client/hris/types/dependent.rb +4 -4
- data/lib/merge_ruby_client/hris/types/earning.rb +4 -4
- data/lib/merge_ruby_client/hris/types/employee.rb +4 -4
- data/lib/merge_ruby_client/hris/types/employee_payroll_run.rb +4 -4
- data/lib/merge_ruby_client/hris/types/employer_benefit.rb +4 -4
- data/lib/merge_ruby_client/hris/types/employment.rb +4 -4
- data/lib/merge_ruby_client/hris/types/event_type_enum.rb +0 -6
- data/lib/merge_ruby_client/hris/types/group.rb +5 -19
- data/lib/merge_ruby_client/hris/types/linked_account_condition.rb +104 -0
- data/lib/merge_ruby_client/hris/types/linked_account_condition_request.rb +87 -0
- data/lib/merge_ruby_client/hris/types/linked_account_selective_sync_configuration.rb +65 -0
- data/lib/merge_ruby_client/hris/types/linked_account_selective_sync_configuration_request.rb +63 -0
- data/lib/merge_ruby_client/hris/types/location.rb +4 -4
- data/lib/merge_ruby_client/hris/types/operator_schema.rb +68 -0
- data/lib/merge_ruby_client/hris/types/paginated_condition_schema_list.rb +80 -0
- data/lib/merge_ruby_client/hris/types/pay_group.rb +4 -4
- data/lib/merge_ruby_client/hris/types/payroll_run.rb +4 -4
- data/lib/merge_ruby_client/hris/types/remote_field_api.rb +2 -16
- data/lib/merge_ruby_client/hris/types/tax.rb +4 -4
- data/lib/merge_ruby_client/hris/types/team.rb +4 -4
- data/lib/merge_ruby_client/hris/types/time_off.rb +4 -4
- data/lib/merge_ruby_client/hris/types/time_off_balance.rb +4 -4
- data/lib/merge_ruby_client/hris/types/timesheet_entry.rb +4 -4
- data/lib/merge_ruby_client/ticketing/audit_trail/client.rb +2 -4
- data/lib/merge_ruby_client/ticketing/client.rb +7 -0
- data/lib/merge_ruby_client/ticketing/contacts/client.rb +0 -127
- data/lib/merge_ruby_client/ticketing/link_token/client.rb +4 -8
- data/lib/merge_ruby_client/ticketing/selective_sync/client.rb +218 -0
- data/lib/merge_ruby_client/ticketing/types/account.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/attachment.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/audit_log_event.rb +0 -6
- data/lib/merge_ruby_client/ticketing/types/collection.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/comment.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/condition_schema.rb +136 -0
- data/lib/merge_ruby_client/ticketing/types/condition_type_enum.rb +22 -0
- data/lib/merge_ruby_client/ticketing/types/contact.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/event_type_enum.rb +0 -6
- data/lib/merge_ruby_client/ticketing/types/linked_account_condition.rb +104 -0
- data/lib/merge_ruby_client/ticketing/types/linked_account_condition_request.rb +87 -0
- data/lib/merge_ruby_client/ticketing/types/linked_account_selective_sync_configuration.rb +65 -0
- data/lib/merge_ruby_client/ticketing/types/linked_account_selective_sync_configuration_request.rb +63 -0
- data/lib/merge_ruby_client/ticketing/types/operator_schema.rb +68 -0
- data/lib/merge_ruby_client/ticketing/types/paginated_condition_schema_list.rb +80 -0
- data/lib/merge_ruby_client/ticketing/types/project.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/remote_field_api.rb +2 -16
- data/lib/merge_ruby_client/ticketing/types/role.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/tag.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/team.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/ticket.rb +4 -4
- data/lib/merge_ruby_client/ticketing/types/user.rb +4 -4
- data/lib/merge_ruby_client.rb +7 -7
- data/lib/requests.rb +2 -12
- data/lib/types_export.rb +153 -115
- metadata +56 -12
- data/lib/merge_ruby_client/accounting/types/payment_type_enum.rb +0 -12
- data/lib/merge_ruby_client/accounting/types/remote_field_api_coverage.rb +0 -54
- data/lib/merge_ruby_client/ats/types/remote_field_api_coverage.rb +0 -54
- data/lib/merge_ruby_client/crm/types/remote_field_api_coverage.rb +0 -54
- data/lib/merge_ruby_client/filestorage/types/remote_field_api_coverage.rb +0 -54
- data/lib/merge_ruby_client/hris/types/remote_field_api_coverage.rb +0 -54
- data/lib/merge_ruby_client/ticketing/types/contact_request.rb +0 -125
- data/lib/merge_ruby_client/ticketing/types/contact_request_account.rb +0 -56
- data/lib/merge_ruby_client/ticketing/types/remote_field_api_coverage.rb +0 -54
- data/lib/merge_ruby_client/ticketing/types/ticketing_contact_response.rb +0 -101
|
@@ -31,9 +31,9 @@ module Merge
|
|
|
31
31
|
attr_reader :id
|
|
32
32
|
# @return [String] The third-party API ID of the matching object.
|
|
33
33
|
attr_reader :remote_id
|
|
34
|
-
# @return [DateTime]
|
|
34
|
+
# @return [DateTime]
|
|
35
35
|
attr_reader :created_at
|
|
36
|
-
# @return [DateTime]
|
|
36
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
37
37
|
attr_reader :modified_at
|
|
38
38
|
# @return [String] The employee's number that appears in the third-party integration's UI.
|
|
39
39
|
attr_reader :employee_number
|
|
@@ -137,8 +137,8 @@ module Merge
|
|
|
137
137
|
|
|
138
138
|
# @param id [String]
|
|
139
139
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
140
|
-
# @param created_at [DateTime]
|
|
141
|
-
# @param modified_at [DateTime]
|
|
140
|
+
# @param created_at [DateTime]
|
|
141
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
142
142
|
# @param employee_number [String] The employee's number that appears in the third-party integration's UI.
|
|
143
143
|
# @param company [Merge::Hris::EmployeeCompany] The ID of the employee's company.
|
|
144
144
|
# @param first_name [String] The employee's first name.
|
|
@@ -24,9 +24,9 @@ module Merge
|
|
|
24
24
|
attr_reader :id
|
|
25
25
|
# @return [String] The third-party API ID of the matching object.
|
|
26
26
|
attr_reader :remote_id
|
|
27
|
-
# @return [DateTime]
|
|
27
|
+
# @return [DateTime]
|
|
28
28
|
attr_reader :created_at
|
|
29
|
-
# @return [DateTime]
|
|
29
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
30
30
|
attr_reader :modified_at
|
|
31
31
|
# @return [Merge::Hris::EmployeePayrollRunEmployee] The employee whose payroll is being run.
|
|
32
32
|
attr_reader :employee
|
|
@@ -67,8 +67,8 @@ module Merge
|
|
|
67
67
|
|
|
68
68
|
# @param id [String]
|
|
69
69
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
70
|
-
# @param created_at [DateTime]
|
|
71
|
-
# @param modified_at [DateTime]
|
|
70
|
+
# @param created_at [DateTime]
|
|
71
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
72
72
|
# @param employee [Merge::Hris::EmployeePayrollRunEmployee] The employee whose payroll is being run.
|
|
73
73
|
# @param payroll_run [Merge::Hris::EmployeePayrollRunPayrollRun] The payroll being run.
|
|
74
74
|
# @param gross_pay [Float] The total earnings throughout a given period for an employee before any
|
|
@@ -19,9 +19,9 @@ module Merge
|
|
|
19
19
|
attr_reader :id
|
|
20
20
|
# @return [String] The third-party API ID of the matching object.
|
|
21
21
|
attr_reader :remote_id
|
|
22
|
-
# @return [DateTime]
|
|
22
|
+
# @return [DateTime]
|
|
23
23
|
attr_reader :created_at
|
|
24
|
-
# @return [DateTime]
|
|
24
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
25
25
|
attr_reader :modified_at
|
|
26
26
|
# @return [Merge::Hris::BenefitPlanTypeEnum] The type of benefit plan.
|
|
27
27
|
# - `MEDICAL` - MEDICAL
|
|
@@ -53,8 +53,8 @@ module Merge
|
|
|
53
53
|
|
|
54
54
|
# @param id [String]
|
|
55
55
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
56
|
-
# @param created_at [DateTime]
|
|
57
|
-
# @param modified_at [DateTime]
|
|
56
|
+
# @param created_at [DateTime]
|
|
57
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
58
58
|
# @param benefit_plan_type [Merge::Hris::BenefitPlanTypeEnum] The type of benefit plan.
|
|
59
59
|
# - `MEDICAL` - MEDICAL
|
|
60
60
|
# - `HEALTH_SAVINGS` - HEALTH_SAVINGS
|
|
@@ -28,9 +28,9 @@ module Merge
|
|
|
28
28
|
attr_reader :id
|
|
29
29
|
# @return [String] The third-party API ID of the matching object.
|
|
30
30
|
attr_reader :remote_id
|
|
31
|
-
# @return [DateTime]
|
|
31
|
+
# @return [DateTime]
|
|
32
32
|
attr_reader :created_at
|
|
33
|
-
# @return [DateTime]
|
|
33
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
34
34
|
attr_reader :modified_at
|
|
35
35
|
# @return [Merge::Hris::EmploymentEmployee] The employee holding this position.
|
|
36
36
|
attr_reader :employee
|
|
@@ -402,8 +402,8 @@ module Merge
|
|
|
402
402
|
|
|
403
403
|
# @param id [String]
|
|
404
404
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
405
|
-
# @param created_at [DateTime]
|
|
406
|
-
# @param modified_at [DateTime]
|
|
405
|
+
# @param created_at [DateTime]
|
|
406
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
407
407
|
# @param employee [Merge::Hris::EmploymentEmployee] The employee holding this position.
|
|
408
408
|
# @param job_title [String] The position's title.
|
|
409
409
|
# @param pay_rate [Float] The position's pay rate in dollars.
|
|
@@ -43,9 +43,6 @@ module Merge
|
|
|
43
43
|
# - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC
|
|
44
44
|
# - `MUTED_ISSUE` - MUTED_ISSUE
|
|
45
45
|
# - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK
|
|
46
|
-
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
47
|
-
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
48
|
-
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
49
46
|
class EventTypeEnum
|
|
50
47
|
CREATED_REMOTE_PRODUCTION_API_KEY = "CREATED_REMOTE_PRODUCTION_API_KEY"
|
|
51
48
|
DELETED_REMOTE_PRODUCTION_API_KEY = "DELETED_REMOTE_PRODUCTION_API_KEY"
|
|
@@ -81,9 +78,6 @@ module Merge
|
|
|
81
78
|
FORCED_LINKED_ACCOUNT_RESYNC = "FORCED_LINKED_ACCOUNT_RESYNC"
|
|
82
79
|
MUTED_ISSUE = "MUTED_ISSUE"
|
|
83
80
|
GENERATED_MAGIC_LINK = "GENERATED_MAGIC_LINK"
|
|
84
|
-
ENABLED_MERGE_WEBHOOK = "ENABLED_MERGE_WEBHOOK"
|
|
85
|
-
DISABLED_MERGE_WEBHOOK = "DISABLED_MERGE_WEBHOOK"
|
|
86
|
-
MERGE_WEBHOOK_TARGET_CHANGED = "MERGE_WEBHOOK_TARGET_CHANGED"
|
|
87
81
|
end
|
|
88
82
|
end
|
|
89
83
|
end
|
|
@@ -20,9 +20,9 @@ module Merge
|
|
|
20
20
|
attr_reader :id
|
|
21
21
|
# @return [String] The third-party API ID of the matching object.
|
|
22
22
|
attr_reader :remote_id
|
|
23
|
-
# @return [DateTime]
|
|
23
|
+
# @return [DateTime]
|
|
24
24
|
attr_reader :created_at
|
|
25
|
-
# @return [DateTime]
|
|
25
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
26
26
|
attr_reader :modified_at
|
|
27
27
|
# @return [String] The parent group for this group.
|
|
28
28
|
attr_reader :parent_group
|
|
@@ -38,11 +38,6 @@ module Merge
|
|
|
38
38
|
# @return [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
39
39
|
# platform.
|
|
40
40
|
attr_reader :remote_was_deleted
|
|
41
|
-
# @return [Boolean] Indicates whether the Group refers to a team in the third party platform. Note
|
|
42
|
-
# that this is an opinionated view based on how Merge observes most organizations
|
|
43
|
-
# representing teams in each third party platform. If your customer uses a
|
|
44
|
-
# platform different from most, there is a chance this will not be correct.
|
|
45
|
-
attr_reader :is_commonly_used_as_team
|
|
46
41
|
# @return [Hash{String => Object}]
|
|
47
42
|
attr_reader :field_mappings
|
|
48
43
|
# @return [Array<Merge::Hris::RemoteData>]
|
|
@@ -57,8 +52,8 @@ module Merge
|
|
|
57
52
|
|
|
58
53
|
# @param id [String]
|
|
59
54
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
60
|
-
# @param created_at [DateTime]
|
|
61
|
-
# @param modified_at [DateTime]
|
|
55
|
+
# @param created_at [DateTime]
|
|
56
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
62
57
|
# @param parent_group [String] The parent group for this group.
|
|
63
58
|
# @param name [String] The group name.
|
|
64
59
|
# @param type [Merge::Hris::GroupTypeEnum] The Group type returned directly from the third-party.
|
|
@@ -69,16 +64,12 @@ module Merge
|
|
|
69
64
|
# - `GROUP` - GROUP
|
|
70
65
|
# @param remote_was_deleted [Boolean] Indicates whether or not this object has been deleted in the third party
|
|
71
66
|
# platform.
|
|
72
|
-
# @param is_commonly_used_as_team [Boolean] Indicates whether the Group refers to a team in the third party platform. Note
|
|
73
|
-
# that this is an opinionated view based on how Merge observes most organizations
|
|
74
|
-
# representing teams in each third party platform. If your customer uses a
|
|
75
|
-
# platform different from most, there is a chance this will not be correct.
|
|
76
67
|
# @param field_mappings [Hash{String => Object}]
|
|
77
68
|
# @param remote_data [Array<Merge::Hris::RemoteData>]
|
|
78
69
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
79
70
|
# @return [Merge::Hris::Group]
|
|
80
71
|
def initialize(id: OMIT, remote_id: OMIT, created_at: OMIT, modified_at: OMIT, parent_group: OMIT, name: OMIT,
|
|
81
|
-
type: OMIT, remote_was_deleted: OMIT,
|
|
72
|
+
type: OMIT, remote_was_deleted: OMIT, field_mappings: OMIT, remote_data: OMIT, additional_properties: nil)
|
|
82
73
|
@id = id if id != OMIT
|
|
83
74
|
@remote_id = remote_id if remote_id != OMIT
|
|
84
75
|
@created_at = created_at if created_at != OMIT
|
|
@@ -87,7 +78,6 @@ module Merge
|
|
|
87
78
|
@name = name if name != OMIT
|
|
88
79
|
@type = type if type != OMIT
|
|
89
80
|
@remote_was_deleted = remote_was_deleted if remote_was_deleted != OMIT
|
|
90
|
-
@is_commonly_used_as_team = is_commonly_used_as_team if is_commonly_used_as_team != OMIT
|
|
91
81
|
@field_mappings = field_mappings if field_mappings != OMIT
|
|
92
82
|
@remote_data = remote_data if remote_data != OMIT
|
|
93
83
|
@additional_properties = additional_properties
|
|
@@ -100,7 +90,6 @@ module Merge
|
|
|
100
90
|
"name": name,
|
|
101
91
|
"type": type,
|
|
102
92
|
"remote_was_deleted": remote_was_deleted,
|
|
103
|
-
"is_commonly_used_as_team": is_commonly_used_as_team,
|
|
104
93
|
"field_mappings": field_mappings,
|
|
105
94
|
"remote_data": remote_data
|
|
106
95
|
}.reject do |_k, v|
|
|
@@ -123,7 +112,6 @@ module Merge
|
|
|
123
112
|
name = struct["name"]
|
|
124
113
|
type = struct["type"]
|
|
125
114
|
remote_was_deleted = struct["remote_was_deleted"]
|
|
126
|
-
is_commonly_used_as_team = struct["is_commonly_used_as_team"]
|
|
127
115
|
field_mappings = struct["field_mappings"]
|
|
128
116
|
remote_data = parsed_json["remote_data"]&.map do |v|
|
|
129
117
|
v = v.to_json
|
|
@@ -138,7 +126,6 @@ module Merge
|
|
|
138
126
|
name: name,
|
|
139
127
|
type: type,
|
|
140
128
|
remote_was_deleted: remote_was_deleted,
|
|
141
|
-
is_commonly_used_as_team: is_commonly_used_as_team,
|
|
142
129
|
field_mappings: field_mappings,
|
|
143
130
|
remote_data: remote_data,
|
|
144
131
|
additional_properties: struct
|
|
@@ -167,7 +154,6 @@ module Merge
|
|
|
167
154
|
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
|
168
155
|
obj.type&.is_a?(Merge::Hris::GroupTypeEnum) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
|
169
156
|
obj.remote_was_deleted&.is_a?(Boolean) != false || raise("Passed value for field obj.remote_was_deleted is not the expected type, validation failed.")
|
|
170
|
-
obj.is_commonly_used_as_team&.is_a?(Boolean) != false || raise("Passed value for field obj.is_commonly_used_as_team is not the expected type, validation failed.")
|
|
171
157
|
obj.field_mappings&.is_a?(Hash) != false || raise("Passed value for field obj.field_mappings is not the expected type, validation failed.")
|
|
172
158
|
obj.remote_data&.is_a?(Array) != false || raise("Passed value for field obj.remote_data is not the expected type, validation failed.")
|
|
173
159
|
end
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "ostruct"
|
|
4
|
+
require "json"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Hris
|
|
8
|
+
class LinkedAccountCondition
|
|
9
|
+
# @return [String] The ID indicating which condition schema to use for a specific condition.
|
|
10
|
+
attr_reader :condition_schema_id
|
|
11
|
+
# @return [String] The common model for a specific condition.
|
|
12
|
+
attr_reader :common_model
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_reader :native_name
|
|
15
|
+
# @return [String] The operator for a specific condition.
|
|
16
|
+
attr_reader :operator
|
|
17
|
+
# @return [Object]
|
|
18
|
+
attr_reader :value
|
|
19
|
+
# @return [String]
|
|
20
|
+
attr_reader :field_name
|
|
21
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
22
|
+
attr_reader :additional_properties
|
|
23
|
+
# @return [Object]
|
|
24
|
+
attr_reader :_field_set
|
|
25
|
+
protected :_field_set
|
|
26
|
+
|
|
27
|
+
OMIT = Object.new
|
|
28
|
+
|
|
29
|
+
# @param condition_schema_id [String] The ID indicating which condition schema to use for a specific condition.
|
|
30
|
+
# @param common_model [String] The common model for a specific condition.
|
|
31
|
+
# @param native_name [String]
|
|
32
|
+
# @param operator [String] The operator for a specific condition.
|
|
33
|
+
# @param value [Object]
|
|
34
|
+
# @param field_name [String]
|
|
35
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
36
|
+
# @return [Merge::Hris::LinkedAccountCondition]
|
|
37
|
+
def initialize(condition_schema_id:, operator:, common_model: OMIT, native_name: OMIT, value: OMIT,
|
|
38
|
+
field_name: OMIT, additional_properties: nil)
|
|
39
|
+
@condition_schema_id = condition_schema_id
|
|
40
|
+
@common_model = common_model if common_model != OMIT
|
|
41
|
+
@native_name = native_name if native_name != OMIT
|
|
42
|
+
@operator = operator
|
|
43
|
+
@value = value if value != OMIT
|
|
44
|
+
@field_name = field_name if field_name != OMIT
|
|
45
|
+
@additional_properties = additional_properties
|
|
46
|
+
@_field_set = {
|
|
47
|
+
"condition_schema_id": condition_schema_id,
|
|
48
|
+
"common_model": common_model,
|
|
49
|
+
"native_name": native_name,
|
|
50
|
+
"operator": operator,
|
|
51
|
+
"value": value,
|
|
52
|
+
"field_name": field_name
|
|
53
|
+
}.reject do |_k, v|
|
|
54
|
+
v == OMIT
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Deserialize a JSON object to an instance of LinkedAccountCondition
|
|
59
|
+
#
|
|
60
|
+
# @param json_object [String]
|
|
61
|
+
# @return [Merge::Hris::LinkedAccountCondition]
|
|
62
|
+
def self.from_json(json_object:)
|
|
63
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
64
|
+
condition_schema_id = struct["condition_schema_id"]
|
|
65
|
+
common_model = struct["common_model"]
|
|
66
|
+
native_name = struct["native_name"]
|
|
67
|
+
operator = struct["operator"]
|
|
68
|
+
value = struct["value"]
|
|
69
|
+
field_name = struct["field_name"]
|
|
70
|
+
new(
|
|
71
|
+
condition_schema_id: condition_schema_id,
|
|
72
|
+
common_model: common_model,
|
|
73
|
+
native_name: native_name,
|
|
74
|
+
operator: operator,
|
|
75
|
+
value: value,
|
|
76
|
+
field_name: field_name,
|
|
77
|
+
additional_properties: struct
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Serialize an instance of LinkedAccountCondition to a JSON object
|
|
82
|
+
#
|
|
83
|
+
# @return [String]
|
|
84
|
+
def to_json(*_args)
|
|
85
|
+
@_field_set&.to_json
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
89
|
+
# hash and check each fields type against the current object's property
|
|
90
|
+
# definitions.
|
|
91
|
+
#
|
|
92
|
+
# @param obj [Object]
|
|
93
|
+
# @return [Void]
|
|
94
|
+
def self.validate_raw(obj:)
|
|
95
|
+
obj.condition_schema_id.is_a?(String) != false || raise("Passed value for field obj.condition_schema_id is not the expected type, validation failed.")
|
|
96
|
+
obj.common_model&.is_a?(String) != false || raise("Passed value for field obj.common_model is not the expected type, validation failed.")
|
|
97
|
+
obj.native_name&.is_a?(String) != false || raise("Passed value for field obj.native_name is not the expected type, validation failed.")
|
|
98
|
+
obj.operator.is_a?(String) != false || raise("Passed value for field obj.operator is not the expected type, validation failed.")
|
|
99
|
+
obj.value&.is_a?(Object) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
|
|
100
|
+
obj.field_name&.is_a?(String) != false || raise("Passed value for field obj.field_name is not the expected type, validation failed.")
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "ostruct"
|
|
4
|
+
require "json"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Hris
|
|
8
|
+
class LinkedAccountConditionRequest
|
|
9
|
+
# @return [String] The ID indicating which Linked Account Condition this is.
|
|
10
|
+
attr_reader :id
|
|
11
|
+
# @return [String] The ID indicating which condition schema to use for a specific condition.
|
|
12
|
+
attr_reader :condition_schema_id
|
|
13
|
+
# @return [String] The operator for a specific condition.
|
|
14
|
+
attr_reader :operator
|
|
15
|
+
# @return [Object]
|
|
16
|
+
attr_reader :value
|
|
17
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
18
|
+
attr_reader :additional_properties
|
|
19
|
+
# @return [Object]
|
|
20
|
+
attr_reader :_field_set
|
|
21
|
+
protected :_field_set
|
|
22
|
+
|
|
23
|
+
OMIT = Object.new
|
|
24
|
+
|
|
25
|
+
# @param id [String] The ID indicating which Linked Account Condition this is.
|
|
26
|
+
# @param condition_schema_id [String] The ID indicating which condition schema to use for a specific condition.
|
|
27
|
+
# @param operator [String] The operator for a specific condition.
|
|
28
|
+
# @param value [Object]
|
|
29
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
30
|
+
# @return [Merge::Hris::LinkedAccountConditionRequest]
|
|
31
|
+
def initialize(condition_schema_id:, operator:, value:, id: OMIT, additional_properties: nil)
|
|
32
|
+
@id = id if id != OMIT
|
|
33
|
+
@condition_schema_id = condition_schema_id
|
|
34
|
+
@operator = operator
|
|
35
|
+
@value = value
|
|
36
|
+
@additional_properties = additional_properties
|
|
37
|
+
@_field_set = {
|
|
38
|
+
"id": id,
|
|
39
|
+
"condition_schema_id": condition_schema_id,
|
|
40
|
+
"operator": operator,
|
|
41
|
+
"value": value
|
|
42
|
+
}.reject do |_k, v|
|
|
43
|
+
v == OMIT
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Deserialize a JSON object to an instance of LinkedAccountConditionRequest
|
|
48
|
+
#
|
|
49
|
+
# @param json_object [String]
|
|
50
|
+
# @return [Merge::Hris::LinkedAccountConditionRequest]
|
|
51
|
+
def self.from_json(json_object:)
|
|
52
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
53
|
+
id = struct["id"]
|
|
54
|
+
condition_schema_id = struct["condition_schema_id"]
|
|
55
|
+
operator = struct["operator"]
|
|
56
|
+
value = struct["value"]
|
|
57
|
+
new(
|
|
58
|
+
id: id,
|
|
59
|
+
condition_schema_id: condition_schema_id,
|
|
60
|
+
operator: operator,
|
|
61
|
+
value: value,
|
|
62
|
+
additional_properties: struct
|
|
63
|
+
)
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Serialize an instance of LinkedAccountConditionRequest to a JSON object
|
|
67
|
+
#
|
|
68
|
+
# @return [String]
|
|
69
|
+
def to_json(*_args)
|
|
70
|
+
@_field_set&.to_json
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
74
|
+
# hash and check each fields type against the current object's property
|
|
75
|
+
# definitions.
|
|
76
|
+
#
|
|
77
|
+
# @param obj [Object]
|
|
78
|
+
# @return [Void]
|
|
79
|
+
def self.validate_raw(obj:)
|
|
80
|
+
obj.id&.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
|
81
|
+
obj.condition_schema_id.is_a?(String) != false || raise("Passed value for field obj.condition_schema_id is not the expected type, validation failed.")
|
|
82
|
+
obj.operator.is_a?(String) != false || raise("Passed value for field obj.operator is not the expected type, validation failed.")
|
|
83
|
+
obj.value.is_a?(Object) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "linked_account_condition"
|
|
4
|
+
require "ostruct"
|
|
5
|
+
require "json"
|
|
6
|
+
|
|
7
|
+
module Merge
|
|
8
|
+
module Hris
|
|
9
|
+
class LinkedAccountSelectiveSyncConfiguration
|
|
10
|
+
# @return [Array<Merge::Hris::LinkedAccountCondition>] The conditions belonging to a selective sync.
|
|
11
|
+
attr_reader :linked_account_conditions
|
|
12
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
13
|
+
attr_reader :additional_properties
|
|
14
|
+
# @return [Object]
|
|
15
|
+
attr_reader :_field_set
|
|
16
|
+
protected :_field_set
|
|
17
|
+
|
|
18
|
+
OMIT = Object.new
|
|
19
|
+
|
|
20
|
+
# @param linked_account_conditions [Array<Merge::Hris::LinkedAccountCondition>] The conditions belonging to a selective sync.
|
|
21
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
22
|
+
# @return [Merge::Hris::LinkedAccountSelectiveSyncConfiguration]
|
|
23
|
+
def initialize(linked_account_conditions: OMIT, additional_properties: nil)
|
|
24
|
+
@linked_account_conditions = linked_account_conditions if linked_account_conditions != OMIT
|
|
25
|
+
@additional_properties = additional_properties
|
|
26
|
+
@_field_set = { "linked_account_conditions": linked_account_conditions }.reject do |_k, v|
|
|
27
|
+
v == OMIT
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Deserialize a JSON object to an instance of
|
|
32
|
+
# LinkedAccountSelectiveSyncConfiguration
|
|
33
|
+
#
|
|
34
|
+
# @param json_object [String]
|
|
35
|
+
# @return [Merge::Hris::LinkedAccountSelectiveSyncConfiguration]
|
|
36
|
+
def self.from_json(json_object:)
|
|
37
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
38
|
+
parsed_json = JSON.parse(json_object)
|
|
39
|
+
linked_account_conditions = parsed_json["linked_account_conditions"]&.map do |v|
|
|
40
|
+
v = v.to_json
|
|
41
|
+
Merge::Hris::LinkedAccountCondition.from_json(json_object: v)
|
|
42
|
+
end
|
|
43
|
+
new(linked_account_conditions: linked_account_conditions, additional_properties: struct)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Serialize an instance of LinkedAccountSelectiveSyncConfiguration to a JSON
|
|
47
|
+
# object
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
def to_json(*_args)
|
|
51
|
+
@_field_set&.to_json
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
55
|
+
# hash and check each fields type against the current object's property
|
|
56
|
+
# definitions.
|
|
57
|
+
#
|
|
58
|
+
# @param obj [Object]
|
|
59
|
+
# @return [Void]
|
|
60
|
+
def self.validate_raw(obj:)
|
|
61
|
+
obj.linked_account_conditions&.is_a?(Array) != false || raise("Passed value for field obj.linked_account_conditions is not the expected type, validation failed.")
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "linked_account_condition_request"
|
|
4
|
+
require "ostruct"
|
|
5
|
+
require "json"
|
|
6
|
+
|
|
7
|
+
module Merge
|
|
8
|
+
module Hris
|
|
9
|
+
class LinkedAccountSelectiveSyncConfigurationRequest
|
|
10
|
+
# @return [Array<Merge::Hris::LinkedAccountConditionRequest>] The conditions belonging to a selective sync.
|
|
11
|
+
attr_reader :linked_account_conditions
|
|
12
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
13
|
+
attr_reader :additional_properties
|
|
14
|
+
# @return [Object]
|
|
15
|
+
attr_reader :_field_set
|
|
16
|
+
protected :_field_set
|
|
17
|
+
|
|
18
|
+
OMIT = Object.new
|
|
19
|
+
|
|
20
|
+
# @param linked_account_conditions [Array<Merge::Hris::LinkedAccountConditionRequest>] The conditions belonging to a selective sync.
|
|
21
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
22
|
+
# @return [Merge::Hris::LinkedAccountSelectiveSyncConfigurationRequest]
|
|
23
|
+
def initialize(linked_account_conditions:, additional_properties: nil)
|
|
24
|
+
@linked_account_conditions = linked_account_conditions
|
|
25
|
+
@additional_properties = additional_properties
|
|
26
|
+
@_field_set = { "linked_account_conditions": linked_account_conditions }
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Deserialize a JSON object to an instance of
|
|
30
|
+
# LinkedAccountSelectiveSyncConfigurationRequest
|
|
31
|
+
#
|
|
32
|
+
# @param json_object [String]
|
|
33
|
+
# @return [Merge::Hris::LinkedAccountSelectiveSyncConfigurationRequest]
|
|
34
|
+
def self.from_json(json_object:)
|
|
35
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
36
|
+
parsed_json = JSON.parse(json_object)
|
|
37
|
+
linked_account_conditions = parsed_json["linked_account_conditions"]&.map do |v|
|
|
38
|
+
v = v.to_json
|
|
39
|
+
Merge::Hris::LinkedAccountConditionRequest.from_json(json_object: v)
|
|
40
|
+
end
|
|
41
|
+
new(linked_account_conditions: linked_account_conditions, additional_properties: struct)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Serialize an instance of LinkedAccountSelectiveSyncConfigurationRequest to a
|
|
45
|
+
# JSON object
|
|
46
|
+
#
|
|
47
|
+
# @return [String]
|
|
48
|
+
def to_json(*_args)
|
|
49
|
+
@_field_set&.to_json
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
53
|
+
# hash and check each fields type against the current object's property
|
|
54
|
+
# definitions.
|
|
55
|
+
#
|
|
56
|
+
# @param obj [Object]
|
|
57
|
+
# @return [Void]
|
|
58
|
+
def self.validate_raw(obj:)
|
|
59
|
+
obj.linked_account_conditions.is_a?(Array) != false || raise("Passed value for field obj.linked_account_conditions is not the expected type, validation failed.")
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -21,9 +21,9 @@ module Merge
|
|
|
21
21
|
attr_reader :id
|
|
22
22
|
# @return [String] The third-party API ID of the matching object.
|
|
23
23
|
attr_reader :remote_id
|
|
24
|
-
# @return [DateTime]
|
|
24
|
+
# @return [DateTime]
|
|
25
25
|
attr_reader :created_at
|
|
26
|
-
# @return [DateTime]
|
|
26
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
27
27
|
attr_reader :modified_at
|
|
28
28
|
# @return [String] The location's name.
|
|
29
29
|
attr_reader :name
|
|
@@ -311,8 +311,8 @@ module Merge
|
|
|
311
311
|
|
|
312
312
|
# @param id [String]
|
|
313
313
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
314
|
-
# @param created_at [DateTime]
|
|
315
|
-
# @param modified_at [DateTime]
|
|
314
|
+
# @param created_at [DateTime]
|
|
315
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
316
316
|
# @param name [String] The location's name.
|
|
317
317
|
# @param phone_number [String] The location's phone number.
|
|
318
318
|
# @param street_1 [String] Line 1 of the location's street address.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "ostruct"
|
|
4
|
+
require "json"
|
|
5
|
+
|
|
6
|
+
module Merge
|
|
7
|
+
module Hris
|
|
8
|
+
class OperatorSchema
|
|
9
|
+
# @return [String] The operator for which an operator schema is defined.
|
|
10
|
+
attr_reader :operator
|
|
11
|
+
# @return [Boolean] Whether the operator can be repeated multiple times.
|
|
12
|
+
attr_reader :is_unique
|
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
|
14
|
+
attr_reader :additional_properties
|
|
15
|
+
# @return [Object]
|
|
16
|
+
attr_reader :_field_set
|
|
17
|
+
protected :_field_set
|
|
18
|
+
|
|
19
|
+
OMIT = Object.new
|
|
20
|
+
|
|
21
|
+
# @param operator [String] The operator for which an operator schema is defined.
|
|
22
|
+
# @param is_unique [Boolean] Whether the operator can be repeated multiple times.
|
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
24
|
+
# @return [Merge::Hris::OperatorSchema]
|
|
25
|
+
def initialize(operator: OMIT, is_unique: OMIT, additional_properties: nil)
|
|
26
|
+
@operator = operator if operator != OMIT
|
|
27
|
+
@is_unique = is_unique if is_unique != OMIT
|
|
28
|
+
@additional_properties = additional_properties
|
|
29
|
+
@_field_set = { "operator": operator, "is_unique": is_unique }.reject do |_k, v|
|
|
30
|
+
v == OMIT
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Deserialize a JSON object to an instance of OperatorSchema
|
|
35
|
+
#
|
|
36
|
+
# @param json_object [String]
|
|
37
|
+
# @return [Merge::Hris::OperatorSchema]
|
|
38
|
+
def self.from_json(json_object:)
|
|
39
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
|
40
|
+
operator = struct["operator"]
|
|
41
|
+
is_unique = struct["is_unique"]
|
|
42
|
+
new(
|
|
43
|
+
operator: operator,
|
|
44
|
+
is_unique: is_unique,
|
|
45
|
+
additional_properties: struct
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Serialize an instance of OperatorSchema to a JSON object
|
|
50
|
+
#
|
|
51
|
+
# @return [String]
|
|
52
|
+
def to_json(*_args)
|
|
53
|
+
@_field_set&.to_json
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
|
57
|
+
# hash and check each fields type against the current object's property
|
|
58
|
+
# definitions.
|
|
59
|
+
#
|
|
60
|
+
# @param obj [Object]
|
|
61
|
+
# @return [Void]
|
|
62
|
+
def self.validate_raw(obj:)
|
|
63
|
+
obj.operator&.is_a?(String) != false || raise("Passed value for field obj.operator is not the expected type, validation failed.")
|
|
64
|
+
obj.is_unique&.is_a?(Boolean) != false || raise("Passed value for field obj.is_unique is not the expected type, validation failed.")
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
end
|