@rippling/rippling-sdk 0.2.0-alpha.111 → 0.2.0-alpha.113

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.
Files changed (145) hide show
  1. package/client.d.mts +20 -2
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +20 -2
  4. package/client.d.ts.map +1 -1
  5. package/client.js +18 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +18 -0
  8. package/client.mjs.map +1 -1
  9. package/lib/manifest/definitions/canvas-instance.d.mts +114 -0
  10. package/lib/manifest/definitions/canvas-instance.d.mts.map +1 -0
  11. package/lib/manifest/definitions/canvas-instance.d.ts +114 -0
  12. package/lib/manifest/definitions/canvas-instance.d.ts.map +1 -0
  13. package/lib/manifest/definitions/canvas-instance.js +31 -0
  14. package/lib/manifest/definitions/canvas-instance.js.map +1 -0
  15. package/lib/manifest/definitions/canvas-instance.mjs +28 -0
  16. package/lib/manifest/definitions/canvas-instance.mjs.map +1 -0
  17. package/lib/manifest/definitions/index.d.mts +1 -0
  18. package/lib/manifest/definitions/index.d.mts.map +1 -1
  19. package/lib/manifest/definitions/index.d.ts +1 -0
  20. package/lib/manifest/definitions/index.d.ts.map +1 -1
  21. package/lib/manifest/definitions/index.js +3 -1
  22. package/lib/manifest/definitions/index.js.map +1 -1
  23. package/lib/manifest/definitions/index.mjs +1 -0
  24. package/lib/manifest/definitions/index.mjs.map +1 -1
  25. package/lib/manifest/manifest-builder.d.mts +1 -1
  26. package/lib/manifest/manifest-builder.d.mts.map +1 -1
  27. package/lib/manifest/manifest-builder.d.ts +1 -1
  28. package/lib/manifest/manifest-builder.d.ts.map +1 -1
  29. package/lib/manifest/manifest-builder.js.map +1 -1
  30. package/lib/manifest/manifest-builder.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/resources/custom-objects/custom-objects.d.mts +4 -0
  33. package/resources/custom-objects/custom-objects.d.mts.map +1 -1
  34. package/resources/custom-objects/custom-objects.d.ts +4 -0
  35. package/resources/custom-objects/custom-objects.d.ts.map +1 -1
  36. package/resources/custom-objects/custom-objects.js +4 -0
  37. package/resources/custom-objects/custom-objects.js.map +1 -1
  38. package/resources/custom-objects/custom-objects.mjs +4 -0
  39. package/resources/custom-objects/custom-objects.mjs.map +1 -1
  40. package/resources/custom-objects/index.d.mts +1 -0
  41. package/resources/custom-objects/index.d.mts.map +1 -1
  42. package/resources/custom-objects/index.d.ts +1 -0
  43. package/resources/custom-objects/index.d.ts.map +1 -1
  44. package/resources/custom-objects/index.js +3 -1
  45. package/resources/custom-objects/index.js.map +1 -1
  46. package/resources/custom-objects/index.mjs +1 -0
  47. package/resources/custom-objects/index.mjs.map +1 -1
  48. package/resources/custom-objects/record-actions.d.mts +98 -0
  49. package/resources/custom-objects/record-actions.d.mts.map +1 -0
  50. package/resources/custom-objects/record-actions.d.ts +98 -0
  51. package/resources/custom-objects/record-actions.d.ts.map +1 -0
  52. package/resources/custom-objects/record-actions.js +58 -0
  53. package/resources/custom-objects/record-actions.js.map +1 -0
  54. package/resources/custom-objects/record-actions.mjs +54 -0
  55. package/resources/custom-objects/record-actions.mjs.map +1 -0
  56. package/resources/earnings-inputs.d.mts +14 -2
  57. package/resources/earnings-inputs.d.mts.map +1 -1
  58. package/resources/earnings-inputs.d.ts +14 -2
  59. package/resources/earnings-inputs.d.ts.map +1 -1
  60. package/resources/earnings-inputs.js +14 -2
  61. package/resources/earnings-inputs.js.map +1 -1
  62. package/resources/earnings-inputs.mjs +14 -2
  63. package/resources/earnings-inputs.mjs.map +1 -1
  64. package/resources/index.d.mts +4 -1
  65. package/resources/index.d.mts.map +1 -1
  66. package/resources/index.d.ts +4 -1
  67. package/resources/index.d.ts.map +1 -1
  68. package/resources/index.js +8 -2
  69. package/resources/index.js.map +1 -1
  70. package/resources/index.mjs +3 -0
  71. package/resources/index.mjs.map +1 -1
  72. package/resources/record-detail-reference-options.d.mts +18 -19
  73. package/resources/record-detail-reference-options.d.mts.map +1 -1
  74. package/resources/record-detail-reference-options.d.ts +18 -19
  75. package/resources/record-detail-reference-options.d.ts.map +1 -1
  76. package/resources/record-detail-reference-options.js +13 -13
  77. package/resources/record-detail-reference-options.mjs +13 -13
  78. package/resources/record-detail-related-records.d.mts +293 -204
  79. package/resources/record-detail-related-records.d.mts.map +1 -1
  80. package/resources/record-detail-related-records.d.ts +293 -204
  81. package/resources/record-detail-related-records.d.ts.map +1 -1
  82. package/resources/record-detail-related-records.js +3 -3
  83. package/resources/record-detail-related-records.mjs +3 -3
  84. package/resources/record-details.d.mts +1676 -222
  85. package/resources/record-details.d.mts.map +1 -1
  86. package/resources/record-details.d.ts +1676 -222
  87. package/resources/record-details.d.ts.map +1 -1
  88. package/resources/record-details.js +76 -6
  89. package/resources/record-details.js.map +1 -1
  90. package/resources/record-details.mjs +76 -6
  91. package/resources/record-details.mjs.map +1 -1
  92. package/resources/scheduled-payout-labels.d.mts +267 -0
  93. package/resources/scheduled-payout-labels.d.mts.map +1 -0
  94. package/resources/scheduled-payout-labels.d.ts +267 -0
  95. package/resources/scheduled-payout-labels.d.ts.map +1 -0
  96. package/resources/scheduled-payout-labels.js +151 -0
  97. package/resources/scheduled-payout-labels.js.map +1 -0
  98. package/resources/scheduled-payout-labels.mjs +147 -0
  99. package/resources/scheduled-payout-labels.mjs.map +1 -0
  100. package/resources/scheduled-payout-types.d.mts +680 -0
  101. package/resources/scheduled-payout-types.d.mts.map +1 -0
  102. package/resources/scheduled-payout-types.d.ts +680 -0
  103. package/resources/scheduled-payout-types.d.ts.map +1 -0
  104. package/resources/scheduled-payout-types.js +546 -0
  105. package/resources/scheduled-payout-types.js.map +1 -0
  106. package/resources/scheduled-payout-types.mjs +542 -0
  107. package/resources/scheduled-payout-types.mjs.map +1 -0
  108. package/resources/scheduled-payouts.d.mts +1590 -0
  109. package/resources/scheduled-payouts.d.mts.map +1 -0
  110. package/resources/scheduled-payouts.d.ts +1590 -0
  111. package/resources/scheduled-payouts.d.ts.map +1 -0
  112. package/resources/scheduled-payouts.js +584 -0
  113. package/resources/scheduled-payouts.js.map +1 -0
  114. package/resources/scheduled-payouts.mjs +580 -0
  115. package/resources/scheduled-payouts.mjs.map +1 -0
  116. package/resources/worker-changes.d.mts +65 -10
  117. package/resources/worker-changes.d.mts.map +1 -1
  118. package/resources/worker-changes.d.ts +65 -10
  119. package/resources/worker-changes.d.ts.map +1 -1
  120. package/resources/worker-changes.js +3 -0
  121. package/resources/worker-changes.js.map +1 -1
  122. package/resources/worker-changes.mjs +3 -0
  123. package/resources/worker-changes.mjs.map +1 -1
  124. package/src/client.ts +88 -0
  125. package/src/lib/manifest/definitions/README.md +3 -1
  126. package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
  127. package/src/lib/manifest/definitions/index.ts +17 -0
  128. package/src/lib/manifest/manifest-builder.ts +1 -0
  129. package/src/resources/custom-objects/custom-objects.ts +16 -0
  130. package/src/resources/custom-objects/index.ts +6 -0
  131. package/src/resources/custom-objects/record-actions.ts +125 -0
  132. package/src/resources/earnings-inputs.ts +14 -2
  133. package/src/resources/index.ts +35 -0
  134. package/src/resources/record-detail-reference-options.ts +18 -19
  135. package/src/resources/record-detail-related-records.ts +298 -191
  136. package/src/resources/record-details.ts +2031 -209
  137. package/src/resources/scheduled-payout-labels.ts +373 -0
  138. package/src/resources/scheduled-payout-types.ts +755 -0
  139. package/src/resources/scheduled-payouts.ts +1949 -0
  140. package/src/resources/worker-changes.ts +71 -10
  141. package/src/version.ts +1 -1
  142. package/version.d.mts +1 -1
  143. package/version.d.ts +1 -1
  144. package/version.js +1 -1
  145. package/version.mjs +1 -1
