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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5cf8081e1e93127353406c12f2a70b00ef83196811eb50cdf3826f26efeb21c
|
|
4
|
+
data.tar.gz: 52b3a58930fb9252bcb264d633bdd0af0bc6af13a95f58f0acae9f51d4995fc8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6b3944cba8d02186c3f7beb1c17a2af79a6564ef5f562a06d819bc71e77eb19898030e71a89c0bd8a30394d6f12527d9598a2088073e3b7407c60546f8254dcc
|
|
7
|
+
data.tar.gz: 798167e45072051fa4741d31f75d6deae1203d47d9e02229c8713ca4cd4265f7e95d8c15cd01ab4825c1c92b4dfff420bb27085639f83dec01fddb4c623db079
|
|
@@ -39,8 +39,7 @@ module Merge
|
|
|
39
39
|
# `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`,
|
|
40
40
|
# `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`,
|
|
41
41
|
# `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`,
|
|
42
|
-
# `MUTED_ISSUE`, `GENERATED_MAGIC_LINK
|
|
43
|
-
# `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
|
|
42
|
+
# `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`
|
|
44
43
|
# @param page_size [Integer] Number of results to return per page.
|
|
45
44
|
# @param start_date [String] If included, will only include audit trail events that occurred after this time
|
|
46
45
|
# @param user_email [String] If provided, this will return events associated with the specified user email.
|
|
@@ -110,8 +109,7 @@ module Merge
|
|
|
110
109
|
# `CHANGED_LINKED_ACCOUNT_FIELD_MAPPING`,
|
|
111
110
|
# `DELETED_INTEGRATION_WIDE_FIELD_MAPPING`,
|
|
112
111
|
# `DELETED_LINKED_ACCOUNT_FIELD_MAPPING`, `FORCED_LINKED_ACCOUNT_RESYNC`,
|
|
113
|
-
# `MUTED_ISSUE`, `GENERATED_MAGIC_LINK
|
|
114
|
-
# `DISABLED_MERGE_WEBHOOK`, `MERGE_WEBHOOK_TARGET_CHANGED`
|
|
112
|
+
# `MUTED_ISSUE`, `GENERATED_MAGIC_LINK`
|
|
115
113
|
# @param page_size [Integer] Number of results to return per page.
|
|
116
114
|
# @param start_date [String] If included, will only include audit trail events that occurred after this time
|
|
117
115
|
# @param user_email [String] If provided, this will return events associated with the specified user email.
|
|
@@ -32,6 +32,7 @@ require_relative "payments/client"
|
|
|
32
32
|
require_relative "phone_numbers/client"
|
|
33
33
|
require_relative "purchase_orders/client"
|
|
34
34
|
require_relative "regenerate_key/client"
|
|
35
|
+
require_relative "selective_sync/client"
|
|
35
36
|
require_relative "sync_status/client"
|
|
36
37
|
require_relative "force_resync/client"
|
|
37
38
|
require_relative "tax_rates/client"
|
|
@@ -105,6 +106,8 @@ module Merge
|
|
|
105
106
|
attr_reader :purchase_orders
|
|
106
107
|
# @return [Merge::Accounting::RegenerateKeyClient]
|
|
107
108
|
attr_reader :regenerate_key
|
|
109
|
+
# @return [Merge::Accounting::SelectiveSyncClient]
|
|
110
|
+
attr_reader :selective_sync
|
|
108
111
|
# @return [Merge::Accounting::SyncStatusClient]
|
|
109
112
|
attr_reader :sync_status
|
|
110
113
|
# @return [Merge::Accounting::ForceResyncClient]
|
|
@@ -154,6 +157,7 @@ module Merge
|
|
|
154
157
|
@phone_numbers = Merge::Accounting::PhoneNumbersClient.new(request_client: request_client)
|
|
155
158
|
@purchase_orders = Merge::Accounting::PurchaseOrdersClient.new(request_client: request_client)
|
|
156
159
|
@regenerate_key = Merge::Accounting::RegenerateKeyClient.new(request_client: request_client)
|
|
160
|
+
@selective_sync = Merge::Accounting::SelectiveSyncClient.new(request_client: request_client)
|
|
157
161
|
@sync_status = Merge::Accounting::SyncStatusClient.new(request_client: request_client)
|
|
158
162
|
@force_resync = Merge::Accounting::ForceResyncClient.new(request_client: request_client)
|
|
159
163
|
@tax_rates = Merge::Accounting::TaxRatesClient.new(request_client: request_client)
|
|
@@ -227,6 +231,8 @@ module Merge
|
|
|
227
231
|
attr_reader :purchase_orders
|
|
228
232
|
# @return [Merge::Accounting::AsyncRegenerateKeyClient]
|
|
229
233
|
attr_reader :regenerate_key
|
|
234
|
+
# @return [Merge::Accounting::AsyncSelectiveSyncClient]
|
|
235
|
+
attr_reader :selective_sync
|
|
230
236
|
# @return [Merge::Accounting::AsyncSyncStatusClient]
|
|
231
237
|
attr_reader :sync_status
|
|
232
238
|
# @return [Merge::Accounting::AsyncForceResyncClient]
|
|
@@ -276,6 +282,7 @@ module Merge
|
|
|
276
282
|
@phone_numbers = Merge::Accounting::AsyncPhoneNumbersClient.new(request_client: request_client)
|
|
277
283
|
@purchase_orders = Merge::Accounting::AsyncPurchaseOrdersClient.new(request_client: request_client)
|
|
278
284
|
@regenerate_key = Merge::Accounting::AsyncRegenerateKeyClient.new(request_client: request_client)
|
|
285
|
+
@selective_sync = Merge::Accounting::AsyncSelectiveSyncClient.new(request_client: request_client)
|
|
279
286
|
@sync_status = Merge::Accounting::AsyncSyncStatusClient.new(request_client: request_client)
|
|
280
287
|
@force_resync = Merge::Accounting::AsyncForceResyncClient.new(request_client: request_client)
|
|
281
288
|
@tax_rates = Merge::Accounting::AsyncTaxRatesClient.new(request_client: request_client)
|
|
@@ -46,7 +46,6 @@ module Merge
|
|
|
46
46
|
# apply to the account that is going to be linked. Any model or field not
|
|
47
47
|
# specified in link token payload will default to existing settings.
|
|
48
48
|
# @param language [String] The language code for the language to localize Merge Link to.
|
|
49
|
-
# @param integration_specific_config [Hash{String => Object}] A JSON object containing integration-specific configuration options.
|
|
50
49
|
# @param request_options [Merge::RequestOptions]
|
|
51
50
|
# @return [Merge::Accounting::LinkToken]
|
|
52
51
|
# @example
|
|
@@ -62,7 +61,7 @@ module Merge
|
|
|
62
61
|
# categories: [HRIS]
|
|
63
62
|
# )
|
|
64
63
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
|
65
|
-
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil,
|
|
64
|
+
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil, request_options: nil)
|
|
66
65
|
response = @request_client.conn.post do |req|
|
|
67
66
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
68
67
|
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
@@ -79,8 +78,7 @@ module Merge
|
|
|
79
78
|
should_create_magic_link_url: should_create_magic_link_url,
|
|
80
79
|
common_models: common_models,
|
|
81
80
|
category_common_model_scopes: category_common_model_scopes,
|
|
82
|
-
language: language
|
|
83
|
-
integration_specific_config: integration_specific_config
|
|
81
|
+
language: language
|
|
84
82
|
}.compact
|
|
85
83
|
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/link-token"
|
|
86
84
|
end
|
|
@@ -126,7 +124,6 @@ module Merge
|
|
|
126
124
|
# apply to the account that is going to be linked. Any model or field not
|
|
127
125
|
# specified in link token payload will default to existing settings.
|
|
128
126
|
# @param language [String] The language code for the language to localize Merge Link to.
|
|
129
|
-
# @param integration_specific_config [Hash{String => Object}] A JSON object containing integration-specific configuration options.
|
|
130
127
|
# @param request_options [Merge::RequestOptions]
|
|
131
128
|
# @return [Merge::Accounting::LinkToken]
|
|
132
129
|
# @example
|
|
@@ -142,7 +139,7 @@ module Merge
|
|
|
142
139
|
# categories: [HRIS]
|
|
143
140
|
# )
|
|
144
141
|
def create(end_user_email_address:, end_user_organization_name:, end_user_origin_id:, categories:,
|
|
145
|
-
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil,
|
|
142
|
+
integration: nil, link_expiry_mins: nil, should_create_magic_link_url: nil, common_models: nil, category_common_model_scopes: nil, language: nil, request_options: nil)
|
|
146
143
|
Async do
|
|
147
144
|
response = @request_client.conn.post do |req|
|
|
148
145
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
@@ -160,8 +157,7 @@ module Merge
|
|
|
160
157
|
should_create_magic_link_url: should_create_magic_link_url,
|
|
161
158
|
common_models: common_models,
|
|
162
159
|
category_common_model_scopes: category_common_model_scopes,
|
|
163
|
-
language: language
|
|
164
|
-
integration_specific_config: integration_specific_config
|
|
160
|
+
language: language
|
|
165
161
|
}.compact
|
|
166
162
|
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/link-token"
|
|
167
163
|
end
|
|
@@ -95,7 +95,6 @@ module Merge
|
|
|
95
95
|
# * :exchange_rate (String)
|
|
96
96
|
# * :company (Hash)
|
|
97
97
|
# * :total_amount (Float)
|
|
98
|
-
# * :type (Merge::Accounting::PaymentTypeEnum)
|
|
99
98
|
# * :tracking_categories (Array<Merge::Accounting::PaymentRequestTrackingCategoriesItem>)
|
|
100
99
|
# * :accounting_period (Hash)
|
|
101
100
|
# * :applied_to_lines (Array<Merge::Accounting::PaymentRequestAppliedToLinesItem>)
|
|
@@ -172,7 +171,6 @@ module Merge
|
|
|
172
171
|
# * :exchange_rate (String)
|
|
173
172
|
# * :company (Hash)
|
|
174
173
|
# * :total_amount (Float)
|
|
175
|
-
# * :type (Merge::Accounting::PaymentTypeEnum)
|
|
176
174
|
# * :tracking_categories (Array<Merge::Accounting::PatchedPaymentRequestTrackingCategoriesItem>)
|
|
177
175
|
# * :accounting_period (Hash)
|
|
178
176
|
# * :applied_to_lines (Array<Merge::Accounting::PatchedPaymentRequestAppliedToLinesItem>)
|
|
@@ -333,7 +331,6 @@ module Merge
|
|
|
333
331
|
# * :exchange_rate (String)
|
|
334
332
|
# * :company (Hash)
|
|
335
333
|
# * :total_amount (Float)
|
|
336
|
-
# * :type (Merge::Accounting::PaymentTypeEnum)
|
|
337
334
|
# * :tracking_categories (Array<Merge::Accounting::PaymentRequestTrackingCategoriesItem>)
|
|
338
335
|
# * :accounting_period (Hash)
|
|
339
336
|
# * :applied_to_lines (Array<Merge::Accounting::PaymentRequestAppliedToLinesItem>)
|
|
@@ -414,7 +411,6 @@ module Merge
|
|
|
414
411
|
# * :exchange_rate (String)
|
|
415
412
|
# * :company (Hash)
|
|
416
413
|
# * :total_amount (Float)
|
|
417
|
-
# * :type (Merge::Accounting::PaymentTypeEnum)
|
|
418
414
|
# * :tracking_categories (Array<Merge::Accounting::PatchedPaymentRequestTrackingCategoriesItem>)
|
|
419
415
|
# * :accounting_period (Hash)
|
|
420
416
|
# * :applied_to_lines (Array<Merge::Accounting::PatchedPaymentRequestAppliedToLinesItem>)
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "../../../requests"
|
|
4
|
+
require_relative "../types/linked_account_selective_sync_configuration"
|
|
5
|
+
require "json"
|
|
6
|
+
require_relative "../types/linked_account_selective_sync_configuration_request"
|
|
7
|
+
require_relative "../types/paginated_condition_schema_list"
|
|
8
|
+
require "async"
|
|
9
|
+
|
|
10
|
+
module Merge
|
|
11
|
+
module Accounting
|
|
12
|
+
class SelectiveSyncClient
|
|
13
|
+
# @return [Merge::RequestClient]
|
|
14
|
+
attr_reader :request_client
|
|
15
|
+
|
|
16
|
+
# @param request_client [Merge::RequestClient]
|
|
17
|
+
# @return [Merge::Accounting::SelectiveSyncClient]
|
|
18
|
+
def initialize(request_client:)
|
|
19
|
+
@request_client = request_client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# Get a linked account's selective syncs.
|
|
23
|
+
#
|
|
24
|
+
# @param request_options [Merge::RequestOptions]
|
|
25
|
+
# @return [Array<Merge::Accounting::LinkedAccountSelectiveSyncConfiguration>]
|
|
26
|
+
# @example
|
|
27
|
+
# api = Merge::Client.new(
|
|
28
|
+
# environment: Environment::PRODUCTION,
|
|
29
|
+
# base_url: "https://api.example.com",
|
|
30
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
31
|
+
# )
|
|
32
|
+
# api.accounting.configurations_list
|
|
33
|
+
def configurations_list(request_options: nil)
|
|
34
|
+
response = @request_client.conn.get do |req|
|
|
35
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
36
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
37
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
38
|
+
req.headers = { **req.headers, **(request_options&.additional_headers || {}) }.compact
|
|
39
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/selective-sync/configurations"
|
|
40
|
+
end
|
|
41
|
+
parsed_json = JSON.parse(response.body)
|
|
42
|
+
parsed_json&.map do |v|
|
|
43
|
+
v = v.to_json
|
|
44
|
+
Merge::Accounting::LinkedAccountSelectiveSyncConfiguration.from_json(json_object: v)
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Replace a linked account's selective syncs.
|
|
49
|
+
#
|
|
50
|
+
# @param sync_configurations [Array<Hash>] The selective syncs associated with a linked account.Request of type Array<Merge::Accounting::LinkedAccountSelectiveSyncConfigurationRequest>, as a Hash
|
|
51
|
+
# * :linked_account_conditions (Array<Merge::Accounting::LinkedAccountConditionRequest>)
|
|
52
|
+
# @param request_options [Merge::RequestOptions]
|
|
53
|
+
# @return [Array<Merge::Accounting::LinkedAccountSelectiveSyncConfiguration>]
|
|
54
|
+
# @example
|
|
55
|
+
# api = Merge::Client.new(
|
|
56
|
+
# environment: Environment::PRODUCTION,
|
|
57
|
+
# base_url: "https://api.example.com",
|
|
58
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
59
|
+
# )
|
|
60
|
+
# api.accounting.configurations_update(sync_configurations: [{ linked_account_conditions: }])
|
|
61
|
+
def configurations_update(sync_configurations:, request_options: nil)
|
|
62
|
+
response = @request_client.conn.put do |req|
|
|
63
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
64
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
65
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
66
|
+
req.headers = { **req.headers, **(request_options&.additional_headers || {}) }.compact
|
|
67
|
+
req.body = {
|
|
68
|
+
**(request_options&.additional_body_parameters || {}),
|
|
69
|
+
sync_configurations: sync_configurations
|
|
70
|
+
}.compact
|
|
71
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/selective-sync/configurations"
|
|
72
|
+
end
|
|
73
|
+
parsed_json = JSON.parse(response.body)
|
|
74
|
+
parsed_json&.map do |v|
|
|
75
|
+
v = v.to_json
|
|
76
|
+
Merge::Accounting::LinkedAccountSelectiveSyncConfiguration.from_json(json_object: v)
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Get metadata for the conditions available to a linked account.
|
|
81
|
+
#
|
|
82
|
+
# @param common_model [String]
|
|
83
|
+
# @param cursor [String] The pagination cursor value.
|
|
84
|
+
# @param page_size [Integer] Number of results to return per page.
|
|
85
|
+
# @param request_options [Merge::RequestOptions]
|
|
86
|
+
# @return [Merge::Accounting::PaginatedConditionSchemaList]
|
|
87
|
+
# @example
|
|
88
|
+
# api = Merge::Client.new(
|
|
89
|
+
# environment: Environment::PRODUCTION,
|
|
90
|
+
# base_url: "https://api.example.com",
|
|
91
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
92
|
+
# )
|
|
93
|
+
# api.accounting.meta_list
|
|
94
|
+
def meta_list(common_model: nil, cursor: nil, page_size: nil, request_options: nil)
|
|
95
|
+
response = @request_client.conn.get do |req|
|
|
96
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
97
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
98
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
99
|
+
req.headers = { **req.headers, **(request_options&.additional_headers || {}) }.compact
|
|
100
|
+
req.params = {
|
|
101
|
+
**(request_options&.additional_query_parameters || {}),
|
|
102
|
+
"common_model": common_model,
|
|
103
|
+
"cursor": cursor,
|
|
104
|
+
"page_size": page_size
|
|
105
|
+
}.compact
|
|
106
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/selective-sync/meta"
|
|
107
|
+
end
|
|
108
|
+
Merge::Accounting::PaginatedConditionSchemaList.from_json(json_object: response.body)
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
class AsyncSelectiveSyncClient
|
|
113
|
+
# @return [Merge::AsyncRequestClient]
|
|
114
|
+
attr_reader :request_client
|
|
115
|
+
|
|
116
|
+
# @param request_client [Merge::AsyncRequestClient]
|
|
117
|
+
# @return [Merge::Accounting::AsyncSelectiveSyncClient]
|
|
118
|
+
def initialize(request_client:)
|
|
119
|
+
@request_client = request_client
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Get a linked account's selective syncs.
|
|
123
|
+
#
|
|
124
|
+
# @param request_options [Merge::RequestOptions]
|
|
125
|
+
# @return [Array<Merge::Accounting::LinkedAccountSelectiveSyncConfiguration>]
|
|
126
|
+
# @example
|
|
127
|
+
# api = Merge::Client.new(
|
|
128
|
+
# environment: Environment::PRODUCTION,
|
|
129
|
+
# base_url: "https://api.example.com",
|
|
130
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
131
|
+
# )
|
|
132
|
+
# api.accounting.configurations_list
|
|
133
|
+
def configurations_list(request_options: nil)
|
|
134
|
+
Async do
|
|
135
|
+
response = @request_client.conn.get do |req|
|
|
136
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
137
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
138
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
139
|
+
req.headers = { **req.headers, **(request_options&.additional_headers || {}) }.compact
|
|
140
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/selective-sync/configurations"
|
|
141
|
+
end
|
|
142
|
+
parsed_json = JSON.parse(response.body)
|
|
143
|
+
parsed_json&.map do |v|
|
|
144
|
+
v = v.to_json
|
|
145
|
+
Merge::Accounting::LinkedAccountSelectiveSyncConfiguration.from_json(json_object: v)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Replace a linked account's selective syncs.
|
|
151
|
+
#
|
|
152
|
+
# @param sync_configurations [Array<Hash>] The selective syncs associated with a linked account.Request of type Array<Merge::Accounting::LinkedAccountSelectiveSyncConfigurationRequest>, as a Hash
|
|
153
|
+
# * :linked_account_conditions (Array<Merge::Accounting::LinkedAccountConditionRequest>)
|
|
154
|
+
# @param request_options [Merge::RequestOptions]
|
|
155
|
+
# @return [Array<Merge::Accounting::LinkedAccountSelectiveSyncConfiguration>]
|
|
156
|
+
# @example
|
|
157
|
+
# api = Merge::Client.new(
|
|
158
|
+
# environment: Environment::PRODUCTION,
|
|
159
|
+
# base_url: "https://api.example.com",
|
|
160
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
161
|
+
# )
|
|
162
|
+
# api.accounting.configurations_update(sync_configurations: [{ linked_account_conditions: }])
|
|
163
|
+
def configurations_update(sync_configurations:, request_options: nil)
|
|
164
|
+
Async do
|
|
165
|
+
response = @request_client.conn.put do |req|
|
|
166
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
167
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
168
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
169
|
+
req.headers = { **req.headers, **(request_options&.additional_headers || {}) }.compact
|
|
170
|
+
req.body = {
|
|
171
|
+
**(request_options&.additional_body_parameters || {}),
|
|
172
|
+
sync_configurations: sync_configurations
|
|
173
|
+
}.compact
|
|
174
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/selective-sync/configurations"
|
|
175
|
+
end
|
|
176
|
+
parsed_json = JSON.parse(response.body)
|
|
177
|
+
parsed_json&.map do |v|
|
|
178
|
+
v = v.to_json
|
|
179
|
+
Merge::Accounting::LinkedAccountSelectiveSyncConfiguration.from_json(json_object: v)
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Get metadata for the conditions available to a linked account.
|
|
185
|
+
#
|
|
186
|
+
# @param common_model [String]
|
|
187
|
+
# @param cursor [String] The pagination cursor value.
|
|
188
|
+
# @param page_size [Integer] Number of results to return per page.
|
|
189
|
+
# @param request_options [Merge::RequestOptions]
|
|
190
|
+
# @return [Merge::Accounting::PaginatedConditionSchemaList]
|
|
191
|
+
# @example
|
|
192
|
+
# api = Merge::Client.new(
|
|
193
|
+
# environment: Environment::PRODUCTION,
|
|
194
|
+
# base_url: "https://api.example.com",
|
|
195
|
+
# api_key: "YOUR_AUTH_TOKEN"
|
|
196
|
+
# )
|
|
197
|
+
# api.accounting.meta_list
|
|
198
|
+
def meta_list(common_model: nil, cursor: nil, page_size: nil, request_options: nil)
|
|
199
|
+
Async do
|
|
200
|
+
response = @request_client.conn.get do |req|
|
|
201
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
|
202
|
+
req.headers["Authorization"] = request_options.api_key unless request_options&.api_key.nil?
|
|
203
|
+
req.headers["X-Account-Token"] = request_options.account_token unless request_options&.account_token.nil?
|
|
204
|
+
req.headers = { **req.headers, **(request_options&.additional_headers || {}) }.compact
|
|
205
|
+
req.params = {
|
|
206
|
+
**(request_options&.additional_query_parameters || {}),
|
|
207
|
+
"common_model": common_model,
|
|
208
|
+
"cursor": cursor,
|
|
209
|
+
"page_size": page_size
|
|
210
|
+
}.compact
|
|
211
|
+
req.url "#{@request_client.get_url(request_options: request_options)}/accounting/v1/selective-sync/meta"
|
|
212
|
+
end
|
|
213
|
+
Merge::Accounting::PaginatedConditionSchemaList.from_json(json_object: response.body)
|
|
214
|
+
end
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
end
|
|
@@ -29,9 +29,9 @@ module Merge
|
|
|
29
29
|
attr_reader :id
|
|
30
30
|
# @return [String] The third-party API ID of the matching object.
|
|
31
31
|
attr_reader :remote_id
|
|
32
|
-
# @return [DateTime]
|
|
32
|
+
# @return [DateTime]
|
|
33
33
|
attr_reader :created_at
|
|
34
|
-
# @return [DateTime]
|
|
34
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
35
35
|
attr_reader :modified_at
|
|
36
36
|
# @return [String] The account's name.
|
|
37
37
|
attr_reader :name
|
|
@@ -385,8 +385,8 @@ module Merge
|
|
|
385
385
|
|
|
386
386
|
# @param id [String]
|
|
387
387
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
388
|
-
# @param created_at [DateTime]
|
|
389
|
-
# @param modified_at [DateTime]
|
|
388
|
+
# @param created_at [DateTime]
|
|
389
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
390
390
|
# @param name [String] The account's name.
|
|
391
391
|
# @param description [String] The account's description.
|
|
392
392
|
# @param classification [Merge::Accounting::ClassificationEnum] The account's broadest grouping.
|
|
@@ -18,9 +18,9 @@ module Merge
|
|
|
18
18
|
attr_reader :id
|
|
19
19
|
# @return [String] The third-party API ID of the matching object.
|
|
20
20
|
attr_reader :remote_id
|
|
21
|
-
# @return [DateTime]
|
|
21
|
+
# @return [DateTime]
|
|
22
22
|
attr_reader :created_at
|
|
23
|
-
# @return [DateTime]
|
|
23
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
24
24
|
attr_reader :modified_at
|
|
25
25
|
# @return [String] The attachment's name.
|
|
26
26
|
attr_reader :file_name
|
|
@@ -45,8 +45,8 @@ module Merge
|
|
|
45
45
|
|
|
46
46
|
# @param id [String]
|
|
47
47
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
48
|
-
# @param created_at [DateTime]
|
|
49
|
-
# @param modified_at [DateTime]
|
|
48
|
+
# @param created_at [DateTime]
|
|
49
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
50
50
|
# @param file_name [String] The attachment's name.
|
|
51
51
|
# @param file_url [String] The attachment's url.
|
|
52
52
|
# @param company [String] The company the accounting attachment belongs to.
|
|
@@ -17,9 +17,9 @@ module Merge
|
|
|
17
17
|
class AccountingPeriod
|
|
18
18
|
# @return [String]
|
|
19
19
|
attr_reader :id
|
|
20
|
-
# @return [DateTime]
|
|
20
|
+
# @return [DateTime]
|
|
21
21
|
attr_reader :created_at
|
|
22
|
-
# @return [DateTime]
|
|
22
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
23
23
|
attr_reader :modified_at
|
|
24
24
|
# @return [DateTime] Beginning date of the period
|
|
25
25
|
attr_reader :start_date
|
|
@@ -38,8 +38,8 @@ module Merge
|
|
|
38
38
|
OMIT = Object.new
|
|
39
39
|
|
|
40
40
|
# @param id [String]
|
|
41
|
-
# @param created_at [DateTime]
|
|
42
|
-
# @param modified_at [DateTime]
|
|
41
|
+
# @param created_at [DateTime]
|
|
42
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
43
43
|
# @param start_date [DateTime] Beginning date of the period
|
|
44
44
|
# @param end_date [DateTime] End date of the period
|
|
45
45
|
# @param status [Merge::Accounting::AccountingPeriodStatusEnum]
|
|
@@ -13,9 +13,9 @@ module Merge
|
|
|
13
13
|
# ### Usage Example
|
|
14
14
|
# Fetch from the `GET CompanyInfo` endpoint and view the company's phone numbers.
|
|
15
15
|
class AccountingPhoneNumber
|
|
16
|
-
# @return [DateTime]
|
|
16
|
+
# @return [DateTime]
|
|
17
17
|
attr_reader :created_at
|
|
18
|
-
# @return [DateTime]
|
|
18
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
19
19
|
attr_reader :modified_at
|
|
20
20
|
# @return [String] The phone number.
|
|
21
21
|
attr_reader :number
|
|
@@ -29,8 +29,8 @@ module Merge
|
|
|
29
29
|
|
|
30
30
|
OMIT = Object.new
|
|
31
31
|
|
|
32
|
-
# @param created_at [DateTime]
|
|
33
|
-
# @param modified_at [DateTime]
|
|
32
|
+
# @param created_at [DateTime]
|
|
33
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
34
34
|
# @param number [String] The phone number.
|
|
35
35
|
# @param type [String] The phone number's type.
|
|
36
36
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -14,9 +14,9 @@ module Merge
|
|
|
14
14
|
# ### Usage Example
|
|
15
15
|
# Fetch from the `GET CompanyInfo` endpoint and view the company's addresses.
|
|
16
16
|
class Address
|
|
17
|
-
# @return [DateTime]
|
|
17
|
+
# @return [DateTime]
|
|
18
18
|
attr_reader :created_at
|
|
19
|
-
# @return [DateTime]
|
|
19
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
20
20
|
attr_reader :modified_at
|
|
21
21
|
# @return [Merge::Accounting::AddressTypeEnum] The address type.
|
|
22
22
|
# - `BILLING` - BILLING
|
|
@@ -293,8 +293,8 @@ module Merge
|
|
|
293
293
|
|
|
294
294
|
OMIT = Object.new
|
|
295
295
|
|
|
296
|
-
# @param created_at [DateTime]
|
|
297
|
-
# @param modified_at [DateTime]
|
|
296
|
+
# @param created_at [DateTime]
|
|
297
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
298
298
|
# @param type [Merge::Accounting::AddressTypeEnum] The address type.
|
|
299
299
|
# - `BILLING` - BILLING
|
|
300
300
|
# - `SHIPPING` - SHIPPING
|
|
@@ -68,9 +68,6 @@ module Merge
|
|
|
68
68
|
# - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC
|
|
69
69
|
# - `MUTED_ISSUE` - MUTED_ISSUE
|
|
70
70
|
# - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK
|
|
71
|
-
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
72
|
-
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
73
|
-
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
74
71
|
attr_reader :event_type
|
|
75
72
|
# @return [String]
|
|
76
73
|
attr_reader :event_description
|
|
@@ -138,9 +135,6 @@ module Merge
|
|
|
138
135
|
# - `FORCED_LINKED_ACCOUNT_RESYNC` - FORCED_LINKED_ACCOUNT_RESYNC
|
|
139
136
|
# - `MUTED_ISSUE` - MUTED_ISSUE
|
|
140
137
|
# - `GENERATED_MAGIC_LINK` - GENERATED_MAGIC_LINK
|
|
141
|
-
# - `ENABLED_MERGE_WEBHOOK` - ENABLED_MERGE_WEBHOOK
|
|
142
|
-
# - `DISABLED_MERGE_WEBHOOK` - DISABLED_MERGE_WEBHOOK
|
|
143
|
-
# - `MERGE_WEBHOOK_TARGET_CHANGED` - MERGE_WEBHOOK_TARGET_CHANGED
|
|
144
138
|
# @param event_description [String]
|
|
145
139
|
# @param created_at [DateTime]
|
|
146
140
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
|
@@ -23,9 +23,9 @@ module Merge
|
|
|
23
23
|
attr_reader :id
|
|
24
24
|
# @return [String] The third-party API ID of the matching object.
|
|
25
25
|
attr_reader :remote_id
|
|
26
|
-
# @return [DateTime]
|
|
26
|
+
# @return [DateTime]
|
|
27
27
|
attr_reader :created_at
|
|
28
|
-
# @return [DateTime]
|
|
28
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
29
29
|
attr_reader :modified_at
|
|
30
30
|
# @return [String] The balance sheet's name.
|
|
31
31
|
attr_reader :name
|
|
@@ -369,8 +369,8 @@ module Merge
|
|
|
369
369
|
|
|
370
370
|
# @param id [String]
|
|
371
371
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
372
|
-
# @param created_at [DateTime]
|
|
373
|
-
# @param modified_at [DateTime]
|
|
372
|
+
# @param created_at [DateTime]
|
|
373
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
374
374
|
# @param name [String] The balance sheet's name.
|
|
375
375
|
# @param currency [Merge::Accounting::CurrencyEnum] The balance sheet's currency.
|
|
376
376
|
# - `XUA` - ADB Unit of Account
|
|
@@ -22,9 +22,9 @@ module Merge
|
|
|
22
22
|
attr_reader :id
|
|
23
23
|
# @return [String] The third-party API ID of the matching object.
|
|
24
24
|
attr_reader :remote_id
|
|
25
|
-
# @return [DateTime]
|
|
25
|
+
# @return [DateTime]
|
|
26
26
|
attr_reader :created_at
|
|
27
|
-
# @return [DateTime]
|
|
27
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
28
28
|
attr_reader :modified_at
|
|
29
29
|
# @return [String] The cash flow statement's name.
|
|
30
30
|
attr_reader :name
|
|
@@ -371,8 +371,8 @@ module Merge
|
|
|
371
371
|
|
|
372
372
|
# @param id [String]
|
|
373
373
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
374
|
-
# @param created_at [DateTime]
|
|
375
|
-
# @param modified_at [DateTime]
|
|
374
|
+
# @param created_at [DateTime]
|
|
375
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
376
376
|
# @param name [String] The cash flow statement's name.
|
|
377
377
|
# @param currency [Merge::Accounting::CurrencyEnum] The cash flow statement's currency.
|
|
378
378
|
# - `XUA` - ADB Unit of Account
|
|
@@ -22,9 +22,9 @@ module Merge
|
|
|
22
22
|
attr_reader :id
|
|
23
23
|
# @return [String] The third-party API ID of the matching object.
|
|
24
24
|
attr_reader :remote_id
|
|
25
|
-
# @return [DateTime]
|
|
25
|
+
# @return [DateTime]
|
|
26
26
|
attr_reader :created_at
|
|
27
|
-
# @return [DateTime]
|
|
27
|
+
# @return [DateTime] This is the datetime that this object was last updated by Merge
|
|
28
28
|
attr_reader :modified_at
|
|
29
29
|
# @return [String] The company's name.
|
|
30
30
|
attr_reader :name
|
|
@@ -369,8 +369,8 @@ module Merge
|
|
|
369
369
|
|
|
370
370
|
# @param id [String]
|
|
371
371
|
# @param remote_id [String] The third-party API ID of the matching object.
|
|
372
|
-
# @param created_at [DateTime]
|
|
373
|
-
# @param modified_at [DateTime]
|
|
372
|
+
# @param created_at [DateTime]
|
|
373
|
+
# @param modified_at [DateTime] This is the datetime that this object was last updated by Merge
|
|
374
374
|
# @param name [String] The company's name.
|
|
375
375
|
# @param legal_name [String] The company's legal name.
|
|
376
376
|
# @param tax_number [String] The company's tax number.
|