@rippling/rippling-sdk 0.2.0-alpha.112 → 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 (123) hide show
  1. package/client.d.mts +18 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +18 -0
  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 +3 -0
  65. package/resources/index.d.mts.map +1 -1
  66. package/resources/index.d.ts +3 -0
  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-related-records.d.mts +60 -30
  73. package/resources/record-detail-related-records.d.mts.map +1 -1
  74. package/resources/record-detail-related-records.d.ts +60 -30
  75. package/resources/record-detail-related-records.d.ts.map +1 -1
  76. package/resources/record-details.d.mts +120 -60
  77. package/resources/record-details.d.mts.map +1 -1
  78. package/resources/record-details.d.ts +120 -60
  79. package/resources/record-details.d.ts.map +1 -1
  80. package/resources/scheduled-payout-labels.d.mts +267 -0
  81. package/resources/scheduled-payout-labels.d.mts.map +1 -0
  82. package/resources/scheduled-payout-labels.d.ts +267 -0
  83. package/resources/scheduled-payout-labels.d.ts.map +1 -0
  84. package/resources/scheduled-payout-labels.js +151 -0
  85. package/resources/scheduled-payout-labels.js.map +1 -0
  86. package/resources/scheduled-payout-labels.mjs +147 -0
  87. package/resources/scheduled-payout-labels.mjs.map +1 -0
  88. package/resources/scheduled-payout-types.d.mts +680 -0
  89. package/resources/scheduled-payout-types.d.mts.map +1 -0
  90. package/resources/scheduled-payout-types.d.ts +680 -0
  91. package/resources/scheduled-payout-types.d.ts.map +1 -0
  92. package/resources/scheduled-payout-types.js +546 -0
  93. package/resources/scheduled-payout-types.js.map +1 -0
  94. package/resources/scheduled-payout-types.mjs +542 -0
  95. package/resources/scheduled-payout-types.mjs.map +1 -0
  96. package/resources/scheduled-payouts.d.mts +1590 -0
  97. package/resources/scheduled-payouts.d.mts.map +1 -0
  98. package/resources/scheduled-payouts.d.ts +1590 -0
  99. package/resources/scheduled-payouts.d.ts.map +1 -0
  100. package/resources/scheduled-payouts.js +584 -0
  101. package/resources/scheduled-payouts.js.map +1 -0
  102. package/resources/scheduled-payouts.mjs +580 -0
  103. package/resources/scheduled-payouts.mjs.map +1 -0
  104. package/src/client.ts +84 -0
  105. package/src/lib/manifest/definitions/README.md +3 -1
  106. package/src/lib/manifest/definitions/canvas-instance.ts +143 -0
  107. package/src/lib/manifest/definitions/index.ts +17 -0
  108. package/src/lib/manifest/manifest-builder.ts +1 -0
  109. package/src/resources/custom-objects/custom-objects.ts +16 -0
  110. package/src/resources/custom-objects/index.ts +6 -0
  111. package/src/resources/custom-objects/record-actions.ts +125 -0
  112. package/src/resources/earnings-inputs.ts +14 -2
  113. package/src/resources/index.ts +33 -0
  114. package/src/resources/record-detail-related-records.ts +60 -30
  115. package/src/resources/record-details.ts +120 -60
  116. package/src/resources/scheduled-payout-labels.ts +373 -0
  117. package/src/resources/scheduled-payout-types.ts +755 -0
  118. package/src/resources/scheduled-payouts.ts +1949 -0
  119. package/src/version.ts +1 -1
  120. package/version.d.mts +1 -1
  121. package/version.d.ts +1 -1
  122. package/version.js +1 -1
  123. package/version.mjs +1 -1