@@ -0,0 +1,542 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { PageCursorURL } from "../core/pagination.mjs";
4
+ import { buildHeaders } from "../internal/headers.mjs";
5
+ import { path } from "../internal/utils/path.mjs";
6
+ /**
7
+ * Compensation associated with workers
8
+ */
9
+ export class ScheduledPayoutTypes extends APIResource {
10
+ /**
11
+ * List system and custom payout types, ordered by id. Per-entity earning code
12
+ * mappings are configured in Rippling and are not part of this API. Paginated with
13
+ * limit and cursor.
14
+ *
15
+ * - Requires: `Internal Testing`
16
+ *
17
+ * @example HTTP
18
+ * Representative request and response shapes.
19
+ * ```
20
+ * GET /scheduled-payout-types/?expand=expand&limit=0&cursor=cursor HTTP/1.1
21
+ * Host: rest.ripplingapis.com
22
+ * Accept: application/json
23
+ * Rippling-Api-Version: 2024-08-01
24
+ *
25
+ * HTTP/1.1 200 OK
26
+ * Content-Type: application/json
27
+ *
28
+ * {
29
+ * "__meta": {
30
+ * "redacted_fields": [
31
+ * {
32
+ * "name": "date_of_birth",
33
+ * "reason": "Insufficient entitlements"
34
+ * }
35
+ * ]
36
+ * },
37
+ * "results": [
38
+ * {
39
+ * "id": "string",
40
+ * "key": "string",
41
+ * "display_name": "string",
42
+ * "is_system": false,
43
+ * "created_by_id": "string",
44
+ * "created_by": {
45
+ * "id": "string",
46
+ * "created_at": "string",
47
+ * "updated_at": "string",
48
+ * "user_id": "string",
49
+ * "user": {},
50
+ * "is_manager": "string",
51
+ * "manager_id": "string",
52
+ * "manager": {},
53
+ * "legal_entity_id": "string",
54
+ * "legal_entity": {},
55
+ * "country": "AF",
56
+ * "start_date": "string",
57
+ * "end_date": "string",
58
+ * "number": "string",
59
+ * "work_email": "string",
60
+ * "personal_email": "string",
61
+ * "status": "INIT",
62
+ * "location": {},
63
+ * "employment_type_id": "string",
64
+ * "employment_type": {},
65
+ * "gender": "MALE",
66
+ * "date_of_birth": "string",
67
+ * "race": "BLACK",
68
+ * "ethnicity": "HISPANIC_OR_LATINO",
69
+ * "citizenship": "AF",
70
+ * "compensation_id": "string",
71
+ * "compensation": {},
72
+ * "overtime_exemption": "EXEMPT",
73
+ * "department_id": "string",
74
+ * "department": {},
75
+ * "teams_id": [],
76
+ * "teams": [],
77
+ * "title": "string",
78
+ * "title_effective_date": "string",
79
+ * "level_id": "string",
80
+ * "level": {},
81
+ * "job_function_id": "string",
82
+ * "job_function": {},
83
+ * "termination_details": {},
84
+ * "pay_schedule_id": "string",
85
+ * "work_schedule": {},
86
+ * "compensation_grade": {},
87
+ * "original_start_date": "string",
88
+ * "custom_fields": [],
89
+ * "country_fields": {},
90
+ * "business_partners_id": [],
91
+ * "business_partners": []
92
+ * }
93
+ * }
94
+ * ],
95
+ * "next_link": "string"
96
+ * }
97
+ * ```
98
+ */
99
+ list(query = {}, options) {
100
+ return this._client.getAPIList('/scheduled-payout-types/', (PageCursorURL), { query, ...options });
101
+ }
102
+ /**
103
+ * Create a custom payout type. Omit key; the server assigns one. Creates are not
104
+ * idempotent: repeating the request creates another payout type with a new key,
105
+ * even with the same display_name. Use PATCH /scheduled-payout-types/{key}/ to
106
+ * update.
107
+ *
108
+ * @example HTTP
109
+ * Representative request and response shapes.
110
+ * ```
111
+ * POST /scheduled-payout-types/ HTTP/1.1
112
+ * Host: rest.ripplingapis.com
113
+ * Content-Type: application/json
114
+ * Accept: application/json
115
+ * Rippling-Api-Version: 2024-08-01
116
+ *
117
+ * {
118
+ * "display_name": "display_name"
119
+ * }
120
+ *
121
+ * HTTP/1.1 200 OK
122
+ * Content-Type: application/json
123
+ *
124
+ * {
125
+ * "id": "string",
126
+ * "key": "string",
127
+ * "display_name": "string",
128
+ * "is_system": false,
129
+ * "created_by_id": "string",
130
+ * "created_by": {
131
+ * "id": "string",
132
+ * "created_at": "string",
133
+ * "updated_at": "string",
134
+ * "user_id": "string",
135
+ * "user": {
136
+ * "id": "string",
137
+ * "created_at": "string",
138
+ * "updated_at": "string"
139
+ * },
140
+ * "is_manager": false,
141
+ * "manager_id": "string",
142
+ * "manager": {
143
+ * "id": "string",
144
+ * "created_at": "string",
145
+ * "updated_at": "string"
146
+ * },
147
+ * "legal_entity_id": "string",
148
+ * "legal_entity": {
149
+ * "id": "string",
150
+ * "created_at": "string",
151
+ * "updated_at": "string"
152
+ * },
153
+ * "country": "AF",
154
+ * "start_date": "string",
155
+ * "end_date": "string",
156
+ * "number": 0,
157
+ * "work_email": "string",
158
+ * "personal_email": "string",
159
+ * "status": "INIT",
160
+ * "location": {
161
+ * "type": "REMOTE",
162
+ * "work_location_id": "string"
163
+ * },
164
+ * "employment_type_id": "string",
165
+ * "employment_type": {
166
+ * "id": "string",
167
+ * "created_at": "string",
168
+ * "updated_at": "string",
169
+ * "label": "string"
170
+ * },
171
+ * "gender": "MALE",
172
+ * "date_of_birth": "string",
173
+ * "race": "BLACK",
174
+ * "ethnicity": "HISPANIC_OR_LATINO",
175
+ * "citizenship": "AF",
176
+ * "compensation_id": "string",
177
+ * "compensation": {
178
+ * "id": "string",
179
+ * "created_at": "string",
180
+ * "updated_at": "string"
181
+ * },
182
+ * "overtime_exemption": "EXEMPT",
183
+ * "department_id": "string",
184
+ * "department": {
185
+ * "id": "string",
186
+ * "created_at": "string",
187
+ * "updated_at": "string",
188
+ * "name": "string",
189
+ * "parent_id": "string"
190
+ * },
191
+ * "teams_id": [
192
+ * "string"
193
+ * ],
194
+ * "teams": [
195
+ * {
196
+ * "id": "string",
197
+ * "created_at": "string",
198
+ * "updated_at": "string",
199
+ * "parent_id": "string",
200
+ * "parent": {},
201
+ * "name": "string"
202
+ * }
203
+ * ],
204
+ * "title": "string",
205
+ * "title_effective_date": "string",
206
+ * "level_id": "string",
207
+ * "level": {
208
+ * "id": "string",
209
+ * "created_at": "string",
210
+ * "updated_at": "string",
211
+ * "name": "string",
212
+ * "parent_id": "string",
213
+ * "parent": {
214
+ * "id": "string",
215
+ * "created_at": "string",
216
+ * "updated_at": "string",
217
+ * "name": "string",
218
+ * "parent_id": "string",
219
+ * "parent": {},
220
+ * "global_level": "string",
221
+ * "description": "string",
222
+ * "scope_of_responsibilities": "string",
223
+ * "experience_requirements": "string",
224
+ * "rank": "string",
225
+ * "track_id": "string",
226
+ * "track": {}
227
+ * },
228
+ * "global_level": 0,
229
+ * "description": "string",
230
+ * "scope_of_responsibilities": "string",
231
+ * "experience_requirements": "string",
232
+ * "rank": 0,
233
+ * "track_id": "string",
234
+ * "track": {
235
+ * "id": "string",
236
+ * "created_at": "string",
237
+ * "updated_at": "string",
238
+ * "name": "string",
239
+ * "is_default": "string",
240
+ * "order": "string",
241
+ * "start_global_level": "string"
242
+ * }
243
+ * },
244
+ * "job_function_id": "string",
245
+ * "job_function": {
246
+ * "id": "string",
247
+ * "created_at": "string",
248
+ * "updated_at": "string",
249
+ * "name": "string"
250
+ * },
251
+ * "termination_details": {
252
+ * "type": "VOLUNTARY",
253
+ * "reason": "string"
254
+ * },
255
+ * "pay_schedule_id": "string",
256
+ * "work_schedule": {},
257
+ * "compensation_grade": {
258
+ * "id": "string",
259
+ * "label": "string"
260
+ * },
261
+ * "original_start_date": "string",
262
+ * "custom_fields": [
263
+ * null
264
+ * ],
265
+ * "country_fields": {
266
+ * "us": {
267
+ * "ssn": "string"
268
+ * },
269
+ * "ca": {
270
+ * "sin": "string"
271
+ * },
272
+ * "nz": {
273
+ * "ird_number": "string"
274
+ * }
275
+ * },
276
+ * "business_partners_id": [
277
+ * "string"
278
+ * ],
279
+ * "business_partners": [
280
+ * {
281
+ * "id": "string",
282
+ * "created_at": "string",
283
+ * "updated_at": "string",
284
+ * "business_partner_group_id": "string",
285
+ * "business_partner_group": {},
286
+ * "worker_id": "string",
287
+ * "worker": {},
288
+ * "client_group_id": "string",
289
+ * "client_group": {},
290
+ * "client_group_member_count": "string"
291
+ * }
292
+ * ]
293
+ * }
294
+ * }
295
+ * ```
296
+ */
297
+ create(body, options) {
298
+ return this._client.post('/scheduled-payout-types/', { body, ...options });
299
+ }
300
+ /**
301
+ * Retrieve a specific scheduled payout type by key.
302
+ *
303
+ * @example HTTP
304
+ * Representative request and response shapes.
305
+ * ```
306
+ * GET /scheduled-payout-types/{id}/ HTTP/1.1
307
+ * Host: rest.ripplingapis.com
308
+ * Accept: application/json
309
+ * Rippling-Api-Version: 2024-08-01
310
+ *
311
+ * HTTP/1.1 200 OK
312
+ * Content-Type: application/json
313
+ *
314
+ * {
315
+ * "__meta": {
316
+ * "redacted_fields": [
317
+ * {}
318
+ * ]
319
+ * }
320
+ * }
321
+ * ```
322
+ */
323
+ retrieve(id, options) {
324
+ return this._client.get(path `/scheduled-payout-types/${id}/`, options);
325
+ }
326
+ /**
327
+ * Rename a custom payout type. Only display_name is writable.
328
+ *
329
+ * @example HTTP
330
+ * Representative request and response shapes.
331
+ * ```
332
+ * PATCH /scheduled-payout-types/{id}/ HTTP/1.1
333
+ * Host: rest.ripplingapis.com
334
+ * Content-Type: application/json
335
+ * Accept: application/json
336
+ * Rippling-Api-Version: 2024-08-01
337
+ *
338
+ * {
339
+ * "display_name": "display_name"
340
+ * }
341
+ *
342
+ * HTTP/1.1 200 OK
343
+ * Content-Type: application/json
344
+ *
345
+ * {
346
+ * "id": "string",
347
+ * "key": "string",
348
+ * "display_name": "string",
349
+ * "is_system": false,
350
+ * "created_by_id": "string",
351
+ * "created_by": {
352
+ * "id": "string",
353
+ * "created_at": "string",
354
+ * "updated_at": "string",
355
+ * "user_id": "string",
356
+ * "user": {
357
+ * "id": "string",
358
+ * "created_at": "string",
359
+ * "updated_at": "string"
360
+ * },
361
+ * "is_manager": false,
362
+ * "manager_id": "string",
363
+ * "manager": {
364
+ * "id": "string",
365
+ * "created_at": "string",
366
+ * "updated_at": "string"
367
+ * },
368
+ * "legal_entity_id": "string",
369
+ * "legal_entity": {
370
+ * "id": "string",
371
+ * "created_at": "string",
372
+ * "updated_at": "string"
373
+ * },
374
+ * "country": "AF",
375
+ * "start_date": "string",
376
+ * "end_date": "string",
377
+ * "number": 0,
378
+ * "work_email": "string",
379
+ * "personal_email": "string",
380
+ * "status": "INIT",
381
+ * "location": {
382
+ * "type": "REMOTE",
383
+ * "work_location_id": "string"
384
+ * },
385
+ * "employment_type_id": "string",
386
+ * "employment_type": {
387
+ * "id": "string",
388
+ * "created_at": "string",
389
+ * "updated_at": "string",
390
+ * "label": "string"
391
+ * },
392
+ * "gender": "MALE",
393
+ * "date_of_birth": "string",
394
+ * "race": "BLACK",
395
+ * "ethnicity": "HISPANIC_OR_LATINO",
396
+ * "citizenship": "AF",
397
+ * "compensation_id": "string",
398
+ * "compensation": {
399
+ * "id": "string",
400
+ * "created_at": "string",
401
+ * "updated_at": "string"
402
+ * },
403
+ * "overtime_exemption": "EXEMPT",
404
+ * "department_id": "string",
405
+ * "department": {
406
+ * "id": "string",
407
+ * "created_at": "string",
408
+ * "updated_at": "string",
409
+ * "name": "string",
410
+ * "parent_id": "string"
411
+ * },
412
+ * "teams_id": [
413
+ * "string"
414
+ * ],
415
+ * "teams": [
416
+ * {
417
+ * "id": "string",
418
+ * "created_at": "string",
419
+ * "updated_at": "string",
420
+ * "parent_id": "string",
421
+ * "parent": {},
422
+ * "name": "string"
423
+ * }
424
+ * ],
425
+ * "title": "string",
426
+ * "title_effective_date": "string",
427
+ * "level_id": "string",
428
+ * "level": {
429
+ * "id": "string",
430
+ * "created_at": "string",
431
+ * "updated_at": "string",
432
+ * "name": "string",
433
+ * "parent_id": "string",
434
+ * "parent": {
435
+ * "id": "string",
436
+ * "created_at": "string",
437
+ * "updated_at": "string",
438
+ * "name": "string",
439
+ * "parent_id": "string",
440
+ * "parent": {},
441
+ * "global_level": "string",
442
+ * "description": "string",
443
+ * "scope_of_responsibilities": "string",
444
+ * "experience_requirements": "string",
445
+ * "rank": "string",
446
+ * "track_id": "string",
447
+ * "track": {}
448
+ * },
449
+ * "global_level": 0,
450
+ * "description": "string",
451
+ * "scope_of_responsibilities": "string",
452
+ * "experience_requirements": "string",
453
+ * "rank": 0,
454
+ * "track_id": "string",
455
+ * "track": {
456
+ * "id": "string",
457
+ * "created_at": "string",
458
+ * "updated_at": "string",
459
+ * "name": "string",
460
+ * "is_default": "string",
461
+ * "order": "string",
462
+ * "start_global_level": "string"
463
+ * }
464
+ * },
465
+ * "job_function_id": "string",
466
+ * "job_function": {
467
+ * "id": "string",
468
+ * "created_at": "string",
469
+ * "updated_at": "string",
470
+ * "name": "string"
471
+ * },
472
+ * "termination_details": {
473
+ * "type": "VOLUNTARY",
474
+ * "reason": "string"
475
+ * },
476
+ * "pay_schedule_id": "string",
477
+ * "work_schedule": {},
478
+ * "compensation_grade": {
479
+ * "id": "string",
480
+ * "label": "string"
481
+ * },
482
+ * "original_start_date": "string",
483
+ * "custom_fields": [
484
+ * null
485
+ * ],
486
+ * "country_fields": {
487
+ * "us": {
488
+ * "ssn": "string"
489
+ * },
490
+ * "ca": {
491
+ * "sin": "string"
492
+ * },
493
+ * "nz": {
494
+ * "ird_number": "string"
495
+ * }
496
+ * },
497
+ * "business_partners_id": [
498
+ * "string"
499
+ * ],
500
+ * "business_partners": [
501
+ * {
502
+ * "id": "string",
503
+ * "created_at": "string",
504
+ * "updated_at": "string",
505
+ * "business_partner_group_id": "string",
506
+ * "business_partner_group": {},
507
+ * "worker_id": "string",
508
+ * "worker": {},
509
+ * "client_group_id": "string",
510
+ * "client_group": {},
511
+ * "client_group_member_count": "string"
512
+ * }
513
+ * ]
514
+ * }
515
+ * }
516
+ * ```
517
+ */
518
+ update(id, body, options) {
519
+ return this._client.patch(path `/scheduled-payout-types/${id}/`, { body, ...options });
520
+ }
521
+ /**
522
+ * Delete a custom payout type. Built-in payout types cannot be deleted. Returns
523
+ * 204 with no body.
524
+ *
525
+ * @example HTTP
526
+ * Representative request and response shapes.
527
+ * ```
528
+ * DELETE /scheduled-payout-types/{id}/ HTTP/1.1
529
+ * Host: rest.ripplingapis.com
530
+ * Rippling-Api-Version: 2024-08-01
531
+ *
532
+ * HTTP/1.1 204 No Content
533
+ * ```
534
+ */
535
+ delete(id, options) {
536
+ return this._client.delete(path `/scheduled-payout-types/${id}/`, {
537
+ ...options,
538
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
539
+ });
540
+ }
541
+ }
542
+ //# sourceMappingURL=scheduled-payout-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-payout-types.mjs","sourceRoot":"","sources":["../src/resources/scheduled-payout-types.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