@rippling/rippling-sdk 0.2.0-alpha.36 → 0.2.0-alpha.37
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.
- package/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +7 -1
- package/client.js.map +1 -1
- package/client.mjs +7 -1
- package/client.mjs.map +1 -1
- package/examples/manifest/dental-practice-management/dental-practice-management.ts +21 -34
- package/examples/manifest/gym-membership-management/gym-membership-management.ts +27 -38
- package/examples/manifest/gym-membership-management/manifest.json +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -0
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +2 -0
- package/internal/utils/log.mjs.map +1 -1
- package/lib/manifest/custom-object-field-section.d.mts +4 -0
- package/lib/manifest/custom-object-field-section.d.mts.map +1 -1
- package/lib/manifest/custom-object-field-section.d.ts +4 -0
- package/lib/manifest/custom-object-field-section.d.ts.map +1 -1
- package/lib/manifest/custom-object-field-section.js +6 -0
- package/lib/manifest/custom-object-field-section.js.map +1 -1
- package/lib/manifest/custom-object-field-section.mjs +6 -0
- package/lib/manifest/custom-object-field-section.mjs.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.mts +21 -13
- package/lib/manifest/custom-object-page-layout.d.mts.map +1 -1
- package/lib/manifest/custom-object-page-layout.d.ts +21 -13
- package/lib/manifest/custom-object-page-layout.d.ts.map +1 -1
- package/lib/manifest/custom-object-page-layout.js +119 -9
- package/lib/manifest/custom-object-page-layout.js.map +1 -1
- package/lib/manifest/custom-object-page-layout.mjs +119 -9
- package/lib/manifest/custom-object-page-layout.mjs.map +1 -1
- package/lib/manifest/field.d.mts +5 -1
- package/lib/manifest/field.d.mts.map +1 -1
- package/lib/manifest/field.d.ts +5 -1
- package/lib/manifest/field.d.ts.map +1 -1
- package/lib/manifest/field.js +8 -0
- package/lib/manifest/field.js.map +1 -1
- package/lib/manifest/field.mjs +8 -0
- package/lib/manifest/field.mjs.map +1 -1
- package/lib/manifest/index.d.mts +1 -1
- package/lib/manifest/index.d.mts.map +1 -1
- package/lib/manifest/index.d.ts +1 -1
- package/lib/manifest/index.d.ts.map +1 -1
- package/lib/manifest/index.js.map +1 -1
- package/lib/manifest/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/company-legal-entities.d.mts +180 -0
- package/resources/company-legal-entities.d.mts.map +1 -0
- package/resources/company-legal-entities.d.ts +180 -0
- package/resources/company-legal-entities.d.ts.map +1 -0
- package/resources/company-legal-entities.js +30 -0
- package/resources/company-legal-entities.js.map +1 -0
- package/resources/company-legal-entities.mjs +26 -0
- package/resources/company-legal-entities.mjs.map +1 -0
- package/resources/earning-types.d.mts +1 -6
- package/resources/earning-types.d.mts.map +1 -1
- package/resources/earning-types.d.ts +1 -6
- package/resources/earning-types.d.ts.map +1 -1
- package/resources/earning-types.js +1 -1
- package/resources/earning-types.mjs +1 -1
- package/resources/earnings-inputs.d.mts +1 -1
- package/resources/earnings-inputs.d.ts +1 -1
- package/resources/earnings-inputs.js +1 -1
- package/resources/earnings-inputs.mjs +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/payroll-runs/index.d.mts +3 -0
- package/resources/payroll-runs/index.d.mts.map +1 -0
- package/resources/payroll-runs/index.d.ts +3 -0
- package/resources/payroll-runs/index.d.ts.map +1 -0
- package/resources/payroll-runs/index.js +9 -0
- package/resources/payroll-runs/index.js.map +1 -0
- package/resources/payroll-runs/index.mjs +4 -0
- package/resources/payroll-runs/index.mjs.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.mts +199 -0
- package/resources/payroll-runs/payroll-runs.d.mts.map +1 -0
- package/resources/payroll-runs/payroll-runs.d.ts +199 -0
- package/resources/payroll-runs/payroll-runs.d.ts.map +1 -0
- package/resources/payroll-runs/payroll-runs.js +40 -0
- package/resources/payroll-runs/payroll-runs.js.map +1 -0
- package/resources/payroll-runs/payroll-runs.mjs +35 -0
- package/resources/payroll-runs/payroll-runs.mjs.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.d.mts +200 -0
- package/resources/payroll-runs/worker-payroll-records.d.mts.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.d.ts +200 -0
- package/resources/payroll-runs/worker-payroll-records.d.ts.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.js +23 -0
- package/resources/payroll-runs/worker-payroll-records.js.map +1 -0
- package/resources/payroll-runs/worker-payroll-records.mjs +19 -0
- package/resources/payroll-runs/worker-payroll-records.mjs.map +1 -0
- package/resources/payroll-runs.d.mts +1 -194
- package/resources/payroll-runs.d.mts.map +1 -1
- package/resources/payroll-runs.d.ts +1 -194
- package/resources/payroll-runs.d.ts.map +1 -1
- package/resources/payroll-runs.js +2 -28
- package/resources/payroll-runs.js.map +1 -1
- package/resources/payroll-runs.mjs +1 -26
- package/resources/payroll-runs.mjs.map +1 -1
- package/src/client.ts +27 -7
- package/src/internal/utils/log.ts +2 -0
- package/src/lib/manifest/custom-object-field-section.ts +7 -0
- package/src/lib/manifest/custom-object-page-layout.ts +220 -18
- package/src/lib/manifest/field.ts +9 -1
- package/src/lib/manifest/index.ts +2 -0
- package/src/resources/company-legal-entities.ts +237 -0
- package/src/resources/earning-types.ts +1 -7
- package/src/resources/earnings-inputs.ts +1 -1
- package/src/resources/index.ts +8 -1
- package/src/resources/legal-entities.ts +1 -1
- package/src/resources/payroll-runs/index.ts +15 -0
- package/src/resources/payroll-runs/payroll-runs.ts +270 -0
- package/src/resources/payroll-runs/worker-payroll-records.ts +255 -0
- package/src/resources/payroll-runs.ts +1 -249
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from './business-partners';
|
|
5
|
+
import * as Shared from './shared';
|
|
6
|
+
import { APIPromise } from '../core/api-promise';
|
|
7
|
+
import { PageCursorURL, PagePromise } from '../core/pagination';
|
|
8
|
+
import { RequestOptions } from '../internal/request-options';
|
|
9
|
+
import { path } from '../internal/utils/path';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Legal entities registered by the company
|
|
13
|
+
*/
|
|
14
|
+
export class CompanyLegalEntities extends APIResource {
|
|
15
|
+
/**
|
|
16
|
+
* A list of company legal entities.
|
|
17
|
+
*
|
|
18
|
+
* - Requires: `API Tier 2`
|
|
19
|
+
* - Filterable fields: `country_code`
|
|
20
|
+
* - Sortable fields: `id`, `created_at`, `updated_at`
|
|
21
|
+
*/
|
|
22
|
+
list(
|
|
23
|
+
query: CompanyLegalEntityListParams | null | undefined = {},
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): PagePromise<CompanyLegalEntityListResponsesPageCursorURL, CompanyLegalEntityListResponse> {
|
|
26
|
+
return this._client.getAPIList(
|
|
27
|
+
'/company-legal-entities/',
|
|
28
|
+
PageCursorURL<CompanyLegalEntityListResponse>,
|
|
29
|
+
{ query, ...options },
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve a specific company legal entity
|
|
35
|
+
*/
|
|
36
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<CompanyLegalEntityRetrieveResponse> {
|
|
37
|
+
return this._client.get(path`/company-legal-entities/${id}/`, options);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type CompanyLegalEntityListResponsesPageCursorURL = PageCursorURL<CompanyLegalEntityListResponse>;
|
|
42
|
+
|
|
43
|
+
export interface CompanyLegalEntityListResponse {
|
|
44
|
+
/**
|
|
45
|
+
* Identifier field
|
|
46
|
+
*/
|
|
47
|
+
id: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Record creation date
|
|
51
|
+
*/
|
|
52
|
+
created_at: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Record update date
|
|
56
|
+
*/
|
|
57
|
+
updated_at: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The company associated with this entity relationship.
|
|
61
|
+
*/
|
|
62
|
+
company_id?: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The ISO country code for the entity.
|
|
66
|
+
*/
|
|
67
|
+
country_code?: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The entity's level in a hierarchy. _ `PARENT`: The legal entity is considered
|
|
71
|
+
* the ultimate holding entity. _ `SUBSIDIARY`: The legal entity is considered a
|
|
72
|
+
* subsidiary, fully or partially held by another. \* `BRANCH`: The legal entity is
|
|
73
|
+
* considered a branch, associated with a parent legal entity.
|
|
74
|
+
*/
|
|
75
|
+
entity_level?: 'PARENT' | 'SUBSIDIARY' | 'BRANCH';
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* True if this entity relationship has been archived.
|
|
79
|
+
*/
|
|
80
|
+
is_archived?: boolean;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* True if this entity is managed as a Contractor of Record.
|
|
84
|
+
*/
|
|
85
|
+
is_cor?: boolean;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* True if this entity is managed as an Employer of Record.
|
|
89
|
+
*/
|
|
90
|
+
is_eor?: boolean;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* True if this entity is managed as a Professional Employment Organization.
|
|
94
|
+
*/
|
|
95
|
+
is_peo?: boolean;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The legal name of the entity.
|
|
99
|
+
*/
|
|
100
|
+
legal_name?: string;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The mailing address of the entity.
|
|
104
|
+
*/
|
|
105
|
+
mailing_address?: Shared.Address;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The entity management type. _ `EOR`: The entity is managed as an Employer of
|
|
109
|
+
* Record. _ `COR`: The entity is managed as a Contractor of Record. _ `PEO`: The
|
|
110
|
+
* entity is managed as a Professional Employment Organization. _ `null`: The
|
|
111
|
+
* entity is a direct hire with no managed employment type.
|
|
112
|
+
*/
|
|
113
|
+
management_type?: 'PEO' | 'EOR' | 'COR';
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The physical address of the entity, if it differs from the mailing address.
|
|
117
|
+
*/
|
|
118
|
+
physical_address?: Shared.Address;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The registration date of the entity.
|
|
122
|
+
*/
|
|
123
|
+
registration_date?: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The tax identifier for this entity.
|
|
127
|
+
*/
|
|
128
|
+
tax_identifier?: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Meta information for the response.
|
|
133
|
+
*/
|
|
134
|
+
export interface CompanyLegalEntityRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
135
|
+
/**
|
|
136
|
+
* Identifier field
|
|
137
|
+
*/
|
|
138
|
+
id: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Record creation date
|
|
142
|
+
*/
|
|
143
|
+
created_at: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Record update date
|
|
147
|
+
*/
|
|
148
|
+
updated_at: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* The company associated with this entity relationship.
|
|
152
|
+
*/
|
|
153
|
+
company_id?: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* The ISO country code for the entity.
|
|
157
|
+
*/
|
|
158
|
+
country_code?: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* The entity's level in a hierarchy. _ `PARENT`: The legal entity is considered
|
|
162
|
+
* the ultimate holding entity. _ `SUBSIDIARY`: The legal entity is considered a
|
|
163
|
+
* subsidiary, fully or partially held by another. \* `BRANCH`: The legal entity is
|
|
164
|
+
* considered a branch, associated with a parent legal entity.
|
|
165
|
+
*/
|
|
166
|
+
entity_level?: 'PARENT' | 'SUBSIDIARY' | 'BRANCH';
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* True if this entity relationship has been archived.
|
|
170
|
+
*/
|
|
171
|
+
is_archived?: boolean;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* True if this entity is managed as a Contractor of Record.
|
|
175
|
+
*/
|
|
176
|
+
is_cor?: boolean;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* True if this entity is managed as an Employer of Record.
|
|
180
|
+
*/
|
|
181
|
+
is_eor?: boolean;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* True if this entity is managed as a Professional Employment Organization.
|
|
185
|
+
*/
|
|
186
|
+
is_peo?: boolean;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The legal name of the entity.
|
|
190
|
+
*/
|
|
191
|
+
legal_name?: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* The mailing address of the entity.
|
|
195
|
+
*/
|
|
196
|
+
mailing_address?: Shared.Address;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* The entity management type. _ `EOR`: The entity is managed as an Employer of
|
|
200
|
+
* Record. _ `COR`: The entity is managed as a Contractor of Record. _ `PEO`: The
|
|
201
|
+
* entity is managed as a Professional Employment Organization. _ `null`: The
|
|
202
|
+
* entity is a direct hire with no managed employment type.
|
|
203
|
+
*/
|
|
204
|
+
management_type?: 'PEO' | 'EOR' | 'COR';
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The physical address of the entity, if it differs from the mailing address.
|
|
208
|
+
*/
|
|
209
|
+
physical_address?: Shared.Address;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The registration date of the entity.
|
|
213
|
+
*/
|
|
214
|
+
registration_date?: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The tax identifier for this entity.
|
|
218
|
+
*/
|
|
219
|
+
tax_identifier?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface CompanyLegalEntityListParams {
|
|
223
|
+
cursor?: string;
|
|
224
|
+
|
|
225
|
+
filter?: string;
|
|
226
|
+
|
|
227
|
+
order_by?: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export declare namespace CompanyLegalEntities {
|
|
231
|
+
export {
|
|
232
|
+
type CompanyLegalEntityListResponse as CompanyLegalEntityListResponse,
|
|
233
|
+
type CompanyLegalEntityRetrieveResponse as CompanyLegalEntityRetrieveResponse,
|
|
234
|
+
type CompanyLegalEntityListResponsesPageCursorURL as CompanyLegalEntityListResponsesPageCursorURL,
|
|
235
|
+
type CompanyLegalEntityListParams as CompanyLegalEntityListParams,
|
|
236
|
+
};
|
|
237
|
+
}
|
|
@@ -11,7 +11,7 @@ export class EarningTypes extends APIResource {
|
|
|
11
11
|
/**
|
|
12
12
|
* A list of earning-types.
|
|
13
13
|
*
|
|
14
|
-
* - Requires: `Payroll
|
|
14
|
+
* - Requires: `Global Payroll`
|
|
15
15
|
*/
|
|
16
16
|
list(
|
|
17
17
|
options?: RequestOptions,
|
|
@@ -34,12 +34,6 @@ export interface EarningTypeListResponse {
|
|
|
34
34
|
*/
|
|
35
35
|
id?: string;
|
|
36
36
|
|
|
37
|
-
/**
|
|
38
|
-
* Company entity relationship identifier (CER ID) linking the earning type to the
|
|
39
|
-
* HRIS legal entity.
|
|
40
|
-
*/
|
|
41
|
-
company_entity_id?: string;
|
|
42
|
-
|
|
43
37
|
/**
|
|
44
38
|
* ISO country code where the earning type applies.
|
|
45
39
|
*/
|
package/src/resources/index.ts
CHANGED
|
@@ -33,6 +33,13 @@ export {
|
|
|
33
33
|
type CandidateListResponsesPageCursorURL,
|
|
34
34
|
} from './candidates';
|
|
35
35
|
export { Companies, type Company, type CompanyListParams, type CompaniesPageCursorURL } from './companies';
|
|
36
|
+
export {
|
|
37
|
+
CompanyLegalEntities,
|
|
38
|
+
type CompanyLegalEntityListResponse,
|
|
39
|
+
type CompanyLegalEntityRetrieveResponse,
|
|
40
|
+
type CompanyLegalEntityListParams,
|
|
41
|
+
type CompanyLegalEntityListResponsesPageCursorURL,
|
|
42
|
+
} from './company-legal-entities';
|
|
36
43
|
export {
|
|
37
44
|
CompanyLegalEntityWorkers,
|
|
38
45
|
type CompanyLegalEntityWorkerListResponse,
|
|
@@ -315,7 +322,7 @@ export {
|
|
|
315
322
|
type PayrollRunRetrieveResponse,
|
|
316
323
|
type PayrollRunListParams,
|
|
317
324
|
type PayrollRunListResponsesPageCursorURL,
|
|
318
|
-
} from './payroll-runs';
|
|
325
|
+
} from './payroll-runs/payroll-runs';
|
|
319
326
|
export {
|
|
320
327
|
PlatformCapabilities,
|
|
321
328
|
type PlatformCapabilityListResponse,
|
|
@@ -98,7 +98,7 @@ export interface LegalEntity {
|
|
|
98
98
|
* considered a Professional Employment Organization (PEO). _ `EOR`: The legal
|
|
99
99
|
* entity is considered an Employer of Record (EOR).
|
|
100
100
|
*/
|
|
101
|
-
management_type?: 'PEO' | 'EOR';
|
|
101
|
+
management_type?: 'PEO' | 'EOR' | 'COR';
|
|
102
102
|
|
|
103
103
|
parent?: unknown;
|
|
104
104
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
PayrollRuns,
|
|
5
|
+
type PayrollRunListResponse,
|
|
6
|
+
type PayrollRunRetrieveResponse,
|
|
7
|
+
type PayrollRunListParams,
|
|
8
|
+
type PayrollRunListResponsesPageCursorURL,
|
|
9
|
+
} from './payroll-runs';
|
|
10
|
+
export {
|
|
11
|
+
WorkerPayrollRecords,
|
|
12
|
+
type WorkerPayrollRecordListResponse,
|
|
13
|
+
type WorkerPayrollRecordListParams,
|
|
14
|
+
type WorkerPayrollRecordListResponsesPageCursorURL,
|
|
15
|
+
} from './worker-payroll-records';
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as BusinessPartnersAPI from '../business-partners';
|
|
5
|
+
import * as WorkerPayrollRecordsAPI from './worker-payroll-records';
|
|
6
|
+
import {
|
|
7
|
+
WorkerPayrollRecordListParams,
|
|
8
|
+
WorkerPayrollRecordListResponse,
|
|
9
|
+
WorkerPayrollRecordListResponsesPageCursorURL,
|
|
10
|
+
WorkerPayrollRecords,
|
|
11
|
+
} from './worker-payroll-records';
|
|
12
|
+
import { APIPromise } from '../../core/api-promise';
|
|
13
|
+
import { PageCursorURL, PagePromise } from '../../core/pagination';
|
|
14
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
15
|
+
import { path } from '../../internal/utils/path';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Payroll runs for the company
|
|
19
|
+
*/
|
|
20
|
+
export class PayrollRuns extends APIResource {
|
|
21
|
+
workerPayrollRecords: WorkerPayrollRecordsAPI.WorkerPayrollRecords =
|
|
22
|
+
new WorkerPayrollRecordsAPI.WorkerPayrollRecords(this._client);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* A list of payroll-runs.
|
|
26
|
+
*
|
|
27
|
+
* - Requires: `Global Payroll`
|
|
28
|
+
* - Sortable fields: `check_date`
|
|
29
|
+
*/
|
|
30
|
+
list(
|
|
31
|
+
query: PayrollRunListParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): PagePromise<PayrollRunListResponsesPageCursorURL, PayrollRunListResponse> {
|
|
34
|
+
return this._client.getAPIList('/payroll-runs/', PageCursorURL<PayrollRunListResponse>, {
|
|
35
|
+
query,
|
|
36
|
+
...options,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Retrieve a specific payroll-run
|
|
42
|
+
*/
|
|
43
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<PayrollRunRetrieveResponse> {
|
|
44
|
+
return this._client.get(path`/payroll-runs/${id}/`, options);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type PayrollRunListResponsesPageCursorURL = PageCursorURL<PayrollRunListResponse>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* V2 DTO representing a single payroll run.
|
|
52
|
+
*
|
|
53
|
+
* Used by:
|
|
54
|
+
* - GET /payroll-runs/ (list)
|
|
55
|
+
* - GET /payroll-runs/{id} (retrieve)
|
|
56
|
+
*/
|
|
57
|
+
export interface PayrollRunListResponse {
|
|
58
|
+
/**
|
|
59
|
+
* Unique identifier for the payroll run.
|
|
60
|
+
*/
|
|
61
|
+
id?: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Deadline for approving the payroll run.
|
|
65
|
+
*/
|
|
66
|
+
approval_deadline?: string;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Timestamp when the run was approved.
|
|
70
|
+
*/
|
|
71
|
+
approved_at?: string;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Date the paycheck is issued.
|
|
75
|
+
*/
|
|
76
|
+
check_date?: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Identifier linking this payroll run to the company's legal entity in the HRIS
|
|
80
|
+
* system.
|
|
81
|
+
*/
|
|
82
|
+
company_entity_id?: string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* ISO country code where the payroll run applies.
|
|
86
|
+
*/
|
|
87
|
+
country_code?: string;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Date funds are debited from the company's account.
|
|
91
|
+
*/
|
|
92
|
+
debit_date?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Deadline after which the run is locked for changes.
|
|
96
|
+
*/
|
|
97
|
+
lock_deadline?: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Timestamp when the run was marked as paid.
|
|
101
|
+
*/
|
|
102
|
+
paid_at?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Pay period details for this run.
|
|
106
|
+
*/
|
|
107
|
+
pay_period?: PayrollRunListResponse.PayPeriod;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Payment method used (e.g. WIRE, ACH).
|
|
111
|
+
*/
|
|
112
|
+
payment_type?: string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Current state of the run (e.g. DRAFT, PAID, APPROVED).
|
|
116
|
+
*/
|
|
117
|
+
run_state?: string;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
|
|
121
|
+
*/
|
|
122
|
+
run_type?: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Human-readable title of the payroll run.
|
|
126
|
+
*/
|
|
127
|
+
title?: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export namespace PayrollRunListResponse {
|
|
131
|
+
/**
|
|
132
|
+
* Pay period details for this run.
|
|
133
|
+
*/
|
|
134
|
+
export interface PayPeriod {
|
|
135
|
+
/**
|
|
136
|
+
* End date of the pay period.
|
|
137
|
+
*/
|
|
138
|
+
end_date?: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
|
|
142
|
+
*/
|
|
143
|
+
pay_frequency?: string;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Start date of the pay period.
|
|
147
|
+
*/
|
|
148
|
+
start_date?: string;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Meta information for the response.
|
|
154
|
+
*/
|
|
155
|
+
export interface PayrollRunRetrieveResponse extends BusinessPartnersAPI.Meta {
|
|
156
|
+
/**
|
|
157
|
+
* Unique identifier for the payroll run.
|
|
158
|
+
*/
|
|
159
|
+
id?: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Deadline for approving the payroll run.
|
|
163
|
+
*/
|
|
164
|
+
approval_deadline?: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Timestamp when the run was approved.
|
|
168
|
+
*/
|
|
169
|
+
approved_at?: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Date the paycheck is issued.
|
|
173
|
+
*/
|
|
174
|
+
check_date?: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Identifier linking this payroll run to the company's legal entity in the HRIS
|
|
178
|
+
* system.
|
|
179
|
+
*/
|
|
180
|
+
company_entity_id?: string;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* ISO country code where the payroll run applies.
|
|
184
|
+
*/
|
|
185
|
+
country_code?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Date funds are debited from the company's account.
|
|
189
|
+
*/
|
|
190
|
+
debit_date?: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Deadline after which the run is locked for changes.
|
|
194
|
+
*/
|
|
195
|
+
lock_deadline?: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Timestamp when the run was marked as paid.
|
|
199
|
+
*/
|
|
200
|
+
paid_at?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Pay period details for this run.
|
|
204
|
+
*/
|
|
205
|
+
pay_period?: PayrollRunRetrieveResponse.PayPeriod;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Payment method used (e.g. WIRE, ACH).
|
|
209
|
+
*/
|
|
210
|
+
payment_type?: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Current state of the run (e.g. DRAFT, PAID, APPROVED).
|
|
214
|
+
*/
|
|
215
|
+
run_state?: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Type of the run (e.g. REGULAR, OFF_CYCLE, CORRECTION).
|
|
219
|
+
*/
|
|
220
|
+
run_type?: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Human-readable title of the payroll run.
|
|
224
|
+
*/
|
|
225
|
+
title?: string;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export namespace PayrollRunRetrieveResponse {
|
|
229
|
+
/**
|
|
230
|
+
* Pay period details for this run.
|
|
231
|
+
*/
|
|
232
|
+
export interface PayPeriod {
|
|
233
|
+
/**
|
|
234
|
+
* End date of the pay period.
|
|
235
|
+
*/
|
|
236
|
+
end_date?: string;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Pay frequency for this period (e.g. BI_WEEKLY, SEMI_MONTHLY, MONTHLY, WEEKLY).
|
|
240
|
+
*/
|
|
241
|
+
pay_frequency?: string;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Start date of the pay period.
|
|
245
|
+
*/
|
|
246
|
+
start_date?: string;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export interface PayrollRunListParams {
|
|
251
|
+
order_by?: string;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
PayrollRuns.WorkerPayrollRecords = WorkerPayrollRecords;
|
|
255
|
+
|
|
256
|
+
export declare namespace PayrollRuns {
|
|
257
|
+
export {
|
|
258
|
+
type PayrollRunListResponse as PayrollRunListResponse,
|
|
259
|
+
type PayrollRunRetrieveResponse as PayrollRunRetrieveResponse,
|
|
260
|
+
type PayrollRunListResponsesPageCursorURL as PayrollRunListResponsesPageCursorURL,
|
|
261
|
+
type PayrollRunListParams as PayrollRunListParams,
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export {
|
|
265
|
+
WorkerPayrollRecords as WorkerPayrollRecords,
|
|
266
|
+
type WorkerPayrollRecordListResponse as WorkerPayrollRecordListResponse,
|
|
267
|
+
type WorkerPayrollRecordListResponsesPageCursorURL as WorkerPayrollRecordListResponsesPageCursorURL,
|
|
268
|
+
type WorkerPayrollRecordListParams as WorkerPayrollRecordListParams,
|
|
269
|
+
};
|
|
270
|
+
}
|