@@ -0,0 +1,580 @@
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 { path } from "../internal/utils/path.mjs";
5
+ /**
6
+ * Compensation associated with workers
7
+ */
8
+ export class ScheduledPayouts extends APIResource {
9
+ /**
10
+ * List scheduled payouts. Paginated with limit and cursor. Filter with string
11
+ * equality joined by and on payee_id, client, external_id, status,
12
+ * source_label_id, and group_label_id, for example filter=client eq 'CUSTOM' and
13
+ * status eq 'SCHEDULED'. Supports
14
+ * expand=payee,payout_type,source_label,group_label. Always uses the company admin
15
+ * payout rowset; callers without admin payout visibility receive an empty list.
16
+ * Retrieve returns NotFound for the same rows.
17
+ *
18
+ * - Requires: `Internal Testing`
19
+ *
20
+ * @example HTTP
21
+ * Representative request and response shapes.
22
+ * ```
23
+ * GET /scheduled-payouts/?limit=0&cursor=cursor&filter=filter&expand=expand HTTP/1.1
24
+ * Host: rest.ripplingapis.com
25
+ * Accept: application/json
26
+ * Rippling-Api-Version: 2024-08-01
27
+ *
28
+ * HTTP/1.1 200 OK
29
+ * Content-Type: application/json
30
+ *
31
+ * {
32
+ * "__meta": {
33
+ * "redacted_fields": [
34
+ * {
35
+ * "name": "date_of_birth",
36
+ * "reason": "Insufficient entitlements"
37
+ * }
38
+ * ]
39
+ * },
40
+ * "results": [
41
+ * {
42
+ * "id": "string",
43
+ * "payee_id": "string",
44
+ * "payee": {
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
+ * "client": "VC_PLAN_CYCLE",
94
+ * "external_id": "string",
95
+ * "amount_base": {
96
+ * "currency_type": "string",
97
+ * "value": "string"
98
+ * },
99
+ * "amount_usd": {
100
+ * "currency_type": "string",
101
+ * "value": "string"
102
+ * },
103
+ * "pay_classification": "string",
104
+ * "payout_type_id": "string",
105
+ * "payout_type": {
106
+ * "id": "string",
107
+ * "key": "string",
108
+ * "display_name": "string",
109
+ * "is_system": "string",
110
+ * "created_by_id": "string",
111
+ * "created_by": {}
112
+ * },
113
+ * "scheduled_date": "string",
114
+ * "effective_start_date": "string",
115
+ * "effective_end_date": "string",
116
+ * "name": "string",
117
+ * "description": "string",
118
+ * "status": "DRAFT",
119
+ * "cancel_reason": "string",
120
+ * "source_label_id": "string",
121
+ * "source_label": {
122
+ * "id": "string",
123
+ * "client": "VC_PLAN_CYCLE",
124
+ * "external_id": "string",
125
+ * "name": "string"
126
+ * },
127
+ * "group_label_id": "string",
128
+ * "group_label": {
129
+ * "id": "string",
130
+ * "client": "VC_PLAN_CYCLE",
131
+ * "external_id": "string",
132
+ * "name": "string"
133
+ * },
134
+ * "paystub_id": "string",
135
+ * "created_at": "string",
136
+ * "updated_at": "string"
137
+ * }
138
+ * ],
139
+ * "next_link": "string"
140
+ * }
141
+ * ```
142
+ */
143
+ list(query = {}, options) {
144
+ return this._client.getAPIList('/scheduled-payouts/', (PageCursorURL), {
145
+ query,
146
+ ...options,
147
+ });
148
+ }
149
+ /**
150
+ * Create or update one payout. Identity is (client, external_id), not id. Same key
151
+ * and same body replays with 200. Same key and a different body overwrites a
152
+ * SCHEDULED or EVALUATION_FAILED payout when the caller can edit scheduled
153
+ * payouts; otherwise 403. RELEASED payouts return 409. Successful creates and
154
+ * updates return 200. client must be CUSTOM; other clients are written by Rippling
155
+ * systems and return 400.
156
+ *
157
+ * @example HTTP
158
+ * Representative request and response shapes.
159
+ * ```
160
+ * POST /scheduled-payouts/ HTTP/1.1
161
+ * Host: rest.ripplingapis.com
162
+ * Content-Type: application/json
163
+ * Accept: application/json
164
+ * Rippling-Api-Version: 2024-08-01
165
+ *
166
+ * {
167
+ * "amount_base": {},
168
+ * "amount_usd": {},
169
+ * "client": "VC_PLAN_CYCLE",
170
+ * "effective_end_date": "effective_end_date",
171
+ * "effective_start_date": "effective_start_date",
172
+ * "external_id": "external_id",
173
+ * "payee_id": "payee_id",
174
+ * "payout_type_id": "payout_type_id",
175
+ * "scheduled_date": "scheduled_date"
176
+ * }
177
+ *
178
+ * HTTP/1.1 200 OK
179
+ * Content-Type: application/json
180
+ *
181
+ * {
182
+ * "id": "string",
183
+ * "payee_id": "string",
184
+ * "payee": {
185
+ * "id": "string",
186
+ * "created_at": "string",
187
+ * "updated_at": "string"
188
+ * },
189
+ * "client": "VC_PLAN_CYCLE",
190
+ * "external_id": "string",
191
+ * "amount_base": {},
192
+ * "amount_usd": {},
193
+ * "pay_classification": "string",
194
+ * "payout_type_id": "string",
195
+ * "payout_type": {
196
+ * "id": "string",
197
+ * "key": "string",
198
+ * "display_name": "string",
199
+ * "is_system": false,
200
+ * "created_by_id": "string",
201
+ * "created_by": {
202
+ * "id": "string",
203
+ * "created_at": "string",
204
+ * "updated_at": "string",
205
+ * "user_id": "string",
206
+ * "user": {
207
+ * "id": "string",
208
+ * "created_at": "string",
209
+ * "updated_at": "string"
210
+ * },
211
+ * "is_manager": false,
212
+ * "manager_id": "string",
213
+ * "manager": {
214
+ * "id": "string",
215
+ * "created_at": "string",
216
+ * "updated_at": "string"
217
+ * },
218
+ * "legal_entity_id": "string",
219
+ * "legal_entity": {
220
+ * "id": "string",
221
+ * "created_at": "string",
222
+ * "updated_at": "string"
223
+ * },
224
+ * "country": "AF",
225
+ * "start_date": "string",
226
+ * "end_date": "string",
227
+ * "number": 0,
228
+ * "work_email": "string",
229
+ * "personal_email": "string",
230
+ * "status": "INIT",
231
+ * "location": {
232
+ * "type": "REMOTE",
233
+ * "work_location_id": "string"
234
+ * },
235
+ * "employment_type_id": "string",
236
+ * "employment_type": {
237
+ * "id": "string",
238
+ * "created_at": "string",
239
+ * "updated_at": "string",
240
+ * "label": "string"
241
+ * },
242
+ * "gender": "MALE",
243
+ * "date_of_birth": "string",
244
+ * "race": "BLACK",
245
+ * "ethnicity": "HISPANIC_OR_LATINO",
246
+ * "citizenship": "AF",
247
+ * "compensation_id": "string",
248
+ * "compensation": {
249
+ * "id": "string",
250
+ * "created_at": "string",
251
+ * "updated_at": "string"
252
+ * },
253
+ * "overtime_exemption": "EXEMPT",
254
+ * "department_id": "string",
255
+ * "department": {
256
+ * "id": "string",
257
+ * "created_at": "string",
258
+ * "updated_at": "string",
259
+ * "name": "string",
260
+ * "parent_id": "string",
261
+ * "parent": {},
262
+ * "reference_code": "string",
263
+ * "department_hierarchy_id": [],
264
+ * "department_hierarchy": []
265
+ * },
266
+ * "teams_id": [
267
+ * "string"
268
+ * ],
269
+ * "teams": [
270
+ * {}
271
+ * ],
272
+ * "title": "string",
273
+ * "title_effective_date": "string",
274
+ * "level_id": "string",
275
+ * "level": {
276
+ * "id": "string",
277
+ * "created_at": "string",
278
+ * "updated_at": "string",
279
+ * "name": "string",
280
+ * "parent_id": "string",
281
+ * "parent": {},
282
+ * "global_level": "string",
283
+ * "description": "string",
284
+ * "scope_of_responsibilities": "string",
285
+ * "experience_requirements": "string",
286
+ * "rank": "string",
287
+ * "track_id": "string",
288
+ * "track": {}
289
+ * },
290
+ * "job_function_id": "string",
291
+ * "job_function": {
292
+ * "id": "string",
293
+ * "created_at": "string",
294
+ * "updated_at": "string",
295
+ * "name": "string"
296
+ * },
297
+ * "termination_details": {
298
+ * "type": "VOLUNTARY",
299
+ * "reason": "string"
300
+ * },
301
+ * "pay_schedule_id": "string",
302
+ * "work_schedule": {},
303
+ * "compensation_grade": {
304
+ * "id": "string",
305
+ * "label": "string"
306
+ * },
307
+ * "original_start_date": "string",
308
+ * "custom_fields": [
309
+ * "string"
310
+ * ],
311
+ * "country_fields": {
312
+ * "us": {},
313
+ * "ca": {},
314
+ * "nz": {}
315
+ * },
316
+ * "business_partners_id": [
317
+ * "string"
318
+ * ],
319
+ * "business_partners": [
320
+ * {}
321
+ * ]
322
+ * }
323
+ * },
324
+ * "scheduled_date": "string",
325
+ * "effective_start_date": "string",
326
+ * "effective_end_date": "string",
327
+ * "name": "string",
328
+ * "description": "string",
329
+ * "status": "DRAFT",
330
+ * "cancel_reason": "string",
331
+ * "source_label_id": "string",
332
+ * "source_label": {
333
+ * "id": "string",
334
+ * "client": "VC_PLAN_CYCLE",
335
+ * "external_id": "string",
336
+ * "name": "string"
337
+ * },
338
+ * "group_label_id": "string",
339
+ * "group_label": {
340
+ * "id": "string",
341
+ * "client": "VC_PLAN_CYCLE",
342
+ * "external_id": "string",
343
+ * "name": "string"
344
+ * },
345
+ * "paystub_id": "string",
346
+ * "created_at": "string",
347
+ * "updated_at": "string"
348
+ * }
349
+ * ```
350
+ */
351
+ create(body, options) {
352
+ return this._client.post('/scheduled-payouts/', { body, ...options });
353
+ }
354
+ /**
355
+ * Retrieve a specific scheduled payout. Uses the company admin payout rowset;
356
+ * callers without admin payout visibility receive NotFound.
357
+ *
358
+ * @example HTTP
359
+ * Representative request and response shapes.
360
+ * ```
361
+ * GET /scheduled-payouts/{id}/ HTTP/1.1
362
+ * Host: rest.ripplingapis.com
363
+ * Accept: application/json
364
+ * Rippling-Api-Version: 2024-08-01
365
+ *
366
+ * HTTP/1.1 200 OK
367
+ * Content-Type: application/json
368
+ *
369
+ * {
370
+ * "__meta": {
371
+ * "redacted_fields": [
372
+ * {}
373
+ * ]
374
+ * }
375
+ * }
376
+ * ```
377
+ */
378
+ retrieve(id, options) {
379
+ return this._client.get(path `/scheduled-payouts/${id}/`, options);
380
+ }
381
+ /**
382
+ * Cancel a scheduled payout and return the cancelled payout
383
+ *
384
+ * SCHEDULED and EVALUATION_FAILED payouts can be cancelled; cancelling an already
385
+ * cancelled payout returns it unchanged. Payouts in any other status return 409.
386
+ * Only CUSTOM payouts can be cancelled through this API; other clients return 400.
387
+ * The required reason is stored as cancel_reason. Callers without admin payout
388
+ * visibility receive 404.
389
+ *
390
+ * @example HTTP
391
+ * Representative request and response shapes.
392
+ * ```
393
+ * POST /scheduled-payouts/{id}/cancel/ HTTP/1.1
394
+ * Host: rest.ripplingapis.com
395
+ * Content-Type: application/json
396
+ * Accept: application/json
397
+ * Rippling-Api-Version: 2024-08-01
398
+ *
399
+ * {
400
+ * "reason": "reason"
401
+ * }
402
+ *
403
+ * HTTP/1.1 200 OK
404
+ * Content-Type: application/json
405
+ *
406
+ * {
407
+ * "id": "string",
408
+ * "payee_id": "string",
409
+ * "payee": {
410
+ * "id": "string",
411
+ * "created_at": "string",
412
+ * "updated_at": "string"
413
+ * },
414
+ * "client": "VC_PLAN_CYCLE",
415
+ * "external_id": "string",
416
+ * "amount_base": {},
417
+ * "amount_usd": {},
418
+ * "pay_classification": "string",
419
+ * "payout_type_id": "string",
420
+ * "payout_type": {
421
+ * "id": "string",
422
+ * "key": "string",
423
+ * "display_name": "string",
424
+ * "is_system": false,
425
+ * "created_by_id": "string",
426
+ * "created_by": {
427
+ * "id": "string",
428
+ * "created_at": "string",
429
+ * "updated_at": "string",
430
+ * "user_id": "string",
431
+ * "user": {
432
+ * "id": "string",
433
+ * "created_at": "string",
434
+ * "updated_at": "string"
435
+ * },
436
+ * "is_manager": false,
437
+ * "manager_id": "string",
438
+ * "manager": {
439
+ * "id": "string",
440
+ * "created_at": "string",
441
+ * "updated_at": "string"
442
+ * },
443
+ * "legal_entity_id": "string",
444
+ * "legal_entity": {
445
+ * "id": "string",
446
+ * "created_at": "string",
447
+ * "updated_at": "string"
448
+ * },
449
+ * "country": "AF",
450
+ * "start_date": "string",
451
+ * "end_date": "string",
452
+ * "number": 0,
453
+ * "work_email": "string",
454
+ * "personal_email": "string",
455
+ * "status": "INIT",
456
+ * "location": {
457
+ * "type": "REMOTE",
458
+ * "work_location_id": "string"
459
+ * },
460
+ * "employment_type_id": "string",
461
+ * "employment_type": {
462
+ * "id": "string",
463
+ * "created_at": "string",
464
+ * "updated_at": "string",
465
+ * "label": "string"
466
+ * },
467
+ * "gender": "MALE",
468
+ * "date_of_birth": "string",
469
+ * "race": "BLACK",
470
+ * "ethnicity": "HISPANIC_OR_LATINO",
471
+ * "citizenship": "AF",
472
+ * "compensation_id": "string",
473
+ * "compensation": {
474
+ * "id": "string",
475
+ * "created_at": "string",
476
+ * "updated_at": "string"
477
+ * },
478
+ * "overtime_exemption": "EXEMPT",
479
+ * "department_id": "string",
480
+ * "department": {
481
+ * "id": "string",
482
+ * "created_at": "string",
483
+ * "updated_at": "string",
484
+ * "name": "string",
485
+ * "parent_id": "string",
486
+ * "parent": {},
487
+ * "reference_code": "string",
488
+ * "department_hierarchy_id": [],
489
+ * "department_hierarchy": []
490
+ * },
491
+ * "teams_id": [
492
+ * "string"
493
+ * ],
494
+ * "teams": [
495
+ * {}
496
+ * ],
497
+ * "title": "string",
498
+ * "title_effective_date": "string",
499
+ * "level_id": "string",
500
+ * "level": {
501
+ * "id": "string",
502
+ * "created_at": "string",
503
+ * "updated_at": "string",
504
+ * "name": "string",
505
+ * "parent_id": "string",
506
+ * "parent": {},
507
+ * "global_level": "string",
508
+ * "description": "string",
509
+ * "scope_of_responsibilities": "string",
510
+ * "experience_requirements": "string",
511
+ * "rank": "string",
512
+ * "track_id": "string",
513
+ * "track": {}
514
+ * },
515
+ * "job_function_id": "string",
516
+ * "job_function": {
517
+ * "id": "string",
518
+ * "created_at": "string",
519
+ * "updated_at": "string",
520
+ * "name": "string"
521
+ * },
522
+ * "termination_details": {
523
+ * "type": "VOLUNTARY",
524
+ * "reason": "string"
525
+ * },
526
+ * "pay_schedule_id": "string",
527
+ * "work_schedule": {},
528
+ * "compensation_grade": {
529
+ * "id": "string",
530
+ * "label": "string"
531
+ * },
532
+ * "original_start_date": "string",
533
+ * "custom_fields": [
534
+ * "string"
535
+ * ],
536
+ * "country_fields": {
537
+ * "us": {},
538
+ * "ca": {},
539
+ * "nz": {}
540
+ * },
541
+ * "business_partners_id": [
542
+ * "string"
543
+ * ],
544
+ * "business_partners": [
545
+ * {}
546
+ * ]
547
+ * }
548
+ * },
549
+ * "scheduled_date": "string",
550
+ * "effective_start_date": "string",
551
+ * "effective_end_date": "string",
552
+ * "name": "string",
553
+ * "description": "string",
554
+ * "status": "DRAFT",
555
+ * "cancel_reason": "string",
556
+ * "source_label_id": "string",
557
+ * "source_label": {
558
+ * "id": "string",
559
+ * "client": "VC_PLAN_CYCLE",
560
+ * "external_id": "string",
561
+ * "name": "string"
562
+ * },
563
+ * "group_label_id": "string",
564
+ * "group_label": {
565
+ * "id": "string",
566
+ * "client": "VC_PLAN_CYCLE",
567
+ * "external_id": "string",
568
+ * "name": "string"
569
+ * },
570
+ * "paystub_id": "string",
571
+ * "created_at": "string",
572
+ * "updated_at": "string"
573
+ * }
574
+ * ```
575
+ */
576
+ cancel(id, body, options) {
577
+ return this._client.post(path `/scheduled-payouts/${id}/cancel/`, { body, ...options });
578
+ }
579
+ }
580
+ //# sourceMappingURL=scheduled-payouts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scheduled-payouts.mjs","sourceRoot":"","sources":["../src/resources/scheduled-payouts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,aAAa,EAAe,+BAA2B;AAEhE,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqIG;IACH,IAAI,CACF,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qBAAqB,EAAE,CAAA,aAA0C,CAAA,EAAE;YAChG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyMG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkMG;IACH,MAAM,CACJ,EAAU,EACV,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzF,CAAC;CACF"}
package/src/client.ts CHANGED
@@ -592,6 +592,39 @@ import {
592
592
  ScheduledJobAssignmentRetrieveResponse,
593
593
  ScheduledJobAssignments,
594
594
  } from './resources/scheduled-job-assignments';
