merge_hris_client 2.0.3 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/AccountDetails.md +3 -1
- data/docs/AccountDetailsAndActions.md +2 -0
- data/docs/BankInfo.md +1 -1
- data/docs/BankInfoApi.md +7 -3
- data/docs/Benefit.md +1 -1
- data/docs/BenefitsApi.md +2 -2
- data/docs/CompaniesApi.md +2 -2
- data/docs/Company.md +1 -1
- data/docs/DataPassthroughRequest.md +3 -1
- data/docs/Deduction.md +1 -1
- data/docs/DeductionsApi.md +2 -2
- data/docs/Earning.md +1 -3
- data/docs/Employee.md +4 -0
- data/docs/EmployeePayrollRun.md +1 -1
- data/docs/EmployeePayrollRunsApi.md +2 -2
- data/docs/EmployeeRequest.md +4 -0
- data/docs/EmployeesApi.md +7 -3
- data/docs/Employment.md +1 -1
- data/docs/EmploymentsApi.md +7 -3
- data/docs/EndUserDetailsRequest.md +9 -7
- data/docs/Group.md +1 -1
- data/docs/GroupsApi.md +7 -3
- data/docs/LinkToken.md +3 -1
- data/docs/LinkedAccountsApi.md +2 -0
- data/docs/Location.md +1 -1
- data/docs/LocationsApi.md +7 -3
- data/docs/PayGroup.md +1 -1
- data/docs/PayGroupsApi.md +2 -2
- data/docs/PayrollRun.md +1 -1
- data/docs/PayrollRunsApi.md +7 -3
- data/docs/RemoteResponse.md +5 -1
- data/docs/ResponseTypeEnum.md +15 -0
- data/docs/SyncStatus.md +2 -2
- data/docs/SyncStatusApi.md +1 -1
- data/docs/Tax.md +1 -3
- data/docs/Team.md +1 -1
- data/docs/TeamsApi.md +2 -2
- data/docs/TimeOffApi.md +7 -3
- data/docs/TimeOffBalance.md +1 -1
- data/docs/TimeOffBalancesApi.md +7 -3
- data/lib/merge_hris_client/api/bank_info_api.rb +16 -2
- data/lib/merge_hris_client/api/benefits_api.rb +2 -2
- data/lib/merge_hris_client/api/companies_api.rb +2 -2
- data/lib/merge_hris_client/api/deductions_api.rb +2 -2
- data/lib/merge_hris_client/api/employee_payroll_runs_api.rb +2 -2
- data/lib/merge_hris_client/api/employees_api.rb +16 -2
- data/lib/merge_hris_client/api/employments_api.rb +16 -2
- data/lib/merge_hris_client/api/groups_api.rb +16 -2
- data/lib/merge_hris_client/api/linked_accounts_api.rb +3 -0
- data/lib/merge_hris_client/api/locations_api.rb +16 -2
- data/lib/merge_hris_client/api/pay_groups_api.rb +2 -2
- data/lib/merge_hris_client/api/payroll_runs_api.rb +16 -2
- data/lib/merge_hris_client/api/sync_status_api.rb +2 -2
- data/lib/merge_hris_client/api/teams_api.rb +2 -2
- data/lib/merge_hris_client/api/time_off_api.rb +16 -2
- data/lib/merge_hris_client/api/time_off_balances_api.rb +16 -2
- data/lib/merge_hris_client/models/account_details.rb +15 -4
- data/lib/merge_hris_client/models/account_details_and_actions.rb +12 -1
- data/lib/merge_hris_client/models/account_details_and_actions_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/account_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/bank_info.rb +1 -1
- data/lib/merge_hris_client/models/benefit.rb +1 -1
- data/lib/merge_hris_client/models/categories_enum.rb +17 -7
- data/lib/merge_hris_client/models/category_enum.rb +17 -7
- data/lib/merge_hris_client/models/company.rb +1 -1
- data/lib/merge_hris_client/models/country_enum.rb +17 -7
- data/lib/merge_hris_client/models/data_passthrough_request.rb +15 -6
- data/lib/merge_hris_client/models/deduction.rb +1 -1
- data/lib/merge_hris_client/models/earning.rb +2 -14
- data/lib/merge_hris_client/models/earning_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/employee.rb +24 -2
- data/lib/merge_hris_client/models/employee_payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/employee_request.rb +24 -2
- data/lib/merge_hris_client/models/employment.rb +1 -1
- data/lib/merge_hris_client/models/employment_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/employment_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/encoding_enum.rb +18 -7
- data/lib/merge_hris_client/models/end_user_details_request.rb +28 -11
- data/lib/merge_hris_client/models/ethnicity_enum.rb +17 -7
- data/lib/merge_hris_client/models/flsa_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/gender_enum.rb +17 -7
- data/lib/merge_hris_client/models/group.rb +1 -1
- data/lib/merge_hris_client/models/group_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/issue.rb +1 -1
- data/lib/merge_hris_client/models/issue_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/link_token.rb +13 -4
- data/lib/merge_hris_client/models/location.rb +1 -1
- data/lib/merge_hris_client/models/location_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/marital_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/meta_response.rb +1 -1
- data/lib/merge_hris_client/models/method_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_currency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_frequency_enum.rb +17 -7
- data/lib/merge_hris_client/models/pay_group.rb +1 -1
- data/lib/merge_hris_client/models/pay_period_enum.rb +17 -7
- data/lib/merge_hris_client/models/payroll_run.rb +1 -1
- data/lib/merge_hris_client/models/policy_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/reason_enum.rb +17 -7
- data/lib/merge_hris_client/models/remote_response.rb +23 -9
- data/lib/merge_hris_client/models/request_format_enum.rb +17 -7
- data/lib/merge_hris_client/models/request_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/response_type_enum.rb +45 -0
- data/lib/merge_hris_client/models/run_state_enum.rb +17 -7
- data/lib/merge_hris_client/models/run_type_enum.rb +17 -7
- data/lib/merge_hris_client/models/sync_status.rb +0 -10
- data/lib/merge_hris_client/models/sync_status_status_enum.rb +18 -7
- data/lib/merge_hris_client/models/tax.rb +2 -14
- data/lib/merge_hris_client/models/team.rb +1 -1
- data/lib/merge_hris_client/models/time_off_balance.rb +1 -1
- data/lib/merge_hris_client/models/time_off_status_enum.rb +17 -7
- data/lib/merge_hris_client/models/units_enum.rb +17 -7
- data/lib/merge_hris_client/version.rb +1 -1
- data/lib/merge_hris_client.rb +1 -1
- data/spec/api/bank_info_api_spec.rb +3 -1
- data/spec/api/benefits_api_spec.rb +1 -1
- data/spec/api/companies_api_spec.rb +1 -1
- data/spec/api/deductions_api_spec.rb +1 -1
- data/spec/api/employee_payroll_runs_api_spec.rb +1 -1
- data/spec/api/employees_api_spec.rb +3 -1
- data/spec/api/employments_api_spec.rb +3 -1
- data/spec/api/groups_api_spec.rb +3 -1
- data/spec/api/linked_accounts_api_spec.rb +1 -0
- data/spec/api/locations_api_spec.rb +3 -1
- data/spec/api/pay_groups_api_spec.rb +1 -1
- data/spec/api/payroll_runs_api_spec.rb +3 -1
- data/spec/api/sync_status_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/time_off_api_spec.rb +3 -1
- data/spec/api/time_off_balances_api_spec.rb +3 -1
- data/spec/models/account_details_and_actions_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +6 -0
- data/spec/models/data_passthrough_request_spec.rb +6 -0
- data/spec/models/earning_spec.rb +0 -6
- data/spec/models/employee_request_spec.rb +12 -0
- data/spec/models/employee_spec.rb +12 -0
- data/spec/models/end_user_details_request_spec.rb +6 -0
- data/spec/models/link_token_spec.rb +6 -0
- data/spec/models/remote_response_spec.rb +12 -0
- data/spec/models/response_type_enum_spec.rb +28 -0
- data/spec/models/tax_spec.rb +0 -6
- metadata +105 -101
@@ -18,18 +18,28 @@ module MergeHRISClient
|
|
18
18
|
ONGOING = "ONGOING".freeze
|
19
19
|
RESOLVED = "RESOLVED".freeze
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
new.build_from_hash(value)
|
26
|
-
end
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
attr_accessor :raw_value
|
27
25
|
|
28
26
|
# Builds the enum from string
|
29
27
|
# @param [String] The enum value in the form of the string
|
30
28
|
# @return [String] The enum value
|
31
29
|
def build_from_hash(value)
|
32
|
-
value
|
30
|
+
@raw_value = value
|
31
|
+
if ["ONGOING", "RESOLVED", ].include? value
|
32
|
+
@value = value
|
33
|
+
else
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
35
|
+
end
|
36
|
+
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.build_from_hash(value)
|
41
|
+
IssueStatusEnum.new.build_from_hash(value)
|
33
42
|
end
|
34
43
|
end
|
44
|
+
|
35
45
|
end
|
@@ -19,11 +19,14 @@ module MergeHRISClient
|
|
19
19
|
|
20
20
|
attr_accessor :integration_name
|
21
21
|
|
22
|
+
attr_accessor :magic_link_url
|
23
|
+
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
25
|
def self.attribute_map
|
24
26
|
{
|
25
27
|
:'link_token' => :'link_token',
|
26
|
-
:'integration_name' => :'integration_name'
|
28
|
+
:'integration_name' => :'integration_name',
|
29
|
+
:'magic_link_url' => :'magic_link_url'
|
27
30
|
}
|
28
31
|
end
|
29
32
|
|
@@ -36,7 +39,8 @@ module MergeHRISClient
|
|
36
39
|
def self.openapi_types
|
37
40
|
{
|
38
41
|
:'link_token' => :'String',
|
39
|
-
:'integration_name' => :'String'
|
42
|
+
:'integration_name' => :'String',
|
43
|
+
:'magic_link_url' => :'String'
|
40
44
|
}
|
41
45
|
end
|
42
46
|
|
@@ -68,6 +72,10 @@ module MergeHRISClient
|
|
68
72
|
if attributes.key?(:'integration_name')
|
69
73
|
self.integration_name = attributes[:'integration_name']
|
70
74
|
end
|
75
|
+
|
76
|
+
if attributes.key?(:'magic_link_url')
|
77
|
+
self.magic_link_url = attributes[:'magic_link_url']
|
78
|
+
end
|
71
79
|
end
|
72
80
|
|
73
81
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -99,7 +107,8 @@ module MergeHRISClient
|
|
99
107
|
return true if self.equal?(o)
|
100
108
|
self.class == o.class &&
|
101
109
|
link_token == o.link_token &&
|
102
|
-
integration_name == o.integration_name
|
110
|
+
integration_name == o.integration_name &&
|
111
|
+
magic_link_url == o.magic_link_url
|
103
112
|
end
|
104
113
|
|
105
114
|
# @see the `==` method
|
@@ -111,7 +120,7 @@ module MergeHRISClient
|
|
111
120
|
# Calculates hash code according to all attributes.
|
112
121
|
# @return [Integer] Hash code
|
113
122
|
def hash
|
114
|
-
[link_token, integration_name].hash
|
123
|
+
[link_token, integration_name, magic_link_url].hash
|
115
124
|
end
|
116
125
|
|
117
126
|
# Builds the object from hash
|
@@ -50,7 +50,7 @@ module MergeHRISClient
|
|
50
50
|
|
51
51
|
attr_accessor :remote_data
|
52
52
|
|
53
|
-
# Indicates whether or not this object has been deleted
|
53
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
54
54
|
attr_accessor :remote_was_deleted
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -18,18 +18,28 @@ module MergeHRISClient
|
|
18
18
|
HOME = "HOME".freeze
|
19
19
|
WORK = "WORK".freeze
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
new.build_from_hash(value)
|
26
|
-
end
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
attr_accessor :raw_value
|
27
25
|
|
28
26
|
# Builds the enum from string
|
29
27
|
# @param [String] The enum value in the form of the string
|
30
28
|
# @return [String] The enum value
|
31
29
|
def build_from_hash(value)
|
32
|
-
value
|
30
|
+
@raw_value = value
|
31
|
+
if ["HOME", "WORK", ].include? value
|
32
|
+
@value = value
|
33
|
+
else
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
35
|
+
end
|
36
|
+
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.build_from_hash(value)
|
41
|
+
IssueStatusEnum.new.build_from_hash(value)
|
33
42
|
end
|
34
43
|
end
|
44
|
+
|
35
45
|
end
|
@@ -21,18 +21,28 @@ module MergeHRISClient
|
|
21
21
|
HEAD_OF_HOUSEHOLD = "HEAD_OF_HOUSEHOLD".freeze
|
22
22
|
QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD = "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD".freeze
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
new.build_from_hash(value)
|
29
|
-
end
|
24
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
25
|
+
|
26
|
+
attr_accessor :value
|
27
|
+
attr_accessor :raw_value
|
30
28
|
|
31
29
|
# Builds the enum from string
|
32
30
|
# @param [String] The enum value in the form of the string
|
33
31
|
# @return [String] The enum value
|
34
32
|
def build_from_hash(value)
|
35
|
-
value
|
33
|
+
@raw_value = value
|
34
|
+
if ["SINGLE", "MARRIED_FILING_JOINTLY", "MARRIED_FILING_SEPARATELY", "HEAD_OF_HOUSEHOLD", "QUALIFYING_WIDOW_OR_WIDOWER_WITH_DEPENDENT_CHILD", ].include? value
|
35
|
+
@value = value
|
36
|
+
else
|
37
|
+
@value = MERGE_NONSTANDARD_VALUE
|
38
|
+
end
|
39
|
+
|
40
|
+
self
|
41
|
+
end
|
42
|
+
|
43
|
+
def self.build_from_hash(value)
|
44
|
+
IssueStatusEnum.new.build_from_hash(value)
|
36
45
|
end
|
37
46
|
end
|
47
|
+
|
38
48
|
end
|
@@ -41,7 +41,7 @@ module MergeHRISClient
|
|
41
41
|
# Attribute type mapping.
|
42
42
|
def self.openapi_types
|
43
43
|
{
|
44
|
-
:'request_schema' => :'Hash<String,
|
44
|
+
:'request_schema' => :'Hash<String, Object>',
|
45
45
|
:'status' => :'LinkedAccountStatus',
|
46
46
|
:'has_conditional_params' => :'Boolean',
|
47
47
|
:'has_required_linked_account_params' => :'Boolean'
|
@@ -23,18 +23,28 @@ module MergeHRISClient
|
|
23
23
|
PATCH = "PATCH".freeze
|
24
24
|
DELETE = "DELETE".freeze
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
new.build_from_hash(value)
|
31
|
-
end
|
26
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
27
|
+
|
28
|
+
attr_accessor :value
|
29
|
+
attr_accessor :raw_value
|
32
30
|
|
33
31
|
# Builds the enum from string
|
34
32
|
# @param [String] The enum value in the form of the string
|
35
33
|
# @return [String] The enum value
|
36
34
|
def build_from_hash(value)
|
37
|
-
value
|
35
|
+
@raw_value = value
|
36
|
+
if ["GET", "OPTIONS", "HEAD", "POST", "PUT", "PATCH", "DELETE", ].include? value
|
37
|
+
@value = value
|
38
|
+
else
|
39
|
+
@value = MERGE_NONSTANDARD_VALUE
|
40
|
+
end
|
41
|
+
|
42
|
+
self
|
43
|
+
end
|
44
|
+
|
45
|
+
def self.build_from_hash(value)
|
46
|
+
IssueStatusEnum.new.build_from_hash(value)
|
38
47
|
end
|
39
48
|
end
|
49
|
+
|
40
50
|
end
|
@@ -322,18 +322,28 @@ module MergeHRISClient
|
|
322
322
|
ZWR = "ZWR".freeze
|
323
323
|
ZWL = "ZWL".freeze
|
324
324
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
new.build_from_hash(value)
|
330
|
-
end
|
325
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
326
|
+
|
327
|
+
attr_accessor :value
|
328
|
+
attr_accessor :raw_value
|
331
329
|
|
332
330
|
# Builds the enum from string
|
333
331
|
# @param [String] The enum value in the form of the string
|
334
332
|
# @return [String] The enum value
|
335
333
|
def build_from_hash(value)
|
336
|
-
value
|
334
|
+
@raw_value = value
|
335
|
+
if ["XUA", "AFN", "AFA", "ALL", "ALK", "DZD", "ADP", "AOA", "AOK", "AON", "AOR", "ARA", "ARS", "ARM", "ARP", "ARL", "AMD", "AWG", "AUD", "ATS", "AZN", "AZM", "BSD", "BHD", "BDT", "BBD", "BYN", "BYB", "BYR", "BEF", "BEC", "BEL", "BZD", "BMD", "BTN", "BOB", "BOL", "BOV", "BOP", "BAM", "BAD", "BAN", "BWP", "BRC", "BRZ", "BRE", "BRR", "BRN", "BRB", "BRL", "GBP", "BND", "BGL", "BGN", "BGO", "BGM", "BUK", "BIF", "XPF", "KHR", "CAD", "CVE", "KYD", "XAF", "CLE", "CLP", "CLF", "CNX", "CNY", "CNH", "COP", "COU", "KMF", "CDF", "CRC", "HRD", "HRK", "CUC", "CUP", "CYP", "CZK", "CSK", "DKK", "DJF", "DOP", "NLG", "XCD", "DDM", "ECS", "ECV", "EGP", "GQE", "ERN", "EEK", "ETB", "EUR", "XBA", "XEU", "XBB", "XBC", "XBD", "FKP", "FJD", "FIM", "FRF", "XFO", "XFU", "GMD", "GEK", "GEL", "DEM", "GHS", "GHC", "GIP", "XAU", "GRD", "GTQ", "GWP", "GNF", "GNS", "GYD", "HTG", "HNL", "HKD", "HUF", "IMP", "ISK", "ISJ", "INR", "IDR", "IRR", "IQD", "IEP", "ILS", "ILP", "ILR", "ITL", "JMD", "JPY", "JOD", "KZT", "KES", "KWD", "KGS", "LAK", "LVL", "LVR", "LBP", "LSL", "LRD", "LYD", "LTL", "LTT", "LUL", "LUC", "LUF", "MOP", "MKD", "MKN", "MGA", "MGF", "MWK", "MYR", "MVR", "MVP", "MLF", "MTL", "MTP", "MRU", "MRO", "MUR", "MXV", "MXN", "MXP", "MDC", "MDL", "MCF", "MNT", "MAD", "MAF", "MZE", "MZN", "MZM", "MMK", "NAD", "NPR", "ANG", "TWD", "NZD", "NIO", "NIC", "NGN", "KPW", "NOK", "OMR", "PKR", "XPD", "PAB", "PGK", "PYG", "PEI", "PEN", "PES", "PHP", "XPT", "PLN", "PLZ", "PTE", "GWE", "QAR", "XRE", "RHD", "RON", "ROL", "RUB", "RUR", "RWF", "SVC", "WST", "SAR", "RSD", "CSD", "SCR", "SLL", "XAG", "SGD", "SKK", "SIT", "SBD", "SOS", "ZAR", "ZAL", "KRH", "KRW", "KRO", "SSP", "SUR", "ESP", "ESA", "ESB", "XDR", "LKR", "SHP", "XSU", "SDD", "SDG", "SDP", "SRD", "SRG", "SZL", "SEK", "CHF", "SYP", "STN", "STD", "TVD", "TJR", "TJS", "TZS", "XTS", "THB", "XXX", "TPE", "TOP", "TTD", "TND", "TRY", "TRL", "TMT", "TMM", "USD", "USN", "USS", "UGX", "UGS", "UAH", "UAK", "AED", "UYW", "UYU", "UYP", "UYI", "UZS", "VUV", "VES", "VEB", "VEF", "VND", "VNN", "CHE", "CHW", "XOF", "YDD", "YER", "YUN", "YUD", "YUM", "YUR", "ZWN", "ZRN", "ZRZ", "ZMW", "ZMK", "ZWD", "ZWR", "ZWL", ].include? value
|
336
|
+
@value = value
|
337
|
+
else
|
338
|
+
@value = MERGE_NONSTANDARD_VALUE
|
339
|
+
end
|
340
|
+
|
341
|
+
self
|
342
|
+
end
|
343
|
+
|
344
|
+
def self.build_from_hash(value)
|
345
|
+
IssueStatusEnum.new.build_from_hash(value)
|
337
346
|
end
|
338
347
|
end
|
348
|
+
|
339
349
|
end
|
@@ -24,18 +24,28 @@ module MergeHRISClient
|
|
24
24
|
THIRTEEN_MONTHLY = "THIRTEEN-MONTHLY".freeze
|
25
25
|
PRO_RATA = "PRO_RATA".freeze
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
new.build_from_hash(value)
|
32
|
-
end
|
27
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
28
|
+
|
29
|
+
attr_accessor :value
|
30
|
+
attr_accessor :raw_value
|
33
31
|
|
34
32
|
# Builds the enum from string
|
35
33
|
# @param [String] The enum value in the form of the string
|
36
34
|
# @return [String] The enum value
|
37
35
|
def build_from_hash(value)
|
38
|
-
value
|
36
|
+
@raw_value = value
|
37
|
+
if ["WEEKLY", "BIWEEKLY", "MONTHLY", "QUARTERLY", "SEMIANNUALLY", "ANNUALLY", "THIRTEEN-MONTHLY", "PRO_RATA", ].include? value
|
38
|
+
@value = value
|
39
|
+
else
|
40
|
+
@value = MERGE_NONSTANDARD_VALUE
|
41
|
+
end
|
42
|
+
|
43
|
+
self
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.build_from_hash(value)
|
47
|
+
IssueStatusEnum.new.build_from_hash(value)
|
39
48
|
end
|
40
49
|
end
|
50
|
+
|
41
51
|
end
|
@@ -26,7 +26,7 @@ module MergeHRISClient
|
|
26
26
|
|
27
27
|
attr_accessor :remote_data
|
28
28
|
|
29
|
-
# Indicates whether or not this object has been deleted
|
29
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
30
30
|
attr_accessor :remote_was_deleted
|
31
31
|
|
32
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -24,18 +24,28 @@ module MergeHRISClient
|
|
24
24
|
EVERY_SIX_MONTHS = "EVERY_SIX_MONTHS".freeze
|
25
25
|
YEAR = "YEAR".freeze
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
new.build_from_hash(value)
|
32
|
-
end
|
27
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
28
|
+
|
29
|
+
attr_accessor :value
|
30
|
+
attr_accessor :raw_value
|
33
31
|
|
34
32
|
# Builds the enum from string
|
35
33
|
# @param [String] The enum value in the form of the string
|
36
34
|
# @return [String] The enum value
|
37
35
|
def build_from_hash(value)
|
38
|
-
value
|
36
|
+
@raw_value = value
|
37
|
+
if ["HOUR", "DAY", "WEEK", "EVERY_TWO_WEEKS", "MONTH", "QUARTER", "EVERY_SIX_MONTHS", "YEAR", ].include? value
|
38
|
+
@value = value
|
39
|
+
else
|
40
|
+
@value = MERGE_NONSTANDARD_VALUE
|
41
|
+
end
|
42
|
+
|
43
|
+
self
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.build_from_hash(value)
|
47
|
+
IssueStatusEnum.new.build_from_hash(value)
|
39
48
|
end
|
40
49
|
end
|
50
|
+
|
41
51
|
end
|
@@ -38,7 +38,7 @@ module MergeHRISClient
|
|
38
38
|
|
39
39
|
attr_accessor :remote_data
|
40
40
|
|
41
|
-
# Indicates whether or not this object has been deleted
|
41
|
+
# Indicates whether or not this object has been deleted by third party webhooks.
|
42
42
|
attr_accessor :remote_was_deleted
|
43
43
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -22,18 +22,28 @@ module MergeHRISClient
|
|
22
22
|
VOLUNTEER = "VOLUNTEER".freeze
|
23
23
|
BEREAVEMENT = "BEREAVEMENT".freeze
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
new.build_from_hash(value)
|
30
|
-
end
|
25
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
attr_accessor :raw_value
|
31
29
|
|
32
30
|
# Builds the enum from string
|
33
31
|
# @param [String] The enum value in the form of the string
|
34
32
|
# @return [String] The enum value
|
35
33
|
def build_from_hash(value)
|
36
|
-
value
|
34
|
+
@raw_value = value
|
35
|
+
if ["VACATION", "SICK", "PERSONAL", "JURY_DUTY", "VOLUNTEER", "BEREAVEMENT", ].include? value
|
36
|
+
@value = value
|
37
|
+
else
|
38
|
+
@value = MERGE_NONSTANDARD_VALUE
|
39
|
+
end
|
40
|
+
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.build_from_hash(value)
|
45
|
+
IssueStatusEnum.new.build_from_hash(value)
|
37
46
|
end
|
38
47
|
end
|
48
|
+
|
39
49
|
end
|
@@ -19,18 +19,28 @@ module MergeHRISClient
|
|
19
19
|
GDPR = "GDPR".freeze
|
20
20
|
OTHER = "OTHER".freeze
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
new.build_from_hash(value)
|
27
|
-
end
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
28
26
|
|
29
27
|
# Builds the enum from string
|
30
28
|
# @param [String] The enum value in the form of the string
|
31
29
|
# @return [String] The enum value
|
32
30
|
def build_from_hash(value)
|
33
|
-
value
|
31
|
+
@raw_value = value
|
32
|
+
if ["GENERAL_CUSTOMER_REQUEST", "GDPR", "OTHER", ].include? value
|
33
|
+
@value = value
|
34
|
+
else
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
36
|
+
end
|
37
|
+
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.build_from_hash(value)
|
42
|
+
IssueStatusEnum.new.build_from_hash(value)
|
34
43
|
end
|
35
44
|
end
|
45
|
+
|
36
46
|
end
|
@@ -24,6 +24,10 @@ module MergeHRISClient
|
|
24
24
|
|
25
25
|
attr_accessor :response
|
26
26
|
|
27
|
+
attr_accessor :response_headers
|
28
|
+
|
29
|
+
attr_accessor :response_type
|
30
|
+
|
27
31
|
attr_accessor :headers
|
28
32
|
|
29
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -33,6 +37,8 @@ module MergeHRISClient
|
|
33
37
|
:'path' => :'path',
|
34
38
|
:'status' => :'status',
|
35
39
|
:'response' => :'response',
|
40
|
+
:'response_headers' => :'response_headers',
|
41
|
+
:'response_type' => :'response_type',
|
36
42
|
:'headers' => :'headers'
|
37
43
|
}
|
38
44
|
end
|
@@ -48,7 +54,9 @@ module MergeHRISClient
|
|
48
54
|
:'method' => :'String',
|
49
55
|
:'path' => :'String',
|
50
56
|
:'status' => :'Integer',
|
51
|
-
:'response' => :'
|
57
|
+
:'response' => :'Object',
|
58
|
+
:'response_headers' => :'Hash<String, Object>',
|
59
|
+
:'response_type' => :'ResponseTypeEnum',
|
52
60
|
:'headers' => :'Hash<String, Object>'
|
53
61
|
}
|
54
62
|
end
|
@@ -56,6 +64,7 @@ module MergeHRISClient
|
|
56
64
|
# List of attributes with nullable: true
|
57
65
|
def self.openapi_nullable
|
58
66
|
Set.new([
|
67
|
+
:'response',
|
59
68
|
])
|
60
69
|
end
|
61
70
|
|
@@ -87,11 +96,19 @@ module MergeHRISClient
|
|
87
96
|
end
|
88
97
|
|
89
98
|
if attributes.key?(:'response')
|
90
|
-
|
91
|
-
|
99
|
+
self.response = attributes[:'response']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'response_headers')
|
103
|
+
if (value = attributes[:'response_headers']).is_a?(Hash)
|
104
|
+
self.response_headers = value
|
92
105
|
end
|
93
106
|
end
|
94
107
|
|
108
|
+
if attributes.key?(:'response_type')
|
109
|
+
self.response_type = attributes[:'response_type']
|
110
|
+
end
|
111
|
+
|
95
112
|
if attributes.key?(:'headers')
|
96
113
|
if (value = attributes[:'headers']).is_a?(Hash)
|
97
114
|
self.headers = value
|
@@ -115,10 +132,6 @@ module MergeHRISClient
|
|
115
132
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
116
133
|
end
|
117
134
|
|
118
|
-
if @response.nil?
|
119
|
-
invalid_properties.push('invalid value for "response", response cannot be nil.')
|
120
|
-
end
|
121
|
-
|
122
135
|
invalid_properties
|
123
136
|
end
|
124
137
|
|
@@ -128,7 +141,6 @@ module MergeHRISClient
|
|
128
141
|
return false if @method.nil?
|
129
142
|
return false if @path.nil?
|
130
143
|
return false if @status.nil?
|
131
|
-
return false if @response.nil?
|
132
144
|
true
|
133
145
|
end
|
134
146
|
|
@@ -141,6 +153,8 @@ module MergeHRISClient
|
|
141
153
|
path == o.path &&
|
142
154
|
status == o.status &&
|
143
155
|
response == o.response &&
|
156
|
+
response_headers == o.response_headers &&
|
157
|
+
response_type == o.response_type &&
|
144
158
|
headers == o.headers
|
145
159
|
end
|
146
160
|
|
@@ -153,7 +167,7 @@ module MergeHRISClient
|
|
153
167
|
# Calculates hash code according to all attributes.
|
154
168
|
# @return [Integer] Hash code
|
155
169
|
def hash
|
156
|
-
[method, path, status, response, headers].hash
|
170
|
+
[method, path, status, response, response_headers, response_type, headers].hash
|
157
171
|
end
|
158
172
|
|
159
173
|
# Builds the object from hash
|
@@ -19,18 +19,28 @@ module MergeHRISClient
|
|
19
19
|
XML = "XML".freeze
|
20
20
|
MULTIPART = "MULTIPART".freeze
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
new.build_from_hash(value)
|
27
|
-
end
|
22
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
23
|
+
|
24
|
+
attr_accessor :value
|
25
|
+
attr_accessor :raw_value
|
28
26
|
|
29
27
|
# Builds the enum from string
|
30
28
|
# @param [String] The enum value in the form of the string
|
31
29
|
# @return [String] The enum value
|
32
30
|
def build_from_hash(value)
|
33
|
-
value
|
31
|
+
@raw_value = value
|
32
|
+
if ["JSON", "XML", "MULTIPART", ].include? value
|
33
|
+
@value = value
|
34
|
+
else
|
35
|
+
@value = MERGE_NONSTANDARD_VALUE
|
36
|
+
end
|
37
|
+
|
38
|
+
self
|
39
|
+
end
|
40
|
+
|
41
|
+
def self.build_from_hash(value)
|
42
|
+
IssueStatusEnum.new.build_from_hash(value)
|
34
43
|
end
|
35
44
|
end
|
45
|
+
|
36
46
|
end
|
@@ -22,18 +22,28 @@ module MergeHRISClient
|
|
22
22
|
VOLUNTEER = "VOLUNTEER".freeze
|
23
23
|
BEREAVEMENT = "BEREAVEMENT".freeze
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
new.build_from_hash(value)
|
30
|
-
end
|
25
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
attr_accessor :raw_value
|
31
29
|
|
32
30
|
# Builds the enum from string
|
33
31
|
# @param [String] The enum value in the form of the string
|
34
32
|
# @return [String] The enum value
|
35
33
|
def build_from_hash(value)
|
36
|
-
value
|
34
|
+
@raw_value = value
|
35
|
+
if ["VACATION", "SICK", "PERSONAL", "JURY_DUTY", "VOLUNTEER", "BEREAVEMENT", ].include? value
|
36
|
+
@value = value
|
37
|
+
else
|
38
|
+
@value = MERGE_NONSTANDARD_VALUE
|
39
|
+
end
|
40
|
+
|
41
|
+
self
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.build_from_hash(value)
|
45
|
+
IssueStatusEnum.new.build_from_hash(value)
|
37
46
|
end
|
38
47
|
end
|
48
|
+
|
39
49
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
#Merge HRIS API
|
3
|
+
|
4
|
+
#The unified API for building rich integrations with multiple HR Information System platforms.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0
|
7
|
+
Contact: hello@merge.dev
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MergeHRISClient
|
17
|
+
class ResponseTypeEnum
|
18
|
+
JSON = "JSON".freeze
|
19
|
+
BASE64_GZIP = "BASE64_GZIP".freeze
|
20
|
+
|
21
|
+
MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
|
22
|
+
|
23
|
+
attr_accessor :value
|
24
|
+
attr_accessor :raw_value
|
25
|
+
|
26
|
+
# Builds the enum from string
|
27
|
+
# @param [String] The enum value in the form of the string
|
28
|
+
# @return [String] The enum value
|
29
|
+
def build_from_hash(value)
|
30
|
+
@raw_value = value
|
31
|
+
if ["JSON", "BASE64_GZIP", ].include? value
|
32
|
+
@value = value
|
33
|
+
else
|
34
|
+
@value = MERGE_NONSTANDARD_VALUE
|
35
|
+
end
|
36
|
+
|
37
|
+
self
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.build_from_hash(value)
|
41
|
+
IssueStatusEnum.new.build_from_hash(value)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
end
|