-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhris.ts
More file actions
259 lines (233 loc) · 7.37 KB
/
hris.ts
File metadata and controls
259 lines (233 loc) · 7.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
import * as DirectoryAPI from './directory';
import {
Directory,
DirectoryListIndividualsParams,
DirectoryListParams,
IndividualInDirectory,
} from './directory';
import * as DocumentsAPI from './documents';
import {
DocumentListParams,
DocumentListResponse,
DocumentResponse,
DocumentRetreiveParams,
DocumentRetreiveResponse,
Documents,
W42005,
W42020,
} from './documents';
import * as EmploymentsAPI from './employments';
import {
EmploymentData,
EmploymentDataResponse,
EmploymentDataResponsesPage,
EmploymentRetrieveManyParams,
Employments,
} from './employments';
import * as IndividualsAPI from './individuals';
import {
Individual,
IndividualResponse,
IndividualResponsesPage,
IndividualRetrieveManyParams,
Individuals,
} from './individuals';
import * as PayStatementsAPI from './pay-statements';
import {
PayStatement,
PayStatementDataSyncInProgress,
PayStatementResponse,
PayStatementResponseBody,
PayStatementResponsesPage,
PayStatementRetrieveManyParams,
PayStatements,
} from './pay-statements';
import * as PaymentsAPI from './payments';
import { Payment, PaymentListParams, Payments, PaymentsSinglePage } from './payments';
import * as BenefitsAPI from './benefits/benefits';
import {
BenefitContribution,
BenefitCreateParams,
BenefitFeaturesAndOperations,
BenefitFrequency,
BenefitListParams,
BenefitListSupportedBenefitsParams,
BenefitRetrieveParams,
BenefitType,
BenefitUpdateParams,
Benefits,
BenefitsSupport,
BenfitContribution,
CompanyBenefit,
CompanyBenefitsSinglePage,
CreateCompanyBenefitsResponse,
SupportPerBenefitType,
SupportedBenefit,
SupportedBenefitsSinglePage,
UpdateCompanyBenefitResponse,
} from './benefits/benefits';
import * as CompanyAPI from './company/company';
import { Company, CompanyResource, CompanyRetrieveParams } from './company/company';
export class HRIS extends APIResource {
company: CompanyAPI.CompanyResource = new CompanyAPI.CompanyResource(this._client);
directory: DirectoryAPI.Directory = new DirectoryAPI.Directory(this._client);
individuals: IndividualsAPI.Individuals = new IndividualsAPI.Individuals(this._client);
employments: EmploymentsAPI.Employments = new EmploymentsAPI.Employments(this._client);
payments: PaymentsAPI.Payments = new PaymentsAPI.Payments(this._client);
payStatements: PayStatementsAPI.PayStatements = new PayStatementsAPI.PayStatements(this._client);
documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
benefits: BenefitsAPI.Benefits = new BenefitsAPI.Benefits(this._client);
}
/**
* The employee's income as reported by the provider. This may not always be
* annualized income, but may be in units of bi-weekly, semi-monthly, daily, etc,
* depending on what information the provider returns.
*/
export interface Income {
/**
* The income amount in cents.
*/
amount: number | null;
/**
* The currency code.
*/
currency: string | null;
/**
* The date the income amount went into effect.
*/
effective_date: string | null;
/**
* The income unit of payment. Options: `yearly`, `quarterly`, `monthly`,
* `semi_monthly`, `bi_weekly`, `weekly`, `daily`, `hourly`, and `fixed`.
*/
unit:
| 'yearly'
| 'quarterly'
| 'monthly'
| 'semi_monthly'
| 'bi_weekly'
| 'weekly'
| 'daily'
| 'hourly'
| 'fixed'
| null;
}
export interface Location {
/**
* City, district, suburb, town, or village.
*/
city: string | null;
/**
* The 2-letter ISO 3166 country code.
*/
country: string | null;
/**
* Street address or PO box.
*/
line1: string | null;
/**
* Apartment, suite, unit, or building.
*/
line2: string | null;
/**
* The postal code or zip code.
*/
postal_code: string | null;
/**
* The state code.
*/
state: string | null;
name?: string | null;
source_id?: string | null;
}
export interface Money {
/**
* Amount for money object (in cents)
*/
amount: number | null;
currency: string;
}
HRIS.CompanyResource = CompanyResource;
HRIS.Directory = Directory;
HRIS.Individuals = Individuals;
HRIS.Employments = Employments;
HRIS.Payments = Payments;
HRIS.PayStatements = PayStatements;
HRIS.Documents = Documents;
HRIS.Benefits = Benefits;
export declare namespace HRIS {
export { type Income as Income, type Location as Location, type Money as Money };
export {
CompanyResource as CompanyResource,
type Company as Company,
type CompanyRetrieveParams as CompanyRetrieveParams,
};
export {
Directory as Directory,
type IndividualInDirectory as IndividualInDirectory,
type DirectoryListParams as DirectoryListParams,
type DirectoryListIndividualsParams as DirectoryListIndividualsParams,
};
export {
Individuals as Individuals,
type Individual as Individual,
type IndividualResponse as IndividualResponse,
type IndividualResponsesPage as IndividualResponsesPage,
type IndividualRetrieveManyParams as IndividualRetrieveManyParams,
};
export {
Employments as Employments,
type EmploymentData as EmploymentData,
type EmploymentDataResponse as EmploymentDataResponse,
type EmploymentDataResponsesPage as EmploymentDataResponsesPage,
type EmploymentRetrieveManyParams as EmploymentRetrieveManyParams,
};
export {
Payments as Payments,
type Payment as Payment,
type PaymentsSinglePage as PaymentsSinglePage,
type PaymentListParams as PaymentListParams,
};
export {
PayStatements as PayStatements,
type PayStatement as PayStatement,
type PayStatementDataSyncInProgress as PayStatementDataSyncInProgress,
type PayStatementResponse as PayStatementResponse,
type PayStatementResponseBody as PayStatementResponseBody,
type PayStatementResponsesPage as PayStatementResponsesPage,
type PayStatementRetrieveManyParams as PayStatementRetrieveManyParams,
};
export {
Documents as Documents,
type DocumentResponse as DocumentResponse,
type W42005 as W42005,
type W42020 as W42020,
type DocumentListResponse as DocumentListResponse,
type DocumentRetreiveResponse as DocumentRetreiveResponse,
type DocumentListParams as DocumentListParams,
type DocumentRetreiveParams as DocumentRetreiveParams,
};
export {
Benefits as Benefits,
type BenefitContribution as BenefitContribution,
type BenefitFeaturesAndOperations as BenefitFeaturesAndOperations,
type BenefitFrequency as BenefitFrequency,
type BenefitType as BenefitType,
type BenefitsSupport as BenefitsSupport,
type CompanyBenefit as CompanyBenefit,
type CreateCompanyBenefitsResponse as CreateCompanyBenefitsResponse,
type SupportPerBenefitType as SupportPerBenefitType,
type SupportedBenefit as SupportedBenefit,
type UpdateCompanyBenefitResponse as UpdateCompanyBenefitResponse,
type BenfitContribution as BenfitContribution,
type CompanyBenefitsSinglePage as CompanyBenefitsSinglePage,
type SupportedBenefitsSinglePage as SupportedBenefitsSinglePage,
type BenefitCreateParams as BenefitCreateParams,
type BenefitRetrieveParams as BenefitRetrieveParams,
type BenefitUpdateParams as BenefitUpdateParams,
type BenefitListParams as BenefitListParams,
type BenefitListSupportedBenefitsParams as BenefitListSupportedBenefitsParams,
};
}