595
+ import {
596
+ ScheduledPayoutLabelCreateParams,
597
+ ScheduledPayoutLabelCreateResponse,
598
+ ScheduledPayoutLabelListParams,
599
+ ScheduledPayoutLabelListResponse,
600
+ ScheduledPayoutLabelListResponsesPageCursorURL,
601
+ ScheduledPayoutLabelRetrieveResponse,
602
+ ScheduledPayoutLabelUpdateParams,
603
+ ScheduledPayoutLabelUpdateResponse,
604
+ ScheduledPayoutLabels,
605
+ } from './resources/scheduled-payout-labels';
606
+ import {
607
+ ScheduledPayoutTypeCreateParams,
608
+ ScheduledPayoutTypeCreateResponse,
609
+ ScheduledPayoutTypeListParams,
610
+ ScheduledPayoutTypeListResponse,
611
+ ScheduledPayoutTypeListResponsesPageCursorURL,
612
+ ScheduledPayoutTypeRetrieveResponse,
613
+ ScheduledPayoutTypeUpdateParams,
614
+ ScheduledPayoutTypeUpdateResponse,
615
+ ScheduledPayoutTypes,
616
+ } from './resources/scheduled-payout-types';
617
+ import {
618
+ ScheduledPayoutCancelParams,
619
+ ScheduledPayoutCancelResponse,
620
+ ScheduledPayoutCreateParams,
621
+ ScheduledPayoutCreateResponse,
622
+ ScheduledPayoutListParams,
623
+ ScheduledPayoutListResponse,
624
+ ScheduledPayoutListResponsesPageCursorURL,
625
+ ScheduledPayoutRetrieveResponse,
626
+ ScheduledPayouts,
627
+ } from './resources/scheduled-payouts';
595
628
  import {
596
629
  ScheduleCreateParams,
597
630
  ScheduleCreateResponse,
@@ -2037,6 +2070,18 @@ export class RipplingSDK {
2037
2070
  * Job related information for the company
2038
2071
  */
2039
2072
  scheduledJobAssignments: API.ScheduledJobAssignments = new API.ScheduledJobAssignments(this);
2073
+ /**
2074
+ * Compensation associated with workers
2075
+ */
2076
+ scheduledPayouts: API.ScheduledPayouts = new API.ScheduledPayouts(this);
2077
+ /**
2078
+ * Compensation associated with workers
2079
+ */
2080
+ scheduledPayoutLabels: API.ScheduledPayoutLabels = new API.ScheduledPayoutLabels(this);
2081
+ /**
2082
+ * Compensation associated with workers
2083
+ */
2084
+ scheduledPayoutTypes: API.ScheduledPayoutTypes = new API.ScheduledPayoutTypes(this);
2040
2085
  /**
2041
2086
  * Shift assignments assigned to workers
2042
2087
  */
@@ -2206,6 +2251,9 @@ RipplingSDK.ReportRuns = ReportRuns;
2206
2251
  RipplingSDK.Sandboxes = Sandboxes;
2207
2252
  RipplingSDK.Schedules = Schedules;
2208
2253
  RipplingSDK.ScheduledJobAssignments = ScheduledJobAssignments;
2254
+ RipplingSDK.ScheduledPayouts = ScheduledPayouts;
2255
+ RipplingSDK.ScheduledPayoutLabels = ScheduledPayoutLabels;
2256
+ RipplingSDK.ScheduledPayoutTypes = ScheduledPayoutTypes;
2209
2257
  RipplingSDK.Shiftassignments = Shiftassignments;
2210
2258
  RipplingSDK.Sites = Sites;
2211
2259
  RipplingSDK.SoftwareDeployments = SoftwareDeployments;
@@ -3068,6 +3116,42 @@ export declare namespace RipplingSDK {
3068
3116
  type ScheduledJobAssignmentListParams as ScheduledJobAssignmentListParams,
3069
3117
  };
3070
3118
 
3119
+ export {
3120
+ ScheduledPayouts as ScheduledPayouts,
3121
+ type ScheduledPayoutListResponse as ScheduledPayoutListResponse,
3122
+ type ScheduledPayoutCreateResponse as ScheduledPayoutCreateResponse,
3123
+ type ScheduledPayoutRetrieveResponse as ScheduledPayoutRetrieveResponse,
3124
+ type ScheduledPayoutCancelResponse as ScheduledPayoutCancelResponse,
3125
+ type ScheduledPayoutListResponsesPageCursorURL as ScheduledPayoutListResponsesPageCursorURL,
3126
+ type ScheduledPayoutListParams as ScheduledPayoutListParams,
3127
+ type ScheduledPayoutCreateParams as ScheduledPayoutCreateParams,
3128
+ type ScheduledPayoutCancelParams as ScheduledPayoutCancelParams,
3129
+ };
3130
+
3131
+ export {
3132
+ ScheduledPayoutLabels as ScheduledPayoutLabels,
3133
+ type ScheduledPayoutLabelListResponse as ScheduledPayoutLabelListResponse,
3134
+ type ScheduledPayoutLabelCreateResponse as ScheduledPayoutLabelCreateResponse,
3135
+ type ScheduledPayoutLabelRetrieveResponse as ScheduledPayoutLabelRetrieveResponse,
3136
+ type ScheduledPayoutLabelUpdateResponse as ScheduledPayoutLabelUpdateResponse,
3137
+ type ScheduledPayoutLabelListResponsesPageCursorURL as ScheduledPayoutLabelListResponsesPageCursorURL,
3138
+ type ScheduledPayoutLabelListParams as ScheduledPayoutLabelListParams,
3139
+ type ScheduledPayoutLabelCreateParams as ScheduledPayoutLabelCreateParams,
3140
+ type ScheduledPayoutLabelUpdateParams as ScheduledPayoutLabelUpdateParams,
3141
+ };
3142
+
3143
+ export {
3144
+ ScheduledPayoutTypes as ScheduledPayoutTypes,
3145
+ type ScheduledPayoutTypeListResponse as ScheduledPayoutTypeListResponse,
3146
+ type ScheduledPayoutTypeCreateResponse as ScheduledPayoutTypeCreateResponse,
3147
+ type ScheduledPayoutTypeRetrieveResponse as ScheduledPayoutTypeRetrieveResponse,
3148
+ type ScheduledPayoutTypeUpdateResponse as ScheduledPayoutTypeUpdateResponse,
3149
+ type ScheduledPayoutTypeListResponsesPageCursorURL as ScheduledPayoutTypeListResponsesPageCursorURL,
3150
+ type ScheduledPayoutTypeListParams as ScheduledPayoutTypeListParams,
3151
+ type ScheduledPayoutTypeCreateParams as ScheduledPayoutTypeCreateParams,
3152
+ type ScheduledPayoutTypeUpdateParams as ScheduledPayoutTypeUpdateParams,
3153
+ };
3154
+
3071
3155
  export {
3072
3156
  Shiftassignments as Shiftassignments,
3073
3157
  type ShiftassignmentListResponse as ShiftassignmentListResponse,