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