merge_ruby_client 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/merge_ruby_client/accounting/accounting_periods/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/accounts/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/audit_trail/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/balance_sheets/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/bank_feed_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/bank_feed_transactions/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/cash_flow_statements/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/client.rb +7 -0
- data/lib/merge_ruby_client/accounting/company_info/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/contacts/client.rb +173 -4
- data/lib/merge_ruby_client/accounting/credit_notes/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/employees/client.rb +35 -8
- data/lib/merge_ruby_client/accounting/expense_reports/client.rb +765 -0
- data/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_lines_list_request_expand.rb +73 -0
- data/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_list_request_expand.rb +25 -0
- data/lib/merge_ruby_client/accounting/expense_reports/types/expense_reports_retrieve_request_expand.rb +25 -0
- data/lib/merge_ruby_client/accounting/expenses/client.rb +6 -6
- data/lib/merge_ruby_client/accounting/general_ledger_transactions/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/income_statements/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/invoices/client.rb +6 -6
- data/lib/merge_ruby_client/accounting/issues/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/items/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/journal_entries/client.rb +6 -6
- data/lib/merge_ruby_client/accounting/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/payment_methods/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/payment_terms/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/payments/client.rb +6 -6
- data/lib/merge_ruby_client/accounting/projects/client.rb +35 -8
- data/lib/merge_ruby_client/accounting/purchase_orders/client.rb +6 -6
- data/lib/merge_ruby_client/accounting/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/tax_rates/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/tracking_categories/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/transactions/client.rb +2 -2
- data/lib/merge_ruby_client/accounting/transactions/types/transactions_list_request_expand.rb +32 -0
- data/lib/merge_ruby_client/accounting/transactions/types/transactions_retrieve_request_expand.rb +32 -0
- data/lib/merge_ruby_client/accounting/types/expense_report.rb +869 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line.rb +921 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_account.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_contact.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_employee.rb +57 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request.rb +899 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_account.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_contact.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_employee.rb +57 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_project.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_request_tax_rate.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_line_tax_rate.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request.rb +819 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request_accounting_period.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request_company.rb +56 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_request_employee.rb +57 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_response.rb +101 -0
- data/lib/merge_ruby_client/accounting/types/expense_report_status_enum.rb +16 -0
- data/lib/merge_ruby_client/accounting/types/external_target_field_api_response.rb +12 -1
- data/lib/merge_ruby_client/accounting/types/field_mapping_api_instance_response.rb +12 -1
- data/lib/merge_ruby_client/accounting/types/item.rb +18 -1
- data/lib/merge_ruby_client/accounting/types/paginated_expense_report_line_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/paginated_expense_report_list.rb +80 -0
- data/lib/merge_ruby_client/accounting/types/patched_contact_request.rb +188 -0
- data/lib/merge_ruby_client/accounting/types/patched_contact_request_addresses_item.rb +55 -0
- data/lib/merge_ruby_client/accounting/types/remote_field_class.rb +9 -1
- data/lib/merge_ruby_client/accounting/vendor_credits/client.rb +2 -2
- data/lib/merge_ruby_client/ats/activities/client.rb +2 -2
- data/lib/merge_ruby_client/ats/applications/client.rb +2 -2
- data/lib/merge_ruby_client/ats/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/ats/audit_trail/client.rb +2 -2
- data/lib/merge_ruby_client/ats/candidates/client.rb +2 -2
- data/lib/merge_ruby_client/ats/departments/client.rb +2 -2
- data/lib/merge_ruby_client/ats/eeocs/client.rb +2 -2
- data/lib/merge_ruby_client/ats/interviews/client.rb +2 -2
- data/lib/merge_ruby_client/ats/issues/client.rb +2 -2
- data/lib/merge_ruby_client/ats/job_interview_stages/client.rb +2 -2
- data/lib/merge_ruby_client/ats/job_postings/client.rb +2 -2
- data/lib/merge_ruby_client/ats/jobs/client.rb +4 -4
- data/lib/merge_ruby_client/ats/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/ats/offers/client.rb +2 -2
- data/lib/merge_ruby_client/ats/offices/client.rb +2 -2
- data/lib/merge_ruby_client/ats/reject_reasons/client.rb +2 -2
- data/lib/merge_ruby_client/ats/scorecards/client.rb +2 -2
- data/lib/merge_ruby_client/ats/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/ats/tags/client.rb +2 -2
- data/lib/merge_ruby_client/ats/types/event_type_enum.rb +1 -0
- data/lib/merge_ruby_client/ats/users/client.rb +2 -2
- data/lib/merge_ruby_client/crm/accounts/client.rb +4 -4
- data/lib/merge_ruby_client/crm/association_types/client.rb +2 -2
- data/lib/merge_ruby_client/crm/associations/client.rb +10 -2
- data/lib/merge_ruby_client/crm/audit_trail/client.rb +2 -2
- data/lib/merge_ruby_client/crm/contacts/client.rb +4 -4
- data/lib/merge_ruby_client/crm/custom_object_classes/client.rb +2 -2
- data/lib/merge_ruby_client/crm/custom_objects/client.rb +4 -4
- data/lib/merge_ruby_client/crm/engagement_types/client.rb +4 -4
- data/lib/merge_ruby_client/crm/engagements/client.rb +4 -4
- data/lib/merge_ruby_client/crm/issues/client.rb +2 -2
- data/lib/merge_ruby_client/crm/leads/client.rb +4 -4
- data/lib/merge_ruby_client/crm/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/crm/notes/client.rb +4 -4
- data/lib/merge_ruby_client/crm/opportunities/client.rb +4 -4
- data/lib/merge_ruby_client/crm/stages/client.rb +4 -4
- data/lib/merge_ruby_client/crm/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/crm/tasks/client.rb +4 -4
- data/lib/merge_ruby_client/crm/types/remote_field_class.rb +9 -1
- data/lib/merge_ruby_client/crm/users/client.rb +4 -4
- data/lib/merge_ruby_client/filestorage/audit_trail/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/drives/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/files/client.rb +28 -10
- data/lib/merge_ruby_client/filestorage/folders/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/groups/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/issues/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/filestorage/users/client.rb +2 -2
- data/lib/merge_ruby_client/hris/audit_trail/client.rb +2 -2
- data/lib/merge_ruby_client/hris/bank_info/client.rb +2 -2
- data/lib/merge_ruby_client/hris/benefits/client.rb +2 -2
- data/lib/merge_ruby_client/hris/companies/client.rb +2 -2
- data/lib/merge_ruby_client/hris/dependents/client.rb +8 -4
- data/lib/merge_ruby_client/hris/employee_payroll_runs/client.rb +2 -2
- data/lib/merge_ruby_client/hris/employees/client.rb +8 -4
- data/lib/merge_ruby_client/hris/employer_benefits/client.rb +2 -2
- data/lib/merge_ruby_client/hris/employments/client.rb +2 -2
- data/lib/merge_ruby_client/hris/groups/client.rb +2 -2
- data/lib/merge_ruby_client/hris/issues/client.rb +2 -2
- data/lib/merge_ruby_client/hris/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/hris/locations/client.rb +2 -2
- data/lib/merge_ruby_client/hris/pay_groups/client.rb +2 -2
- data/lib/merge_ruby_client/hris/payroll_runs/client.rb +2 -2
- data/lib/merge_ruby_client/hris/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/hris/teams/client.rb +2 -2
- data/lib/merge_ruby_client/hris/time_off/client.rb +2 -2
- data/lib/merge_ruby_client/hris/time_off_balances/client.rb +2 -2
- data/lib/merge_ruby_client/hris/timesheet_entries/client.rb +2 -2
- data/lib/merge_ruby_client/hris/types/benefit.rb +9 -9
- data/lib/merge_ruby_client/ticketing/accounts/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/attachments/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/audit_trail/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/collections/client.rb +4 -4
- data/lib/merge_ruby_client/ticketing/comments/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/contacts/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/issues/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/linked_accounts/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/projects/client.rb +4 -4
- data/lib/merge_ruby_client/ticketing/roles/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/sync_status/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/tags/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/teams/client.rb +2 -2
- data/lib/merge_ruby_client/ticketing/tickets/client.rb +14 -10
- data/lib/merge_ruby_client/ticketing/types/patched_ticket_request.rb +9 -9
- data/lib/merge_ruby_client/ticketing/types/remote_field_class.rb +9 -1
- data/lib/merge_ruby_client/ticketing/users/client.rb +2 -2
- data/lib/merge_ruby_client.rb +7 -7
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +230 -201
- metadata +32 -2
@@ -0,0 +1,188 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "status_7_d_1_enum"
|
4
|
+
require_relative "patched_contact_request_addresses_item"
|
5
|
+
require_relative "accounting_phone_number_request"
|
6
|
+
require_relative "remote_field_request"
|
7
|
+
require "ostruct"
|
8
|
+
require "json"
|
9
|
+
|
10
|
+
module Merge
|
11
|
+
module Accounting
|
12
|
+
# # The Contact Object
|
13
|
+
# ### Description
|
14
|
+
# A `Contact` is an individual or business entity to which products and services
|
15
|
+
# are sold to or purchased from. The `Contact` model contains both Customers, in
|
16
|
+
# which products and services are sold to, and Vendors (or Suppliers), in which
|
17
|
+
# products and services are purchased from.
|
18
|
+
# * A `Contact` is a Vendor/Supplier if the `is_supplier` property is true.
|
19
|
+
# * A `Contact` is a customer if the `is_customer` property is true.
|
20
|
+
# ### Usage Example
|
21
|
+
# Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
22
|
+
class PatchedContactRequest
|
23
|
+
# @return [String] The contact's name.
|
24
|
+
attr_reader :name
|
25
|
+
# @return [Boolean] Whether the contact is a supplier.
|
26
|
+
attr_reader :is_supplier
|
27
|
+
# @return [Boolean] Whether the contact is a customer.
|
28
|
+
attr_reader :is_customer
|
29
|
+
# @return [String] The contact's email address.
|
30
|
+
attr_reader :email_address
|
31
|
+
# @return [String] The contact's tax number.
|
32
|
+
attr_reader :tax_number
|
33
|
+
# @return [Merge::Accounting::Status7D1Enum] The contact's status
|
34
|
+
# * `ACTIVE` - ACTIVE
|
35
|
+
# * `ARCHIVED` - ARCHIVED
|
36
|
+
attr_reader :status
|
37
|
+
# @return [String] The currency the contact's transactions are in.
|
38
|
+
attr_reader :currency
|
39
|
+
# @return [String] The company the contact belongs to.
|
40
|
+
attr_reader :company
|
41
|
+
# @return [Array<Merge::Accounting::PatchedContactRequestAddressesItem>] `Address` object IDs for the given `Contacts` object.
|
42
|
+
attr_reader :addresses
|
43
|
+
# @return [Array<Merge::Accounting::AccountingPhoneNumberRequest>] `AccountingPhoneNumber` object for the given `Contacts` object.
|
44
|
+
attr_reader :phone_numbers
|
45
|
+
# @return [Hash{String => Object}]
|
46
|
+
attr_reader :integration_params
|
47
|
+
# @return [Hash{String => Object}]
|
48
|
+
attr_reader :linked_account_params
|
49
|
+
# @return [Array<Merge::Accounting::RemoteFieldRequest>]
|
50
|
+
attr_reader :remote_fields
|
51
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
52
|
+
attr_reader :additional_properties
|
53
|
+
# @return [Object]
|
54
|
+
attr_reader :_field_set
|
55
|
+
protected :_field_set
|
56
|
+
|
57
|
+
OMIT = Object.new
|
58
|
+
|
59
|
+
# @param name [String] The contact's name.
|
60
|
+
# @param is_supplier [Boolean] Whether the contact is a supplier.
|
61
|
+
# @param is_customer [Boolean] Whether the contact is a customer.
|
62
|
+
# @param email_address [String] The contact's email address.
|
63
|
+
# @param tax_number [String] The contact's tax number.
|
64
|
+
# @param status [Merge::Accounting::Status7D1Enum] The contact's status
|
65
|
+
# * `ACTIVE` - ACTIVE
|
66
|
+
# * `ARCHIVED` - ARCHIVED
|
67
|
+
# @param currency [String] The currency the contact's transactions are in.
|
68
|
+
# @param company [String] The company the contact belongs to.
|
69
|
+
# @param addresses [Array<Merge::Accounting::PatchedContactRequestAddressesItem>] `Address` object IDs for the given `Contacts` object.
|
70
|
+
# @param phone_numbers [Array<Merge::Accounting::AccountingPhoneNumberRequest>] `AccountingPhoneNumber` object for the given `Contacts` object.
|
71
|
+
# @param integration_params [Hash{String => Object}]
|
72
|
+
# @param linked_account_params [Hash{String => Object}]
|
73
|
+
# @param remote_fields [Array<Merge::Accounting::RemoteFieldRequest>]
|
74
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
75
|
+
# @return [Merge::Accounting::PatchedContactRequest]
|
76
|
+
def initialize(name: OMIT, is_supplier: OMIT, is_customer: OMIT, email_address: OMIT, tax_number: OMIT,
|
77
|
+
status: OMIT, currency: OMIT, company: OMIT, addresses: OMIT, phone_numbers: OMIT, integration_params: OMIT, linked_account_params: OMIT, remote_fields: OMIT, additional_properties: nil)
|
78
|
+
@name = name if name != OMIT
|
79
|
+
@is_supplier = is_supplier if is_supplier != OMIT
|
80
|
+
@is_customer = is_customer if is_customer != OMIT
|
81
|
+
@email_address = email_address if email_address != OMIT
|
82
|
+
@tax_number = tax_number if tax_number != OMIT
|
83
|
+
@status = status if status != OMIT
|
84
|
+
@currency = currency if currency != OMIT
|
85
|
+
@company = company if company != OMIT
|
86
|
+
@addresses = addresses if addresses != OMIT
|
87
|
+
@phone_numbers = phone_numbers if phone_numbers != OMIT
|
88
|
+
@integration_params = integration_params if integration_params != OMIT
|
89
|
+
@linked_account_params = linked_account_params if linked_account_params != OMIT
|
90
|
+
@remote_fields = remote_fields if remote_fields != OMIT
|
91
|
+
@additional_properties = additional_properties
|
92
|
+
@_field_set = {
|
93
|
+
"name": name,
|
94
|
+
"is_supplier": is_supplier,
|
95
|
+
"is_customer": is_customer,
|
96
|
+
"email_address": email_address,
|
97
|
+
"tax_number": tax_number,
|
98
|
+
"status": status,
|
99
|
+
"currency": currency,
|
100
|
+
"company": company,
|
101
|
+
"addresses": addresses,
|
102
|
+
"phone_numbers": phone_numbers,
|
103
|
+
"integration_params": integration_params,
|
104
|
+
"linked_account_params": linked_account_params,
|
105
|
+
"remote_fields": remote_fields
|
106
|
+
}.reject do |_k, v|
|
107
|
+
v == OMIT
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# Deserialize a JSON object to an instance of PatchedContactRequest
|
112
|
+
#
|
113
|
+
# @param json_object [String]
|
114
|
+
# @return [Merge::Accounting::PatchedContactRequest]
|
115
|
+
def self.from_json(json_object:)
|
116
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
117
|
+
parsed_json = JSON.parse(json_object)
|
118
|
+
name = parsed_json["name"]
|
119
|
+
is_supplier = parsed_json["is_supplier"]
|
120
|
+
is_customer = parsed_json["is_customer"]
|
121
|
+
email_address = parsed_json["email_address"]
|
122
|
+
tax_number = parsed_json["tax_number"]
|
123
|
+
status = parsed_json["status"]
|
124
|
+
currency = parsed_json["currency"]
|
125
|
+
company = parsed_json["company"]
|
126
|
+
addresses = parsed_json["addresses"]&.map do |item|
|
127
|
+
item = item.to_json
|
128
|
+
Merge::Accounting::PatchedContactRequestAddressesItem.from_json(json_object: item)
|
129
|
+
end
|
130
|
+
phone_numbers = parsed_json["phone_numbers"]&.map do |item|
|
131
|
+
item = item.to_json
|
132
|
+
Merge::Accounting::AccountingPhoneNumberRequest.from_json(json_object: item)
|
133
|
+
end
|
134
|
+
integration_params = parsed_json["integration_params"]
|
135
|
+
linked_account_params = parsed_json["linked_account_params"]
|
136
|
+
remote_fields = parsed_json["remote_fields"]&.map do |item|
|
137
|
+
item = item.to_json
|
138
|
+
Merge::Accounting::RemoteFieldRequest.from_json(json_object: item)
|
139
|
+
end
|
140
|
+
new(
|
141
|
+
name: name,
|
142
|
+
is_supplier: is_supplier,
|
143
|
+
is_customer: is_customer,
|
144
|
+
email_address: email_address,
|
145
|
+
tax_number: tax_number,
|
146
|
+
status: status,
|
147
|
+
currency: currency,
|
148
|
+
company: company,
|
149
|
+
addresses: addresses,
|
150
|
+
phone_numbers: phone_numbers,
|
151
|
+
integration_params: integration_params,
|
152
|
+
linked_account_params: linked_account_params,
|
153
|
+
remote_fields: remote_fields,
|
154
|
+
additional_properties: struct
|
155
|
+
)
|
156
|
+
end
|
157
|
+
|
158
|
+
# Serialize an instance of PatchedContactRequest to a JSON object
|
159
|
+
#
|
160
|
+
# @return [String]
|
161
|
+
def to_json(*_args)
|
162
|
+
@_field_set&.to_json
|
163
|
+
end
|
164
|
+
|
165
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
166
|
+
# hash and check each fields type against the current object's property
|
167
|
+
# definitions.
|
168
|
+
#
|
169
|
+
# @param obj [Object]
|
170
|
+
# @return [Void]
|
171
|
+
def self.validate_raw(obj:)
|
172
|
+
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
173
|
+
obj.is_supplier&.is_a?(Boolean) != false || raise("Passed value for field obj.is_supplier is not the expected type, validation failed.")
|
174
|
+
obj.is_customer&.is_a?(Boolean) != false || raise("Passed value for field obj.is_customer is not the expected type, validation failed.")
|
175
|
+
obj.email_address&.is_a?(String) != false || raise("Passed value for field obj.email_address is not the expected type, validation failed.")
|
176
|
+
obj.tax_number&.is_a?(String) != false || raise("Passed value for field obj.tax_number is not the expected type, validation failed.")
|
177
|
+
obj.status&.is_a?(Merge::Accounting::Status7D1Enum) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
178
|
+
obj.currency&.is_a?(String) != false || raise("Passed value for field obj.currency is not the expected type, validation failed.")
|
179
|
+
obj.company&.is_a?(String) != false || raise("Passed value for field obj.company is not the expected type, validation failed.")
|
180
|
+
obj.addresses&.is_a?(Array) != false || raise("Passed value for field obj.addresses is not the expected type, validation failed.")
|
181
|
+
obj.phone_numbers&.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.")
|
182
|
+
obj.integration_params&.is_a?(Hash) != false || raise("Passed value for field obj.integration_params is not the expected type, validation failed.")
|
183
|
+
obj.linked_account_params&.is_a?(Hash) != false || raise("Passed value for field obj.linked_account_params is not the expected type, validation failed.")
|
184
|
+
obj.remote_fields&.is_a?(Array) != false || raise("Passed value for field obj.remote_fields is not the expected type, validation failed.")
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "json"
|
4
|
+
require_relative "address"
|
5
|
+
|
6
|
+
module Merge
|
7
|
+
module Accounting
|
8
|
+
class PatchedContactRequestAddressesItem
|
9
|
+
# Deserialize a JSON object to an instance of PatchedContactRequestAddressesItem
|
10
|
+
#
|
11
|
+
# @param json_object [String]
|
12
|
+
# @return [Merge::Accounting::PatchedContactRequestAddressesItem]
|
13
|
+
def self.from_json(json_object:)
|
14
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
15
|
+
begin
|
16
|
+
struct.is_a?(String) != false || raise("Passed value for field struct is not the expected type, validation failed.")
|
17
|
+
return struct unless struct.nil?
|
18
|
+
|
19
|
+
return nil
|
20
|
+
rescue StandardError
|
21
|
+
# noop
|
22
|
+
end
|
23
|
+
begin
|
24
|
+
Merge::Accounting::Address.validate_raw(obj: struct)
|
25
|
+
return Merge::Accounting::Address.from_json(json_object: struct) unless struct.nil?
|
26
|
+
|
27
|
+
return nil
|
28
|
+
rescue StandardError
|
29
|
+
# noop
|
30
|
+
end
|
31
|
+
struct
|
32
|
+
end
|
33
|
+
|
34
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
35
|
+
# hash and check each fields type against the current object's property
|
36
|
+
# definitions.
|
37
|
+
#
|
38
|
+
# @param obj [Object]
|
39
|
+
# @return [Void]
|
40
|
+
def self.validate_raw(obj:)
|
41
|
+
begin
|
42
|
+
return obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
43
|
+
rescue StandardError
|
44
|
+
# noop
|
45
|
+
end
|
46
|
+
begin
|
47
|
+
return Merge::Accounting::Address.validate_raw(obj: obj)
|
48
|
+
rescue StandardError
|
49
|
+
# noop
|
50
|
+
end
|
51
|
+
raise("Passed value matched no type within the union, validation failed.")
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -20,6 +20,8 @@ module Merge
|
|
20
20
|
# @return [Boolean]
|
21
21
|
attr_reader :is_custom
|
22
22
|
# @return [Boolean]
|
23
|
+
attr_reader :is_common_model_field
|
24
|
+
# @return [Boolean]
|
23
25
|
attr_reader :is_required
|
24
26
|
# @return [Merge::Accounting::FieldTypeEnum]
|
25
27
|
attr_reader :field_type
|
@@ -42,6 +44,7 @@ module Merge
|
|
42
44
|
# @param remote_key_name [String]
|
43
45
|
# @param description [String]
|
44
46
|
# @param is_custom [Boolean]
|
47
|
+
# @param is_common_model_field [Boolean]
|
45
48
|
# @param is_required [Boolean]
|
46
49
|
# @param field_type [Merge::Accounting::FieldTypeEnum]
|
47
50
|
# @param field_format [Merge::Accounting::FieldFormatEnum]
|
@@ -50,12 +53,13 @@ module Merge
|
|
50
53
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
51
54
|
# @return [Merge::Accounting::RemoteFieldClass]
|
52
55
|
def initialize(id: OMIT, display_name: OMIT, remote_key_name: OMIT, description: OMIT, is_custom: OMIT,
|
53
|
-
is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil)
|
56
|
+
is_common_model_field: OMIT, is_required: OMIT, field_type: OMIT, field_format: OMIT, field_choices: OMIT, item_schema: OMIT, additional_properties: nil)
|
54
57
|
@id = id if id != OMIT
|
55
58
|
@display_name = display_name if display_name != OMIT
|
56
59
|
@remote_key_name = remote_key_name if remote_key_name != OMIT
|
57
60
|
@description = description if description != OMIT
|
58
61
|
@is_custom = is_custom if is_custom != OMIT
|
62
|
+
@is_common_model_field = is_common_model_field if is_common_model_field != OMIT
|
59
63
|
@is_required = is_required if is_required != OMIT
|
60
64
|
@field_type = field_type if field_type != OMIT
|
61
65
|
@field_format = field_format if field_format != OMIT
|
@@ -68,6 +72,7 @@ module Merge
|
|
68
72
|
"remote_key_name": remote_key_name,
|
69
73
|
"description": description,
|
70
74
|
"is_custom": is_custom,
|
75
|
+
"is_common_model_field": is_common_model_field,
|
71
76
|
"is_required": is_required,
|
72
77
|
"field_type": field_type,
|
73
78
|
"field_format": field_format,
|
@@ -90,6 +95,7 @@ module Merge
|
|
90
95
|
remote_key_name = parsed_json["remote_key_name"]
|
91
96
|
description = parsed_json["description"]
|
92
97
|
is_custom = parsed_json["is_custom"]
|
98
|
+
is_common_model_field = parsed_json["is_common_model_field"]
|
93
99
|
is_required = parsed_json["is_required"]
|
94
100
|
field_type = parsed_json["field_type"]
|
95
101
|
field_format = parsed_json["field_format"]
|
@@ -106,6 +112,7 @@ module Merge
|
|
106
112
|
remote_key_name: remote_key_name,
|
107
113
|
description: description,
|
108
114
|
is_custom: is_custom,
|
115
|
+
is_common_model_field: is_common_model_field,
|
109
116
|
is_required: is_required,
|
110
117
|
field_type: field_type,
|
111
118
|
field_format: field_format,
|
@@ -134,6 +141,7 @@ module Merge
|
|
134
141
|
obj.remote_key_name&.is_a?(String) != false || raise("Passed value for field obj.remote_key_name is not the expected type, validation failed.")
|
135
142
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
136
143
|
obj.is_custom&.is_a?(Boolean) != false || raise("Passed value for field obj.is_custom is not the expected type, validation failed.")
|
144
|
+
obj.is_common_model_field&.is_a?(Boolean) != false || raise("Passed value for field obj.is_common_model_field is not the expected type, validation failed.")
|
137
145
|
obj.is_required&.is_a?(Boolean) != false || raise("Passed value for field obj.is_required is not the expected type, validation failed.")
|
138
146
|
obj.field_type&.is_a?(Merge::Accounting::FieldTypeEnum) != false || raise("Passed value for field obj.field_type is not the expected type, validation failed.")
|
139
147
|
obj.field_format&.is_a?(Merge::Accounting::FieldFormatEnum) != false || raise("Passed value for field obj.field_format is not the expected type, validation failed.")
|
@@ -54,7 +54,7 @@ module Merge
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
56
56
|
# )
|
57
|
-
# api.accounting.vendor_credits.list
|
57
|
+
# api.accounting.vendor_credits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
58
58
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
59
59
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil)
|
60
60
|
response = @request_client.conn.get do |req|
|
@@ -255,7 +255,7 @@ module Merge
|
|
255
255
|
# environment: Merge::Environment::PRODUCTION,
|
256
256
|
# api_key: "YOUR_AUTH_TOKEN"
|
257
257
|
# )
|
258
|
-
# api.accounting.vendor_credits.list
|
258
|
+
# api.accounting.vendor_credits.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
259
259
|
def list(company_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
260
260
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, transaction_date_after: nil, transaction_date_before: nil, request_options: nil)
|
261
261
|
Async do
|
@@ -58,7 +58,7 @@ module Merge
|
|
58
58
|
# environment: Merge::Environment::PRODUCTION,
|
59
59
|
# api_key: "YOUR_AUTH_TOKEN"
|
60
60
|
# )
|
61
|
-
# api.ats.activities.list
|
61
|
+
# api.ats.activities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
62
62
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
63
63
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, user_id: nil, request_options: nil)
|
64
64
|
response = @request_client.conn.get do |req|
|
@@ -268,7 +268,7 @@ module Merge
|
|
268
268
|
# environment: Merge::Environment::PRODUCTION,
|
269
269
|
# api_key: "YOUR_AUTH_TOKEN"
|
270
270
|
# )
|
271
|
-
# api.ats.activities.list
|
271
|
+
# api.ats.activities.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
272
272
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
273
273
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, user_id: nil, request_options: nil)
|
274
274
|
Async do
|
@@ -57,7 +57,7 @@ module Merge
|
|
57
57
|
# environment: Merge::Environment::PRODUCTION,
|
58
58
|
# api_key: "YOUR_AUTH_TOKEN"
|
59
59
|
# )
|
60
|
-
# api.ats.applications.list
|
60
|
+
# api.ats.applications.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
61
61
|
def list(candidate_id: nil, created_after: nil, created_before: nil, credited_to_id: nil, current_stage_id: nil,
|
62
62
|
cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, reject_reason_id: nil, remote_id: nil, source: nil, request_options: nil)
|
63
63
|
response = @request_client.conn.get do |req|
|
@@ -319,7 +319,7 @@ module Merge
|
|
319
319
|
# environment: Merge::Environment::PRODUCTION,
|
320
320
|
# api_key: "YOUR_AUTH_TOKEN"
|
321
321
|
# )
|
322
|
-
# api.ats.applications.list
|
322
|
+
# api.ats.applications.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
323
323
|
def list(candidate_id: nil, created_after: nil, created_before: nil, credited_to_id: nil, current_stage_id: nil,
|
324
324
|
cursor: nil, expand: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, reject_reason_id: nil, remote_id: nil, source: nil, request_options: nil)
|
325
325
|
Async do
|
@@ -54,7 +54,7 @@ module Merge
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
56
56
|
# )
|
57
|
-
# api.ats.attachments.list
|
57
|
+
# api.ats.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
58
58
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
59
59
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
60
60
|
response = @request_client.conn.get do |req|
|
@@ -262,7 +262,7 @@ module Merge
|
|
262
262
|
# environment: Merge::Environment::PRODUCTION,
|
263
263
|
# api_key: "YOUR_AUTH_TOKEN"
|
264
264
|
# )
|
265
|
-
# api.ats.attachments.list
|
265
|
+
# api.ats.attachments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
266
266
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
267
267
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
268
268
|
Async do
|
@@ -60,7 +60,7 @@ module Merge
|
|
60
60
|
# environment: Merge::Environment::PRODUCTION,
|
61
61
|
# api_key: "YOUR_AUTH_TOKEN"
|
62
62
|
# )
|
63
|
-
# api.ats.audit_trail.list
|
63
|
+
# api.ats.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
64
64
|
def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil,
|
65
65
|
request_options: nil)
|
66
66
|
response = @request_client.conn.get do |req|
|
@@ -144,7 +144,7 @@ module Merge
|
|
144
144
|
# environment: Merge::Environment::PRODUCTION,
|
145
145
|
# api_key: "YOUR_AUTH_TOKEN"
|
146
146
|
# )
|
147
|
-
# api.ats.audit_trail.list
|
147
|
+
# api.ats.audit_trail.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
148
148
|
def list(cursor: nil, end_date: nil, event_type: nil, page_size: nil, start_date: nil, user_email: nil,
|
149
149
|
request_options: nil)
|
150
150
|
Async do
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# environment: Merge::Environment::PRODUCTION,
|
60
60
|
# api_key: "YOUR_AUTH_TOKEN"
|
61
61
|
# )
|
62
|
-
# api.ats.candidates.list
|
62
|
+
# api.ats.candidates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
63
63
|
def list(created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil,
|
64
64
|
first_name: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, last_name: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, tags: nil, request_options: nil)
|
65
65
|
response = @request_client.conn.get do |req|
|
@@ -403,7 +403,7 @@ module Merge
|
|
403
403
|
# environment: Merge::Environment::PRODUCTION,
|
404
404
|
# api_key: "YOUR_AUTH_TOKEN"
|
405
405
|
# )
|
406
|
-
# api.ats.candidates.list
|
406
|
+
# api.ats.candidates.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
407
407
|
def list(created_after: nil, created_before: nil, cursor: nil, email_addresses: nil, expand: nil,
|
408
408
|
first_name: nil, include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, last_name: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, tags: nil, request_options: nil)
|
409
409
|
Async do
|
@@ -44,7 +44,7 @@ module Merge
|
|
44
44
|
# environment: Merge::Environment::PRODUCTION,
|
45
45
|
# api_key: "YOUR_AUTH_TOKEN"
|
46
46
|
# )
|
47
|
-
# api.ats.departments.list
|
47
|
+
# api.ats.departments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
48
48
|
def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
|
49
49
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
50
50
|
response = @request_client.conn.get do |req|
|
@@ -153,7 +153,7 @@ module Merge
|
|
153
153
|
# environment: Merge::Environment::PRODUCTION,
|
154
154
|
# api_key: "YOUR_AUTH_TOKEN"
|
155
155
|
# )
|
156
|
-
# api.ats.departments.list
|
156
|
+
# api.ats.departments.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
157
157
|
def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
|
158
158
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
159
159
|
Async do
|
@@ -55,7 +55,7 @@ module Merge
|
|
55
55
|
# environment: Merge::Environment::PRODUCTION,
|
56
56
|
# api_key: "YOUR_AUTH_TOKEN"
|
57
57
|
# )
|
58
|
-
# api.ats.eeocs.list
|
58
|
+
# api.ats.eeocs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
59
59
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
60
60
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
61
61
|
response = @request_client.conn.get do |req|
|
@@ -185,7 +185,7 @@ module Merge
|
|
185
185
|
# environment: Merge::Environment::PRODUCTION,
|
186
186
|
# api_key: "YOUR_AUTH_TOKEN"
|
187
187
|
# )
|
188
|
-
# api.ats.eeocs.list
|
188
|
+
# api.ats.eeocs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
189
189
|
def list(candidate_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
190
190
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
191
191
|
Async do
|
@@ -59,7 +59,7 @@ module Merge
|
|
59
59
|
# environment: Merge::Environment::PRODUCTION,
|
60
60
|
# api_key: "YOUR_AUTH_TOKEN"
|
61
61
|
# )
|
62
|
-
# api.ats.interviews.list
|
62
|
+
# api.ats.interviews.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
63
63
|
def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
64
64
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, job_interview_stage_id: nil, modified_after: nil, modified_before: nil, organizer_id: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
65
65
|
response = @request_client.conn.get do |req|
|
@@ -277,7 +277,7 @@ module Merge
|
|
277
277
|
# environment: Merge::Environment::PRODUCTION,
|
278
278
|
# api_key: "YOUR_AUTH_TOKEN"
|
279
279
|
# )
|
280
|
-
# api.ats.interviews.list
|
280
|
+
# api.ats.interviews.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
281
281
|
def list(application_id: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil,
|
282
282
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, job_id: nil, job_interview_stage_id: nil, modified_after: nil, modified_before: nil, organizer_id: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
283
283
|
Async do
|
@@ -52,7 +52,7 @@ module Merge
|
|
52
52
|
# environment: Merge::Environment::PRODUCTION,
|
53
53
|
# api_key: "YOUR_AUTH_TOKEN"
|
54
54
|
# )
|
55
|
-
# api.ats.issues.list
|
55
|
+
# api.ats.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
56
56
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
57
57
|
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
58
58
|
response = @request_client.conn.get do |req|
|
@@ -166,7 +166,7 @@ module Merge
|
|
166
166
|
# environment: Merge::Environment::PRODUCTION,
|
167
167
|
# api_key: "YOUR_AUTH_TOKEN"
|
168
168
|
# )
|
169
|
-
# api.ats.issues.list
|
169
|
+
# api.ats.issues.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
170
170
|
def list(account_token: nil, cursor: nil, end_date: nil, end_user_organization_name: nil,
|
171
171
|
first_incident_time_after: nil, first_incident_time_before: nil, include_muted: nil, integration_name: nil, last_incident_time_after: nil, last_incident_time_before: nil, linked_account_id: nil, page_size: nil, start_date: nil, status: nil, request_options: nil)
|
172
172
|
Async do
|
@@ -47,7 +47,7 @@ module Merge
|
|
47
47
|
# environment: Merge::Environment::PRODUCTION,
|
48
48
|
# api_key: "YOUR_AUTH_TOKEN"
|
49
49
|
# )
|
50
|
-
# api.ats.job_interview_stages.list
|
50
|
+
# api.ats.job_interview_stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
51
51
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
52
52
|
include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
53
53
|
response = @request_client.conn.get do |req|
|
@@ -164,7 +164,7 @@ module Merge
|
|
164
164
|
# environment: Merge::Environment::PRODUCTION,
|
165
165
|
# api_key: "YOUR_AUTH_TOKEN"
|
166
166
|
# )
|
167
|
-
# api.ats.job_interview_stages.list
|
167
|
+
# api.ats.job_interview_stages.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
168
168
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
169
169
|
include_remote_data: nil, include_shell_data: nil, job_id: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
170
170
|
Async do
|
@@ -54,7 +54,7 @@ module Merge
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
56
56
|
# )
|
57
|
-
# api.ats.job_postings.list
|
57
|
+
# api.ats.job_postings.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
58
58
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
59
59
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, status: nil, request_options: nil)
|
60
60
|
response = @request_client.conn.get do |req|
|
@@ -177,7 +177,7 @@ module Merge
|
|
177
177
|
# environment: Merge::Environment::PRODUCTION,
|
178
178
|
# api_key: "YOUR_AUTH_TOKEN"
|
179
179
|
# )
|
180
|
-
# api.ats.job_postings.list
|
180
|
+
# api.ats.job_postings.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
181
181
|
def list(created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
182
182
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, status: nil, request_options: nil)
|
183
183
|
Async do
|
@@ -65,7 +65,7 @@ module Merge
|
|
65
65
|
# environment: Merge::Environment::PRODUCTION,
|
66
66
|
# api_key: "YOUR_AUTH_TOKEN"
|
67
67
|
# )
|
68
|
-
# api.ats.jobs.list
|
68
|
+
# api.ats.jobs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
69
69
|
def list(code: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
70
70
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, offices: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil)
|
71
71
|
response = @request_client.conn.get do |req|
|
@@ -176,7 +176,7 @@ module Merge
|
|
176
176
|
# environment: Merge::Environment::PRODUCTION,
|
177
177
|
# api_key: "YOUR_AUTH_TOKEN"
|
178
178
|
# )
|
179
|
-
# api.ats.jobs.screening_questions_list(job_id: "job_id")
|
179
|
+
# api.ats.jobs.screening_questions_list(job_id: "job_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
180
180
|
def screening_questions_list(job_id:, cursor: nil, expand: nil, include_deleted_data: nil,
|
181
181
|
include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil)
|
182
182
|
response = @request_client.conn.get do |req|
|
@@ -258,7 +258,7 @@ module Merge
|
|
258
258
|
# environment: Merge::Environment::PRODUCTION,
|
259
259
|
# api_key: "YOUR_AUTH_TOKEN"
|
260
260
|
# )
|
261
|
-
# api.ats.jobs.list
|
261
|
+
# api.ats.jobs.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
262
262
|
def list(code: nil, created_after: nil, created_before: nil, cursor: nil, expand: nil, include_deleted_data: nil,
|
263
263
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, offices: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, status: nil, request_options: nil)
|
264
264
|
Async do
|
@@ -373,7 +373,7 @@ module Merge
|
|
373
373
|
# environment: Merge::Environment::PRODUCTION,
|
374
374
|
# api_key: "YOUR_AUTH_TOKEN"
|
375
375
|
# )
|
376
|
-
# api.ats.jobs.screening_questions_list(job_id: "job_id")
|
376
|
+
# api.ats.jobs.screening_questions_list(job_id: "job_id", cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
377
377
|
def screening_questions_list(job_id:, cursor: nil, expand: nil, include_deleted_data: nil,
|
378
378
|
include_remote_data: nil, include_shell_data: nil, page_size: nil, request_options: nil)
|
379
379
|
Async do
|
@@ -56,7 +56,7 @@ module Merge
|
|
56
56
|
# environment: Merge::Environment::PRODUCTION,
|
57
57
|
# api_key: "YOUR_AUTH_TOKEN"
|
58
58
|
# )
|
59
|
-
# api.ats.linked_accounts.list
|
59
|
+
# api.ats.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
60
60
|
def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil,
|
61
61
|
end_user_origin_id: nil, end_user_origin_ids: nil, id: nil, ids: nil, include_duplicates: nil, integration_name: nil, is_test_account: nil, page_size: nil, status: nil, request_options: nil)
|
62
62
|
response = @request_client.conn.get do |req|
|
@@ -142,7 +142,7 @@ module Merge
|
|
142
142
|
# environment: Merge::Environment::PRODUCTION,
|
143
143
|
# api_key: "YOUR_AUTH_TOKEN"
|
144
144
|
# )
|
145
|
-
# api.ats.linked_accounts.list
|
145
|
+
# api.ats.linked_accounts.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
146
146
|
def list(category: nil, cursor: nil, end_user_email_address: nil, end_user_organization_name: nil,
|
147
147
|
end_user_origin_id: nil, end_user_origin_ids: nil, id: nil, ids: nil, include_duplicates: nil, integration_name: nil, is_test_account: nil, page_size: nil, status: nil, request_options: nil)
|
148
148
|
Async do
|
@@ -54,7 +54,7 @@ module Merge
|
|
54
54
|
# environment: Merge::Environment::PRODUCTION,
|
55
55
|
# api_key: "YOUR_AUTH_TOKEN"
|
56
56
|
# )
|
57
|
-
# api.ats.offers.list
|
57
|
+
# api.ats.offers.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
58
58
|
def list(application_id: nil, created_after: nil, created_before: nil, creator_id: nil, cursor: nil, expand: nil,
|
59
59
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
60
60
|
response = @request_client.conn.get do |req|
|
@@ -186,7 +186,7 @@ module Merge
|
|
186
186
|
# environment: Merge::Environment::PRODUCTION,
|
187
187
|
# api_key: "YOUR_AUTH_TOKEN"
|
188
188
|
# )
|
189
|
-
# api.ats.offers.list
|
189
|
+
# api.ats.offers.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
190
190
|
def list(application_id: nil, created_after: nil, created_before: nil, creator_id: nil, cursor: nil, expand: nil,
|
191
191
|
include_deleted_data: nil, include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_fields: nil, remote_id: nil, show_enum_origins: nil, request_options: nil)
|
192
192
|
Async do
|
@@ -44,7 +44,7 @@ module Merge
|
|
44
44
|
# environment: Merge::Environment::PRODUCTION,
|
45
45
|
# api_key: "YOUR_AUTH_TOKEN"
|
46
46
|
# )
|
47
|
-
# api.ats.offices.list
|
47
|
+
# api.ats.offices.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
48
48
|
def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
|
49
49
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
50
50
|
response = @request_client.conn.get do |req|
|
@@ -153,7 +153,7 @@ module Merge
|
|
153
153
|
# environment: Merge::Environment::PRODUCTION,
|
154
154
|
# api_key: "YOUR_AUTH_TOKEN"
|
155
155
|
# )
|
156
|
-
# api.ats.offices.list
|
156
|
+
# api.ats.offices.list(cursor: "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw")
|
157
157
|
def list(created_after: nil, created_before: nil, cursor: nil, include_deleted_data: nil,
|
158
158
|
include_remote_data: nil, include_shell_data: nil, modified_after: nil, modified_before: nil, page_size: nil, remote_id: nil, request_options: nil)
|
159
159
|
Async do
|