@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,755 @@
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 WorkersAPI from './workers';
6
+ import { APIPromise } from '../core/api-promise';
7
+ import { PageCursorURL, PagePromise } from '../core/pagination';
8
+ import { buildHeaders } from '../internal/headers';
9
+ import { RequestOptions } from '../internal/request-options';
10
+ import { path } from '../internal/utils/path';
11
+
12
+ /**
13
+ * Compensation associated with workers
14
+ */
15
+ export class ScheduledPayoutTypes extends APIResource {
16
+ /**
17
+ * List system and custom payout types, ordered by id. Per-entity earning code
18
+ * mappings are configured in Rippling and are not part of this API. Paginated with
19
+ * limit and cursor.
20
+ *
21
+ * - Requires: `Internal Testing`
22
+ *
23
+ * @example HTTP
24
+ * Representative request and response shapes.
25
+ * ```
26
+ * GET /scheduled-payout-types/?expand=expand&limit=0&cursor=cursor HTTP/1.1
27
+ * Host: rest.ripplingapis.com
28
+ * Accept: application/json
29
+ * Rippling-Api-Version: 2024-08-01
30
+ *
31
+ * HTTP/1.1 200 OK
32
+ * Content-Type: application/json
33
+ *
34
+ * {
35
+ * "__meta": {
36
+ * "redacted_fields": [
37
+ * {
38
+ * "name": "date_of_birth",
39
+ * "reason": "Insufficient entitlements"
40
+ * }
41
+ * ]
42
+ * },
43
+ * "results": [
44
+ * {
45
+ * "id": "string",
46
+ * "key": "string",
47
+ * "display_name": "string",
48
+ * "is_system": false,
49
+ * "created_by_id": "string",
50
+ * "created_by": {
51
+ * "id": "string",
52
+ * "created_at": "string",
53
+ * "updated_at": "string",
54
+ * "user_id": "string",
55
+ * "user": {},
56
+ * "is_manager": "string",
57
+ * "manager_id": "string",
58
+ * "manager": {},
59
+ * "legal_entity_id": "string",
60
+ * "legal_entity": {},
61
+ * "country": "AF",
62
+ * "start_date": "string",
63
+ * "end_date": "string",
64
+ * "number": "string",
65
+ * "work_email": "string",
66
+ * "personal_email": "string",
67
+ * "status": "INIT",
68
+ * "location": {},
69
+ * "employment_type_id": "string",
70
+ * "employment_type": {},
71
+ * "gender": "MALE",
72
+ * "date_of_birth": "string",
73
+ * "race": "BLACK",
74
+ * "ethnicity": "HISPANIC_OR_LATINO",
75
+ * "citizenship": "AF",
76
+ * "compensation_id": "string",
77
+ * "compensation": {},
78
+ * "overtime_exemption": "EXEMPT",
79
+ * "department_id": "string",
80
+ * "department": {},
81
+ * "teams_id": [],
82
+ * "teams": [],
83
+ * "title": "string",
84
+ * "title_effective_date": "string",
85
+ * "level_id": "string",
86
+ * "level": {},
87
+ * "job_function_id": "string",
88
+ * "job_function": {},
89
+ * "termination_details": {},
90
+ * "pay_schedule_id": "string",
91
+ * "work_schedule": {},
92
+ * "compensation_grade": {},
93
+ * "original_start_date": "string",
94
+ * "custom_fields": [],
95
+ * "country_fields": {},
96
+ * "business_partners_id": [],
97
+ * "business_partners": []
98
+ * }
99
+ * }
100
+ * ],
101
+ * "next_link": "string"
102
+ * }
103
+ * ```
104
+ */
105
+ list(
106
+ query: ScheduledPayoutTypeListParams | null | undefined = {},
107
+ options?: RequestOptions,
108
+ ): PagePromise<ScheduledPayoutTypeListResponsesPageCursorURL, ScheduledPayoutTypeListResponse> {
109
+ return this._client.getAPIList(
110
+ '/scheduled-payout-types/',
111
+ PageCursorURL<ScheduledPayoutTypeListResponse>,
112
+ { query, ...options },
113
+ );
114
+ }
115
+
116
+ /**
117
+ * Create a custom payout type. Omit key; the server assigns one. Creates are not
118
+ * idempotent: repeating the request creates another payout type with a new key,
119
+ * even with the same display_name. Use PATCH /scheduled-payout-types/{key}/ to
120
+ * update.
121
+ *
122
+ * @example HTTP
123
+ * Representative request and response shapes.
124
+ * ```
125
+ * POST /scheduled-payout-types/ HTTP/1.1
126
+ * Host: rest.ripplingapis.com
127
+ * Content-Type: application/json
128
+ * Accept: application/json
129
+ * Rippling-Api-Version: 2024-08-01
130
+ *
131
+ * {
132
+ * "display_name": "display_name"
133
+ * }
134
+ *
135
+ * HTTP/1.1 200 OK
136
+ * Content-Type: application/json
137
+ *
138
+ * {
139
+ * "id": "string",
140
+ * "key": "string",
141
+ * "display_name": "string",
142
+ * "is_system": false,
143
+ * "created_by_id": "string",
144
+ * "created_by": {
145
+ * "id": "string",
146
+ * "created_at": "string",
147
+ * "updated_at": "string",
148
+ * "user_id": "string",
149
+ * "user": {
150
+ * "id": "string",
151
+ * "created_at": "string",
152
+ * "updated_at": "string"
153
+ * },
154
+ * "is_manager": false,
155
+ * "manager_id": "string",
156
+ * "manager": {
157
+ * "id": "string",
158
+ * "created_at": "string",
159
+ * "updated_at": "string"
160
+ * },
161
+ * "legal_entity_id": "string",
162
+ * "legal_entity": {
163
+ * "id": "string",
164
+ * "created_at": "string",
165
+ * "updated_at": "string"
166
+ * },
167
+ * "country": "AF",
168
+ * "start_date": "string",
169
+ * "end_date": "string",
170
+ * "number": 0,
171
+ * "work_email": "string",
172
+ * "personal_email": "string",
173
+ * "status": "INIT",
174
+ * "location": {
175
+ * "type": "REMOTE",
176
+ * "work_location_id": "string"
177
+ * },
178
+ * "employment_type_id": "string",
179
+ * "employment_type": {
180
+ * "id": "string",
181
+ * "created_at": "string",
182
+ * "updated_at": "string",
183
+ * "label": "string"
184
+ * },
185
+ * "gender": "MALE",
186
+ * "date_of_birth": "string",
187
+ * "race": "BLACK",
188
+ * "ethnicity": "HISPANIC_OR_LATINO",
189
+ * "citizenship": "AF",
190
+ * "compensation_id": "string",
191
+ * "compensation": {
192
+ * "id": "string",
193
+ * "created_at": "string",
194
+ * "updated_at": "string"
195
+ * },
196
+ * "overtime_exemption": "EXEMPT",
197
+ * "department_id": "string",
198
+ * "department": {
199
+ * "id": "string",
200
+ * "created_at": "string",
201
+ * "updated_at": "string",
202
+ * "name": "string",
203
+ * "parent_id": "string"
204
+ * },
205
+ * "teams_id": [
206
+ * "string"
207
+ * ],
208
+ * "teams": [
209
+ * {
210
+ * "id": "string",
211
+ * "created_at": "string",
212
+ * "updated_at": "string",
213
+ * "parent_id": "string",
214
+ * "parent": {},
215
+ * "name": "string"
216
+ * }
217
+ * ],
218
+ * "title": "string",
219
+ * "title_effective_date": "string",
220
+ * "level_id": "string",
221
+ * "level": {
222
+ * "id": "string",
223
+ * "created_at": "string",
224
+ * "updated_at": "string",
225
+ * "name": "string",
226
+ * "parent_id": "string",
227
+ * "parent": {
228
+ * "id": "string",
229
+ * "created_at": "string",
230
+ * "updated_at": "string",
231
+ * "name": "string",
232
+ * "parent_id": "string",
233
+ * "parent": {},
234
+ * "global_level": "string",
235
+ * "description": "string",
236
+ * "scope_of_responsibilities": "string",
237
+ * "experience_requirements": "string",
238
+ * "rank": "string",
239
+ * "track_id": "string",
240
+ * "track": {}
241
+ * },
242
+ * "global_level": 0,
243
+ * "description": "string",
244
+ * "scope_of_responsibilities": "string",
245
+ * "experience_requirements": "string",
246
+ * "rank": 0,
247
+ * "track_id": "string",
248
+ * "track": {
249
+ * "id": "string",
250
+ * "created_at": "string",
251
+ * "updated_at": "string",
252
+ * "name": "string",
253
+ * "is_default": "string",
254
+ * "order": "string",
255
+ * "start_global_level": "string"
256
+ * }
257
+ * },
258
+ * "job_function_id": "string",
259
+ * "job_function": {
260
+ * "id": "string",
261
+ * "created_at": "string",
262
+ * "updated_at": "string",
263
+ * "name": "string"
264
+ * },
265
+ * "termination_details": {
266
+ * "type": "VOLUNTARY",
267
+ * "reason": "string"
268
+ * },
269
+ * "pay_schedule_id": "string",
270
+ * "work_schedule": {},
271
+ * "compensation_grade": {
272
+ * "id": "string",
273
+ * "label": "string"
274
+ * },
275
+ * "original_start_date": "string",
276
+ * "custom_fields": [
277
+ * null
278
+ * ],
279
+ * "country_fields": {
280
+ * "us": {
281
+ * "ssn": "string"
282
+ * },
283
+ * "ca": {
284
+ * "sin": "string"
285
+ * },
286
+ * "nz": {
287
+ * "ird_number": "string"
288
+ * }
289
+ * },
290
+ * "business_partners_id": [
291
+ * "string"
292
+ * ],
293
+ * "business_partners": [
294
+ * {
295
+ * "id": "string",
296
+ * "created_at": "string",
297
+ * "updated_at": "string",
298
+ * "business_partner_group_id": "string",
299
+ * "business_partner_group": {},
300
+ * "worker_id": "string",
301
+ * "worker": {},
302
+ * "client_group_id": "string",
303
+ * "client_group": {},
304
+ * "client_group_member_count": "string"
305
+ * }
306
+ * ]
307
+ * }
308
+ * }
309
+ * ```
310
+ */
311
+ create(
312
+ body: ScheduledPayoutTypeCreateParams,
313
+ options?: RequestOptions,
314
+ ): APIPromise<ScheduledPayoutTypeCreateResponse> {
315
+ return this._client.post('/scheduled-payout-types/', { body, ...options });
316
+ }
317
+
318
+ /**
319
+ * Retrieve a specific scheduled payout type by key.
320
+ *
321
+ * @example HTTP
322
+ * Representative request and response shapes.
323
+ * ```
324
+ * GET /scheduled-payout-types/{id}/ HTTP/1.1
325
+ * Host: rest.ripplingapis.com
326
+ * Accept: application/json
327
+ * Rippling-Api-Version: 2024-08-01
328
+ *
329
+ * HTTP/1.1 200 OK
330
+ * Content-Type: application/json
331
+ *
332
+ * {
333
+ * "__meta": {
334
+ * "redacted_fields": [
335
+ * {}
336
+ * ]
337
+ * }
338
+ * }
339
+ * ```
340
+ */
341
+ retrieve(id: string, options?: RequestOptions): APIPromise<ScheduledPayoutTypeRetrieveResponse> {
342
+ return this._client.get(path`/scheduled-payout-types/${id}/`, options);
343
+ }
344
+
345
+ /**
346
+ * Rename a custom payout type. Only display_name is writable.
347
+ *
348
+ * @example HTTP
349
+ * Representative request and response shapes.
350
+ * ```
351
+ * PATCH /scheduled-payout-types/{id}/ HTTP/1.1
352
+ * Host: rest.ripplingapis.com
353
+ * Content-Type: application/json
354
+ * Accept: application/json
355
+ * Rippling-Api-Version: 2024-08-01
356
+ *
357
+ * {
358
+ * "display_name": "display_name"
359
+ * }
360
+ *
361
+ * HTTP/1.1 200 OK
362
+ * Content-Type: application/json
363
+ *
364
+ * {
365
+ * "id": "string",
366
+ * "key": "string",
367
+ * "display_name": "string",
368
+ * "is_system": false,
369
+ * "created_by_id": "string",
370
+ * "created_by": {
371
+ * "id": "string",
372
+ * "created_at": "string",
373
+ * "updated_at": "string",
374
+ * "user_id": "string",
375
+ * "user": {
376
+ * "id": "string",
377
+ * "created_at": "string",
378
+ * "updated_at": "string"
379
+ * },
380
+ * "is_manager": false,
381
+ * "manager_id": "string",
382
+ * "manager": {
383
+ * "id": "string",
384
+ * "created_at": "string",
385
+ * "updated_at": "string"
386
+ * },
387
+ * "legal_entity_id": "string",
388
+ * "legal_entity": {
389
+ * "id": "string",
390
+ * "created_at": "string",
391
+ * "updated_at": "string"
392
+ * },
393
+ * "country": "AF",
394
+ * "start_date": "string",
395
+ * "end_date": "string",
396
+ * "number": 0,
397
+ * "work_email": "string",
398
+ * "personal_email": "string",
399
+ * "status": "INIT",
400
+ * "location": {
401
+ * "type": "REMOTE",
402
+ * "work_location_id": "string"
403
+ * },
404
+ * "employment_type_id": "string",
405
+ * "employment_type": {
406
+ * "id": "string",
407
+ * "created_at": "string",
408
+ * "updated_at": "string",
409
+ * "label": "string"
410
+ * },
411
+ * "gender": "MALE",
412
+ * "date_of_birth": "string",
413
+ * "race": "BLACK",
414
+ * "ethnicity": "HISPANIC_OR_LATINO",
415
+ * "citizenship": "AF",
416
+ * "compensation_id": "string",
417
+ * "compensation": {
418
+ * "id": "string",
419
+ * "created_at": "string",
420
+ * "updated_at": "string"
421
+ * },
422
+ * "overtime_exemption": "EXEMPT",
423
+ * "department_id": "string",
424
+ * "department": {
425
+ * "id": "string",
426
+ * "created_at": "string",
427
+ * "updated_at": "string",
428
+ * "name": "string",
429
+ * "parent_id": "string"
430
+ * },
431
+ * "teams_id": [
432
+ * "string"
433
+ * ],
434
+ * "teams": [
435
+ * {
436
+ * "id": "string",
437
+ * "created_at": "string",
438
+ * "updated_at": "string",
439
+ * "parent_id": "string",
440
+ * "parent": {},
441
+ * "name": "string"
442
+ * }
443
+ * ],
444
+ * "title": "string",
445
+ * "title_effective_date": "string",
446
+ * "level_id": "string",
447
+ * "level": {
448
+ * "id": "string",
449
+ * "created_at": "string",
450
+ * "updated_at": "string",
451
+ * "name": "string",
452
+ * "parent_id": "string",
453
+ * "parent": {
454
+ * "id": "string",
455
+ * "created_at": "string",
456
+ * "updated_at": "string",
457
+ * "name": "string",
458
+ * "parent_id": "string",
459
+ * "parent": {},
460
+ * "global_level": "string",
461
+ * "description": "string",
462
+ * "scope_of_responsibilities": "string",
463
+ * "experience_requirements": "string",
464
+ * "rank": "string",
465
+ * "track_id": "string",
466
+ * "track": {}
467
+ * },
468
+ * "global_level": 0,
469
+ * "description": "string",
470
+ * "scope_of_responsibilities": "string",
471
+ * "experience_requirements": "string",
472
+ * "rank": 0,
473
+ * "track_id": "string",
474
+ * "track": {
475
+ * "id": "string",
476
+ * "created_at": "string",
477
+ * "updated_at": "string",
478
+ * "name": "string",
479
+ * "is_default": "string",
480
+ * "order": "string",
481
+ * "start_global_level": "string"
482
+ * }
483
+ * },
484
+ * "job_function_id": "string",
485
+ * "job_function": {
486
+ * "id": "string",
487
+ * "created_at": "string",
488
+ * "updated_at": "string",
489
+ * "name": "string"
490
+ * },
491
+ * "termination_details": {
492
+ * "type": "VOLUNTARY",
493
+ * "reason": "string"
494
+ * },
495
+ * "pay_schedule_id": "string",
496
+ * "work_schedule": {},
497
+ * "compensation_grade": {
498
+ * "id": "string",
499
+ * "label": "string"
500
+ * },
501
+ * "original_start_date": "string",
502
+ * "custom_fields": [
503
+ * null
504
+ * ],
505
+ * "country_fields": {
506
+ * "us": {
507
+ * "ssn": "string"
508
+ * },
509
+ * "ca": {
510
+ * "sin": "string"
511
+ * },
512
+ * "nz": {
513
+ * "ird_number": "string"
514
+ * }
515
+ * },
516
+ * "business_partners_id": [
517
+ * "string"
518
+ * ],
519
+ * "business_partners": [
520
+ * {
521
+ * "id": "string",
522
+ * "created_at": "string",
523
+ * "updated_at": "string",
524
+ * "business_partner_group_id": "string",
525
+ * "business_partner_group": {},
526
+ * "worker_id": "string",
527
+ * "worker": {},
528
+ * "client_group_id": "string",
529
+ * "client_group": {},
530
+ * "client_group_member_count": "string"
531
+ * }
532
+ * ]
533
+ * }
534
+ * }
535
+ * ```
536
+ */
537
+ update(
538
+ id: string,
539
+ body: ScheduledPayoutTypeUpdateParams,
540
+ options?: RequestOptions,
541
+ ): APIPromise<ScheduledPayoutTypeUpdateResponse> {
542
+ return this._client.patch(path`/scheduled-payout-types/${id}/`, { body, ...options });
543
+ }
544
+
545
+ /**
546
+ * Delete a custom payout type. Built-in payout types cannot be deleted. Returns
547
+ * 204 with no body.
548
+ *
549
+ * @example HTTP
550
+ * Representative request and response shapes.
551
+ * ```
552
+ * DELETE /scheduled-payout-types/{id}/ HTTP/1.1
553
+ * Host: rest.ripplingapis.com
554
+ * Rippling-Api-Version: 2024-08-01
555
+ *
556
+ * HTTP/1.1 204 No Content
557
+ * ```
558
+ */
559
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
560
+ return this._client.delete(path`/scheduled-payout-types/${id}/`, {
561
+ ...options,
562
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
563
+ });
564
+ }
565
+ }
566
+
567
+ export type ScheduledPayoutTypeListResponsesPageCursorURL = PageCursorURL<ScheduledPayoutTypeListResponse>;
568
+
569
+ export interface ScheduledPayoutTypeListResponse {
570
+ /**
571
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
572
+ * paths. Always equal to key; both are returned because every resource exposes id
573
+ * while payouts reference types by key (payout_type_id).
574
+ */
575
+ id: string;
576
+
577
+ /**
578
+ * Display name of the payout type.
579
+ */
580
+ display_name: string;
581
+
582
+ /**
583
+ * Whether this is a built-in payout type.
584
+ */
585
+ is_system: boolean;
586
+
587
+ /**
588
+ * Stable payout type key assigned by the server on create.
589
+ */
590
+ key: string;
591
+
592
+ /**
593
+ * Worker who created this custom payout type. Populated only with
594
+ * expand=created_by, which requires workers.read.
595
+ */
596
+ created_by?: WorkersAPI.Worker;
597
+
598
+ /**
599
+ * ID of the worker who created this custom payout type; null for built-in types.
600
+ */
601
+ created_by_id?: string;
602
+ }
603
+
604
+ export interface ScheduledPayoutTypeCreateResponse {
605
+ /**
606
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
607
+ * paths. Always equal to key; both are returned because every resource exposes id
608
+ * while payouts reference types by key (payout_type_id).
609
+ */
610
+ id: string;
611
+
612
+ /**
613
+ * Display name of the payout type.
614
+ */
615
+ display_name: string;
616
+
617
+ /**
618
+ * Whether this is a built-in payout type.
619
+ */
620
+ is_system: boolean;
621
+
622
+ /**
623
+ * Stable payout type key assigned by the server on create.
624
+ */
625
+ key: string;
626
+
627
+ /**
628
+ * Worker who created this custom payout type. Populated only with
629
+ * expand=created_by, which requires workers.read.
630
+ */
631
+ created_by?: WorkersAPI.Worker;
632
+
633
+ /**
634
+ * ID of the worker who created this custom payout type; null for built-in types.
635
+ */
636
+ created_by_id?: string;
637
+ }
638
+
639
+ /**
640
+ * Meta information for the response.
641
+ */
642
+ export interface ScheduledPayoutTypeRetrieveResponse extends BusinessPartnersAPI.Meta {
643
+ /**
644
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
645
+ * paths. Always equal to key; both are returned because every resource exposes id
646
+ * while payouts reference types by key (payout_type_id).
647
+ */
648
+ id: string;
649
+
650
+ /**
651
+ * Display name of the payout type.
652
+ */
653
+ display_name: string;
654
+
655
+ /**
656
+ * Whether this is a built-in payout type.
657
+ */
658
+ is_system: boolean;
659
+
660
+ /**
661
+ * Stable payout type key assigned by the server on create.
662
+ */
663
+ key: string;
664
+
665
+ /**
666
+ * Worker who created this custom payout type. Populated only with
667
+ * expand=created_by, which requires workers.read.
668
+ */
669
+ created_by?: WorkersAPI.Worker;
670
+
671
+ /**
672
+ * ID of the worker who created this custom payout type; null for built-in types.
673
+ */
674
+ created_by_id?: string;
675
+ }
676
+
677
+ export interface ScheduledPayoutTypeUpdateResponse {
678
+ /**
679
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
680
+ * paths. Always equal to key; both are returned because every resource exposes id
681
+ * while payouts reference types by key (payout_type_id).
682
+ */
683
+ id: string;
684
+
685
+ /**
686
+ * Display name of the payout type.
687
+ */
688
+ display_name: string;
689
+
690
+ /**
691
+ * Whether this is a built-in payout type.
692
+ */
693
+ is_system: boolean;
694
+
695
+ /**
696
+ * Stable payout type key assigned by the server on create.
697
+ */
698
+ key: string;
699
+
700
+ /**
701
+ * Worker who created this custom payout type. Populated only with
702
+ * expand=created_by, which requires workers.read.
703
+ */
704
+ created_by?: WorkersAPI.Worker;
705
+
706
+ /**
707
+ * ID of the worker who created this custom payout type; null for built-in types.
708
+ */
709
+ created_by_id?: string;
710
+ }
711
+
712
+ export interface ScheduledPayoutTypeListParams {
713
+ /**
714
+ * Opaque pagination cursor from the previous page's next_link.
715
+ */
716
+ cursor?: string;
717
+
718
+ /**
719
+ * Set to created_by to include the creating Worker (requires workers.read).
720
+ * Retrieve accepts the same value.
721
+ */
722
+ expand?: string;
723
+
724
+ /**
725
+ * Page size. Defaults to 50. Maximum 100.
726
+ */
727
+ limit?: number;
728
+ }
729
+
730
+ export interface ScheduledPayoutTypeCreateParams {
731
+ /**
732
+ * Display name of the payout type.
733
+ */
734
+ display_name: string;
735
+ }
736
+
737
+ export interface ScheduledPayoutTypeUpdateParams {
738
+ /**
739
+ * Display name of the payout type.
740
+ */
741
+ display_name: string;
742
+ }
743
+
744
+ export declare namespace ScheduledPayoutTypes {
745
+ export {
746
+ type ScheduledPayoutTypeListResponse as ScheduledPayoutTypeListResponse,
747
+ type ScheduledPayoutTypeCreateResponse as ScheduledPayoutTypeCreateResponse,
748
+ type ScheduledPayoutTypeRetrieveResponse as ScheduledPayoutTypeRetrieveResponse,
749
+ type ScheduledPayoutTypeUpdateResponse as ScheduledPayoutTypeUpdateResponse,
750
+ type ScheduledPayoutTypeListResponsesPageCursorURL as ScheduledPayoutTypeListResponsesPageCursorURL,
751
+ type ScheduledPayoutTypeListParams as ScheduledPayoutTypeListParams,
752
+ type ScheduledPayoutTypeCreateParams as ScheduledPayoutTypeCreateParams,
753
+ type ScheduledPayoutTypeUpdateParams as ScheduledPayoutTypeUpdateParams,
754
+ };
755
+ }