@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,1949 @@
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 { RequestOptions } from '../internal/request-options';
9
+ import { path } from '../internal/utils/path';
10
+
11
+ /**
12
+ * Compensation associated with workers
13
+ */
14
+ export class ScheduledPayouts extends APIResource {
15
+ /**
16
+ * List scheduled payouts. Paginated with limit and cursor. Filter with string
17
+ * equality joined by and on payee_id, client, external_id, status,
18
+ * source_label_id, and group_label_id, for example filter=client eq 'CUSTOM' and
19
+ * status eq 'SCHEDULED'. Supports
20
+ * expand=payee,payout_type,source_label,group_label. Always uses the company admin
21
+ * payout rowset; callers without admin payout visibility receive an empty list.
22
+ * Retrieve returns NotFound for the same rows.
23
+ *
24
+ * - Requires: `Internal Testing`
25
+ *
26
+ * @example HTTP
27
+ * Representative request and response shapes.
28
+ * ```
29
+ * GET /scheduled-payouts/?limit=0&cursor=cursor&filter=filter&expand=expand HTTP/1.1
30
+ * Host: rest.ripplingapis.com
31
+ * Accept: application/json
32
+ * Rippling-Api-Version: 2024-08-01
33
+ *
34
+ * HTTP/1.1 200 OK
35
+ * Content-Type: application/json
36
+ *
37
+ * {
38
+ * "__meta": {
39
+ * "redacted_fields": [
40
+ * {
41
+ * "name": "date_of_birth",
42
+ * "reason": "Insufficient entitlements"
43
+ * }
44
+ * ]
45
+ * },
46
+ * "results": [
47
+ * {
48
+ * "id": "string",
49
+ * "payee_id": "string",
50
+ * "payee": {
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
+ * "client": "VC_PLAN_CYCLE",
100
+ * "external_id": "string",
101
+ * "amount_base": {
102
+ * "currency_type": "string",
103
+ * "value": "string"
104
+ * },
105
+ * "amount_usd": {
106
+ * "currency_type": "string",
107
+ * "value": "string"
108
+ * },
109
+ * "pay_classification": "string",
110
+ * "payout_type_id": "string",
111
+ * "payout_type": {
112
+ * "id": "string",
113
+ * "key": "string",
114
+ * "display_name": "string",
115
+ * "is_system": "string",
116
+ * "created_by_id": "string",
117
+ * "created_by": {}
118
+ * },
119
+ * "scheduled_date": "string",
120
+ * "effective_start_date": "string",
121
+ * "effective_end_date": "string",
122
+ * "name": "string",
123
+ * "description": "string",
124
+ * "status": "DRAFT",
125
+ * "cancel_reason": "string",
126
+ * "source_label_id": "string",
127
+ * "source_label": {
128
+ * "id": "string",
129
+ * "client": "VC_PLAN_CYCLE",
130
+ * "external_id": "string",
131
+ * "name": "string"
132
+ * },
133
+ * "group_label_id": "string",
134
+ * "group_label": {
135
+ * "id": "string",
136
+ * "client": "VC_PLAN_CYCLE",
137
+ * "external_id": "string",
138
+ * "name": "string"
139
+ * },
140
+ * "paystub_id": "string",
141
+ * "created_at": "string",
142
+ * "updated_at": "string"
143
+ * }
144
+ * ],
145
+ * "next_link": "string"
146
+ * }
147
+ * ```
148
+ */
149
+ list(
150
+ query: ScheduledPayoutListParams | null | undefined = {},
151
+ options?: RequestOptions,
152
+ ): PagePromise<ScheduledPayoutListResponsesPageCursorURL, ScheduledPayoutListResponse> {
153
+ return this._client.getAPIList('/scheduled-payouts/', PageCursorURL<ScheduledPayoutListResponse>, {
154
+ query,
155
+ ...options,
156
+ });
157
+ }
158
+
159
+ /**
160
+ * Create or update one payout. Identity is (client, external_id), not id. Same key
161
+ * and same body replays with 200. Same key and a different body overwrites a
162
+ * SCHEDULED or EVALUATION_FAILED payout when the caller can edit scheduled
163
+ * payouts; otherwise 403. RELEASED payouts return 409. Successful creates and
164
+ * updates return 200. client must be CUSTOM; other clients are written by Rippling
165
+ * systems and return 400.
166
+ *
167
+ * @example HTTP
168
+ * Representative request and response shapes.
169
+ * ```
170
+ * POST /scheduled-payouts/ HTTP/1.1
171
+ * Host: rest.ripplingapis.com
172
+ * Content-Type: application/json
173
+ * Accept: application/json
174
+ * Rippling-Api-Version: 2024-08-01
175
+ *
176
+ * {
177
+ * "amount_base": {},
178
+ * "amount_usd": {},
179
+ * "client": "VC_PLAN_CYCLE",
180
+ * "effective_end_date": "effective_end_date",
181
+ * "effective_start_date": "effective_start_date",
182
+ * "external_id": "external_id",
183
+ * "payee_id": "payee_id",
184
+ * "payout_type_id": "payout_type_id",
185
+ * "scheduled_date": "scheduled_date"
186
+ * }
187
+ *
188
+ * HTTP/1.1 200 OK
189
+ * Content-Type: application/json
190
+ *
191
+ * {
192
+ * "id": "string",
193
+ * "payee_id": "string",
194
+ * "payee": {
195
+ * "id": "string",
196
+ * "created_at": "string",
197
+ * "updated_at": "string"
198
+ * },
199
+ * "client": "VC_PLAN_CYCLE",
200
+ * "external_id": "string",
201
+ * "amount_base": {},
202
+ * "amount_usd": {},
203
+ * "pay_classification": "string",
204
+ * "payout_type_id": "string",
205
+ * "payout_type": {
206
+ * "id": "string",
207
+ * "key": "string",
208
+ * "display_name": "string",
209
+ * "is_system": false,
210
+ * "created_by_id": "string",
211
+ * "created_by": {
212
+ * "id": "string",
213
+ * "created_at": "string",
214
+ * "updated_at": "string",
215
+ * "user_id": "string",
216
+ * "user": {
217
+ * "id": "string",
218
+ * "created_at": "string",
219
+ * "updated_at": "string"
220
+ * },
221
+ * "is_manager": false,
222
+ * "manager_id": "string",
223
+ * "manager": {
224
+ * "id": "string",
225
+ * "created_at": "string",
226
+ * "updated_at": "string"
227
+ * },
228
+ * "legal_entity_id": "string",
229
+ * "legal_entity": {
230
+ * "id": "string",
231
+ * "created_at": "string",
232
+ * "updated_at": "string"
233
+ * },
234
+ * "country": "AF",
235
+ * "start_date": "string",
236
+ * "end_date": "string",
237
+ * "number": 0,
238
+ * "work_email": "string",
239
+ * "personal_email": "string",
240
+ * "status": "INIT",
241
+ * "location": {
242
+ * "type": "REMOTE",
243
+ * "work_location_id": "string"
244
+ * },
245
+ * "employment_type_id": "string",
246
+ * "employment_type": {
247
+ * "id": "string",
248
+ * "created_at": "string",
249
+ * "updated_at": "string",
250
+ * "label": "string"
251
+ * },
252
+ * "gender": "MALE",
253
+ * "date_of_birth": "string",
254
+ * "race": "BLACK",
255
+ * "ethnicity": "HISPANIC_OR_LATINO",
256
+ * "citizenship": "AF",
257
+ * "compensation_id": "string",
258
+ * "compensation": {
259
+ * "id": "string",
260
+ * "created_at": "string",
261
+ * "updated_at": "string"
262
+ * },
263
+ * "overtime_exemption": "EXEMPT",
264
+ * "department_id": "string",
265
+ * "department": {
266
+ * "id": "string",
267
+ * "created_at": "string",
268
+ * "updated_at": "string",
269
+ * "name": "string",
270
+ * "parent_id": "string",
271
+ * "parent": {},
272
+ * "reference_code": "string",
273
+ * "department_hierarchy_id": [],
274
+ * "department_hierarchy": []
275
+ * },
276
+ * "teams_id": [
277
+ * "string"
278
+ * ],
279
+ * "teams": [
280
+ * {}
281
+ * ],
282
+ * "title": "string",
283
+ * "title_effective_date": "string",
284
+ * "level_id": "string",
285
+ * "level": {
286
+ * "id": "string",
287
+ * "created_at": "string",
288
+ * "updated_at": "string",
289
+ * "name": "string",
290
+ * "parent_id": "string",
291
+ * "parent": {},
292
+ * "global_level": "string",
293
+ * "description": "string",
294
+ * "scope_of_responsibilities": "string",
295
+ * "experience_requirements": "string",
296
+ * "rank": "string",
297
+ * "track_id": "string",
298
+ * "track": {}
299
+ * },
300
+ * "job_function_id": "string",
301
+ * "job_function": {
302
+ * "id": "string",
303
+ * "created_at": "string",
304
+ * "updated_at": "string",
305
+ * "name": "string"
306
+ * },
307
+ * "termination_details": {
308
+ * "type": "VOLUNTARY",
309
+ * "reason": "string"
310
+ * },
311
+ * "pay_schedule_id": "string",
312
+ * "work_schedule": {},
313
+ * "compensation_grade": {
314
+ * "id": "string",
315
+ * "label": "string"
316
+ * },
317
+ * "original_start_date": "string",
318
+ * "custom_fields": [
319
+ * "string"
320
+ * ],
321
+ * "country_fields": {
322
+ * "us": {},
323
+ * "ca": {},
324
+ * "nz": {}
325
+ * },
326
+ * "business_partners_id": [
327
+ * "string"
328
+ * ],
329
+ * "business_partners": [
330
+ * {}
331
+ * ]
332
+ * }
333
+ * },
334
+ * "scheduled_date": "string",
335
+ * "effective_start_date": "string",
336
+ * "effective_end_date": "string",
337
+ * "name": "string",
338
+ * "description": "string",
339
+ * "status": "DRAFT",
340
+ * "cancel_reason": "string",
341
+ * "source_label_id": "string",
342
+ * "source_label": {
343
+ * "id": "string",
344
+ * "client": "VC_PLAN_CYCLE",
345
+ * "external_id": "string",
346
+ * "name": "string"
347
+ * },
348
+ * "group_label_id": "string",
349
+ * "group_label": {
350
+ * "id": "string",
351
+ * "client": "VC_PLAN_CYCLE",
352
+ * "external_id": "string",
353
+ * "name": "string"
354
+ * },
355
+ * "paystub_id": "string",
356
+ * "created_at": "string",
357
+ * "updated_at": "string"
358
+ * }
359
+ * ```
360
+ */
361
+ create(
362
+ body: ScheduledPayoutCreateParams,
363
+ options?: RequestOptions,
364
+ ): APIPromise<ScheduledPayoutCreateResponse> {
365
+ return this._client.post('/scheduled-payouts/', { body, ...options });
366
+ }
367
+
368
+ /**
369
+ * Retrieve a specific scheduled payout. Uses the company admin payout rowset;
370
+ * callers without admin payout visibility receive NotFound.
371
+ *
372
+ * @example HTTP
373
+ * Representative request and response shapes.
374
+ * ```
375
+ * GET /scheduled-payouts/{id}/ HTTP/1.1
376
+ * Host: rest.ripplingapis.com
377
+ * Accept: application/json
378
+ * Rippling-Api-Version: 2024-08-01
379
+ *
380
+ * HTTP/1.1 200 OK
381
+ * Content-Type: application/json
382
+ *
383
+ * {
384
+ * "__meta": {
385
+ * "redacted_fields": [
386
+ * {}
387
+ * ]
388
+ * }
389
+ * }
390
+ * ```
391
+ */
392
+ retrieve(id: string, options?: RequestOptions): APIPromise<ScheduledPayoutRetrieveResponse> {
393
+ return this._client.get(path`/scheduled-payouts/${id}/`, options);
394
+ }
395
+
396
+ /**
397
+ * Cancel a scheduled payout and return the cancelled payout
398
+ *
399
+ * SCHEDULED and EVALUATION_FAILED payouts can be cancelled; cancelling an already
400
+ * cancelled payout returns it unchanged. Payouts in any other status return 409.
401
+ * Only CUSTOM payouts can be cancelled through this API; other clients return 400.
402
+ * The required reason is stored as cancel_reason. Callers without admin payout
403
+ * visibility receive 404.
404
+ *
405
+ * @example HTTP
406
+ * Representative request and response shapes.
407
+ * ```
408
+ * POST /scheduled-payouts/{id}/cancel/ HTTP/1.1
409
+ * Host: rest.ripplingapis.com
410
+ * Content-Type: application/json
411
+ * Accept: application/json
412
+ * Rippling-Api-Version: 2024-08-01
413
+ *
414
+ * {
415
+ * "reason": "reason"
416
+ * }
417
+ *
418
+ * HTTP/1.1 200 OK
419
+ * Content-Type: application/json
420
+ *
421
+ * {
422
+ * "id": "string",
423
+ * "payee_id": "string",
424
+ * "payee": {
425
+ * "id": "string",
426
+ * "created_at": "string",
427
+ * "updated_at": "string"
428
+ * },
429
+ * "client": "VC_PLAN_CYCLE",
430
+ * "external_id": "string",
431
+ * "amount_base": {},
432
+ * "amount_usd": {},
433
+ * "pay_classification": "string",
434
+ * "payout_type_id": "string",
435
+ * "payout_type": {
436
+ * "id": "string",
437
+ * "key": "string",
438
+ * "display_name": "string",
439
+ * "is_system": false,
440
+ * "created_by_id": "string",
441
+ * "created_by": {
442
+ * "id": "string",
443
+ * "created_at": "string",
444
+ * "updated_at": "string",
445
+ * "user_id": "string",
446
+ * "user": {
447
+ * "id": "string",
448
+ * "created_at": "string",
449
+ * "updated_at": "string"
450
+ * },
451
+ * "is_manager": false,
452
+ * "manager_id": "string",
453
+ * "manager": {
454
+ * "id": "string",
455
+ * "created_at": "string",
456
+ * "updated_at": "string"
457
+ * },
458
+ * "legal_entity_id": "string",
459
+ * "legal_entity": {
460
+ * "id": "string",
461
+ * "created_at": "string",
462
+ * "updated_at": "string"
463
+ * },
464
+ * "country": "AF",
465
+ * "start_date": "string",
466
+ * "end_date": "string",
467
+ * "number": 0,
468
+ * "work_email": "string",
469
+ * "personal_email": "string",
470
+ * "status": "INIT",
471
+ * "location": {
472
+ * "type": "REMOTE",
473
+ * "work_location_id": "string"
474
+ * },
475
+ * "employment_type_id": "string",
476
+ * "employment_type": {
477
+ * "id": "string",
478
+ * "created_at": "string",
479
+ * "updated_at": "string",
480
+ * "label": "string"
481
+ * },
482
+ * "gender": "MALE",
483
+ * "date_of_birth": "string",
484
+ * "race": "BLACK",
485
+ * "ethnicity": "HISPANIC_OR_LATINO",
486
+ * "citizenship": "AF",
487
+ * "compensation_id": "string",
488
+ * "compensation": {
489
+ * "id": "string",
490
+ * "created_at": "string",
491
+ * "updated_at": "string"
492
+ * },
493
+ * "overtime_exemption": "EXEMPT",
494
+ * "department_id": "string",
495
+ * "department": {
496
+ * "id": "string",
497
+ * "created_at": "string",
498
+ * "updated_at": "string",
499
+ * "name": "string",
500
+ * "parent_id": "string",
501
+ * "parent": {},
502
+ * "reference_code": "string",
503
+ * "department_hierarchy_id": [],
504
+ * "department_hierarchy": []
505
+ * },
506
+ * "teams_id": [
507
+ * "string"
508
+ * ],
509
+ * "teams": [
510
+ * {}
511
+ * ],
512
+ * "title": "string",
513
+ * "title_effective_date": "string",
514
+ * "level_id": "string",
515
+ * "level": {
516
+ * "id": "string",
517
+ * "created_at": "string",
518
+ * "updated_at": "string",
519
+ * "name": "string",
520
+ * "parent_id": "string",
521
+ * "parent": {},
522
+ * "global_level": "string",
523
+ * "description": "string",
524
+ * "scope_of_responsibilities": "string",
525
+ * "experience_requirements": "string",
526
+ * "rank": "string",
527
+ * "track_id": "string",
528
+ * "track": {}
529
+ * },
530
+ * "job_function_id": "string",
531
+ * "job_function": {
532
+ * "id": "string",
533
+ * "created_at": "string",
534
+ * "updated_at": "string",
535
+ * "name": "string"
536
+ * },
537
+ * "termination_details": {
538
+ * "type": "VOLUNTARY",
539
+ * "reason": "string"
540
+ * },
541
+ * "pay_schedule_id": "string",
542
+ * "work_schedule": {},
543
+ * "compensation_grade": {
544
+ * "id": "string",
545
+ * "label": "string"
546
+ * },
547
+ * "original_start_date": "string",
548
+ * "custom_fields": [
549
+ * "string"
550
+ * ],
551
+ * "country_fields": {
552
+ * "us": {},
553
+ * "ca": {},
554
+ * "nz": {}
555
+ * },
556
+ * "business_partners_id": [
557
+ * "string"
558
+ * ],
559
+ * "business_partners": [
560
+ * {}
561
+ * ]
562
+ * }
563
+ * },
564
+ * "scheduled_date": "string",
565
+ * "effective_start_date": "string",
566
+ * "effective_end_date": "string",
567
+ * "name": "string",
568
+ * "description": "string",
569
+ * "status": "DRAFT",
570
+ * "cancel_reason": "string",
571
+ * "source_label_id": "string",
572
+ * "source_label": {
573
+ * "id": "string",
574
+ * "client": "VC_PLAN_CYCLE",
575
+ * "external_id": "string",
576
+ * "name": "string"
577
+ * },
578
+ * "group_label_id": "string",
579
+ * "group_label": {
580
+ * "id": "string",
581
+ * "client": "VC_PLAN_CYCLE",
582
+ * "external_id": "string",
583
+ * "name": "string"
584
+ * },
585
+ * "paystub_id": "string",
586
+ * "created_at": "string",
587
+ * "updated_at": "string"
588
+ * }
589
+ * ```
590
+ */
591
+ cancel(
592
+ id: string,
593
+ body: ScheduledPayoutCancelParams,
594
+ options?: RequestOptions,
595
+ ): APIPromise<ScheduledPayoutCancelResponse> {
596
+ return this._client.post(path`/scheduled-payouts/${id}/cancel/`, { body, ...options });
597
+ }
598
+ }
599
+
600
+ export type ScheduledPayoutListResponsesPageCursorURL = PageCursorURL<ScheduledPayoutListResponse>;
601
+
602
+ export interface ScheduledPayoutListResponse {
603
+ /**
604
+ * Unique identifier of the payout.
605
+ */
606
+ id: string;
607
+
608
+ /**
609
+ * Payout amount in the worker's base currency.
610
+ */
611
+ amount_base: ScheduledPayoutListResponse.AmountBase;
612
+
613
+ /**
614
+ * Payout amount converted to USD.
615
+ */
616
+ amount_usd: ScheduledPayoutListResponse.AmountUsd;
617
+
618
+ /**
619
+ * System that owns the payout; together with external_id it is the upsert
620
+ * identity. CUSTOM: created by an integrator through this API (the only value
621
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
622
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
623
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
624
+ * NEW_HIRE_AGENT (Rippling recommendations).
625
+ */
626
+ client:
627
+ | 'VC_PLAN_CYCLE'
628
+ | 'VC_EVENT_DRIVEN_PLAN'
629
+ | 'CUSTOM'
630
+ | 'MANUAL_PAYOUT'
631
+ | 'HRIS_SIGN_ON'
632
+ | 'OFFLINE_RECOMMENDATION'
633
+ | 'NEW_HIRE_AGENT';
634
+
635
+ /**
636
+ * When the payout was created, as an ISO 8601 UTC timestamp.
637
+ */
638
+ created_at: string;
639
+
640
+ /**
641
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
642
+ */
643
+ effective_end_date: string;
644
+
645
+ /**
646
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
647
+ */
648
+ effective_start_date: string;
649
+
650
+ /**
651
+ * External identifier unique per company and client.
652
+ */
653
+ external_id: string;
654
+
655
+ /**
656
+ * ID of the worker who receives this payout.
657
+ */
658
+ payee_id: string;
659
+
660
+ /**
661
+ * Key of the company payout type used for this payout. List valid keys with GET
662
+ * /scheduled-payout-types/.
663
+ */
664
+ payout_type_id: string;
665
+
666
+ /**
667
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
668
+ */
669
+ scheduled_date: string;
670
+
671
+ /**
672
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
673
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
674
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
675
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
676
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
677
+ * FORFEITED (release conditions not met), CANCELLED.
678
+ */
679
+ status:
680
+ | 'DRAFT'
681
+ | 'PENDING_APPROVAL'
682
+ | 'APPROVAL_REJECTED'
683
+ | 'SCHEDULED'
684
+ | 'RELEASED'
685
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
686
+ | 'PAID'
687
+ | 'FORFEITED'
688
+ | 'EVALUATION_FAILED'
689
+ | 'CANCELLED';
690
+
691
+ /**
692
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
693
+ */
694
+ updated_at: string;
695
+
696
+ /**
697
+ * Reason provided when the payout was cancelled.
698
+ */
699
+ cancel_reason?: string;
700
+
701
+ /**
702
+ * Optional payout description.
703
+ */
704
+ description?: string;
705
+
706
+ /**
707
+ * Group label attached to the payout. Populated only with expand=group_label,
708
+ * which requires scheduled-payout-labels.read.
709
+ */
710
+ group_label?: ScheduledPayoutListResponse.GroupLabel;
711
+
712
+ /**
713
+ * ID of the group label attached to the payout.
714
+ */
715
+ group_label_id?: string;
716
+
717
+ /**
718
+ * Optional payout name.
719
+ */
720
+ name?: string;
721
+
722
+ /**
723
+ * Payroll earning code resolved from the payout type's mapping for the payee's
724
+ * payroll entity. While the payout is open, reads reflect the current mapping;
725
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
726
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
727
+ * paid through Rippling payroll return the stored value, which may be null.
728
+ */
729
+ pay_classification?: string;
730
+
731
+ /**
732
+ * Worker who receives this payout. Populated only with expand=payee, which
733
+ * requires workers.read.
734
+ */
735
+ payee?: WorkersAPI.Worker;
736
+
737
+ /**
738
+ * Payout type used for this payout. Populated only with expand=payout_type, which
739
+ * requires scheduled-payout-types.read.
740
+ */
741
+ payout_type?: ScheduledPayoutListResponse.PayoutType;
742
+
743
+ /**
744
+ * Paystub identifier when the payout has been synced to payroll.
745
+ */
746
+ paystub_id?: string;
747
+
748
+ /**
749
+ * Source label attached to the payout. Populated only with expand=source_label,
750
+ * which requires scheduled-payout-labels.read.
751
+ */
752
+ source_label?: ScheduledPayoutListResponse.SourceLabel;
753
+
754
+ /**
755
+ * ID of the source label attached to the payout.
756
+ */
757
+ source_label_id?: string;
758
+ }
759
+
760
+ export namespace ScheduledPayoutListResponse {
761
+ /**
762
+ * Payout amount in the worker's base currency.
763
+ */
764
+ export interface AmountBase {
765
+ /**
766
+ * The currency type, ex: USD, EUR, etc.
767
+ */
768
+ currency_type?: string;
769
+
770
+ /**
771
+ * The decimal amount for the currency.
772
+ */
773
+ value?: number;
774
+ }
775
+
776
+ /**
777
+ * Payout amount converted to USD.
778
+ */
779
+ export interface AmountUsd {
780
+ /**
781
+ * The currency type, ex: USD, EUR, etc.
782
+ */
783
+ currency_type?: string;
784
+
785
+ /**
786
+ * The decimal amount for the currency.
787
+ */
788
+ value?: number;
789
+ }
790
+
791
+ /**
792
+ * Group label attached to the payout. Populated only with expand=group_label,
793
+ * which requires scheduled-payout-labels.read.
794
+ */
795
+ export interface GroupLabel {
796
+ /**
797
+ * Unique identifier of the payout label.
798
+ */
799
+ id: string;
800
+
801
+ /**
802
+ * System that owns the label; together with external_id it is the label identity.
803
+ * Same values as the payout client.
804
+ */
805
+ client:
806
+ | 'VC_PLAN_CYCLE'
807
+ | 'VC_EVENT_DRIVEN_PLAN'
808
+ | 'CUSTOM'
809
+ | 'MANUAL_PAYOUT'
810
+ | 'HRIS_SIGN_ON'
811
+ | 'OFFLINE_RECOMMENDATION'
812
+ | 'NEW_HIRE_AGENT';
813
+
814
+ /**
815
+ * External identifier unique per company and client.
816
+ */
817
+ external_id: string;
818
+
819
+ /**
820
+ * Display name of the label.
821
+ */
822
+ name: string;
823
+ }
824
+
825
+ /**
826
+ * Payout type used for this payout. Populated only with expand=payout_type, which
827
+ * requires scheduled-payout-types.read.
828
+ */
829
+ export interface PayoutType {
830
+ /**
831
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
832
+ * paths. Always equal to key; both are returned because every resource exposes id
833
+ * while payouts reference types by key (payout_type_id).
834
+ */
835
+ id: string;
836
+
837
+ /**
838
+ * Display name of the payout type.
839
+ */
840
+ display_name: string;
841
+
842
+ /**
843
+ * Whether this is a built-in payout type.
844
+ */
845
+ is_system: boolean;
846
+
847
+ /**
848
+ * Stable payout type key assigned by the server on create.
849
+ */
850
+ key: string;
851
+
852
+ /**
853
+ * Worker who created this custom payout type. Populated only with
854
+ * expand=created_by, which requires workers.read.
855
+ */
856
+ created_by?: WorkersAPI.Worker;
857
+
858
+ /**
859
+ * ID of the worker who created this custom payout type; null for built-in types.
860
+ */
861
+ created_by_id?: string;
862
+ }
863
+
864
+ /**
865
+ * Source label attached to the payout. Populated only with expand=source_label,
866
+ * which requires scheduled-payout-labels.read.
867
+ */
868
+ export interface SourceLabel {
869
+ /**
870
+ * Unique identifier of the payout label.
871
+ */
872
+ id: string;
873
+
874
+ /**
875
+ * System that owns the label; together with external_id it is the label identity.
876
+ * Same values as the payout client.
877
+ */
878
+ client:
879
+ | 'VC_PLAN_CYCLE'
880
+ | 'VC_EVENT_DRIVEN_PLAN'
881
+ | 'CUSTOM'
882
+ | 'MANUAL_PAYOUT'
883
+ | 'HRIS_SIGN_ON'
884
+ | 'OFFLINE_RECOMMENDATION'
885
+ | 'NEW_HIRE_AGENT';
886
+
887
+ /**
888
+ * External identifier unique per company and client.
889
+ */
890
+ external_id: string;
891
+
892
+ /**
893
+ * Display name of the label.
894
+ */
895
+ name: string;
896
+ }
897
+ }
898
+
899
+ export interface ScheduledPayoutCreateResponse {
900
+ /**
901
+ * Unique identifier of the payout.
902
+ */
903
+ id: string;
904
+
905
+ /**
906
+ * Payout amount in the worker's base currency.
907
+ */
908
+ amount_base: ScheduledPayoutCreateResponse.AmountBase;
909
+
910
+ /**
911
+ * Payout amount converted to USD.
912
+ */
913
+ amount_usd: ScheduledPayoutCreateResponse.AmountUsd;
914
+
915
+ /**
916
+ * System that owns the payout; together with external_id it is the upsert
917
+ * identity. CUSTOM: created by an integrator through this API (the only value
918
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
919
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
920
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
921
+ * NEW_HIRE_AGENT (Rippling recommendations).
922
+ */
923
+ client:
924
+ | 'VC_PLAN_CYCLE'
925
+ | 'VC_EVENT_DRIVEN_PLAN'
926
+ | 'CUSTOM'
927
+ | 'MANUAL_PAYOUT'
928
+ | 'HRIS_SIGN_ON'
929
+ | 'OFFLINE_RECOMMENDATION'
930
+ | 'NEW_HIRE_AGENT';
931
+
932
+ /**
933
+ * When the payout was created, as an ISO 8601 UTC timestamp.
934
+ */
935
+ created_at: string;
936
+
937
+ /**
938
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
939
+ */
940
+ effective_end_date: string;
941
+
942
+ /**
943
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
944
+ */
945
+ effective_start_date: string;
946
+
947
+ /**
948
+ * External identifier unique per company and client.
949
+ */
950
+ external_id: string;
951
+
952
+ /**
953
+ * ID of the worker who receives this payout.
954
+ */
955
+ payee_id: string;
956
+
957
+ /**
958
+ * Key of the company payout type used for this payout. List valid keys with GET
959
+ * /scheduled-payout-types/.
960
+ */
961
+ payout_type_id: string;
962
+
963
+ /**
964
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
965
+ */
966
+ scheduled_date: string;
967
+
968
+ /**
969
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
970
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
971
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
972
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
973
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
974
+ * FORFEITED (release conditions not met), CANCELLED.
975
+ */
976
+ status:
977
+ | 'DRAFT'
978
+ | 'PENDING_APPROVAL'
979
+ | 'APPROVAL_REJECTED'
980
+ | 'SCHEDULED'
981
+ | 'RELEASED'
982
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
983
+ | 'PAID'
984
+ | 'FORFEITED'
985
+ | 'EVALUATION_FAILED'
986
+ | 'CANCELLED';
987
+
988
+ /**
989
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
990
+ */
991
+ updated_at: string;
992
+
993
+ /**
994
+ * Reason provided when the payout was cancelled.
995
+ */
996
+ cancel_reason?: string;
997
+
998
+ /**
999
+ * Optional payout description.
1000
+ */
1001
+ description?: string;
1002
+
1003
+ /**
1004
+ * Group label attached to the payout. Populated only with expand=group_label,
1005
+ * which requires scheduled-payout-labels.read.
1006
+ */
1007
+ group_label?: ScheduledPayoutCreateResponse.GroupLabel;
1008
+
1009
+ /**
1010
+ * ID of the group label attached to the payout.
1011
+ */
1012
+ group_label_id?: string;
1013
+
1014
+ /**
1015
+ * Optional payout name.
1016
+ */
1017
+ name?: string;
1018
+
1019
+ /**
1020
+ * Payroll earning code resolved from the payout type's mapping for the payee's
1021
+ * payroll entity. While the payout is open, reads reflect the current mapping;
1022
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
1023
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
1024
+ * paid through Rippling payroll return the stored value, which may be null.
1025
+ */
1026
+ pay_classification?: string;
1027
+
1028
+ /**
1029
+ * Worker who receives this payout. Populated only with expand=payee, which
1030
+ * requires workers.read.
1031
+ */
1032
+ payee?: WorkersAPI.Worker;
1033
+
1034
+ /**
1035
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1036
+ * requires scheduled-payout-types.read.
1037
+ */
1038
+ payout_type?: ScheduledPayoutCreateResponse.PayoutType;
1039
+
1040
+ /**
1041
+ * Paystub identifier when the payout has been synced to payroll.
1042
+ */
1043
+ paystub_id?: string;
1044
+
1045
+ /**
1046
+ * Source label attached to the payout. Populated only with expand=source_label,
1047
+ * which requires scheduled-payout-labels.read.
1048
+ */
1049
+ source_label?: ScheduledPayoutCreateResponse.SourceLabel;
1050
+
1051
+ /**
1052
+ * ID of the source label attached to the payout.
1053
+ */
1054
+ source_label_id?: string;
1055
+ }
1056
+
1057
+ export namespace ScheduledPayoutCreateResponse {
1058
+ /**
1059
+ * Payout amount in the worker's base currency.
1060
+ */
1061
+ export interface AmountBase {
1062
+ /**
1063
+ * The currency type, ex: USD, EUR, etc.
1064
+ */
1065
+ currency_type?: string;
1066
+
1067
+ /**
1068
+ * The decimal amount for the currency.
1069
+ */
1070
+ value?: number;
1071
+ }
1072
+
1073
+ /**
1074
+ * Payout amount converted to USD.
1075
+ */
1076
+ export interface AmountUsd {
1077
+ /**
1078
+ * The currency type, ex: USD, EUR, etc.
1079
+ */
1080
+ currency_type?: string;
1081
+
1082
+ /**
1083
+ * The decimal amount for the currency.
1084
+ */
1085
+ value?: number;
1086
+ }
1087
+
1088
+ /**
1089
+ * Group label attached to the payout. Populated only with expand=group_label,
1090
+ * which requires scheduled-payout-labels.read.
1091
+ */
1092
+ export interface GroupLabel {
1093
+ /**
1094
+ * Unique identifier of the payout label.
1095
+ */
1096
+ id: string;
1097
+
1098
+ /**
1099
+ * System that owns the label; together with external_id it is the label identity.
1100
+ * Same values as the payout client.
1101
+ */
1102
+ client:
1103
+ | 'VC_PLAN_CYCLE'
1104
+ | 'VC_EVENT_DRIVEN_PLAN'
1105
+ | 'CUSTOM'
1106
+ | 'MANUAL_PAYOUT'
1107
+ | 'HRIS_SIGN_ON'
1108
+ | 'OFFLINE_RECOMMENDATION'
1109
+ | 'NEW_HIRE_AGENT';
1110
+
1111
+ /**
1112
+ * External identifier unique per company and client.
1113
+ */
1114
+ external_id: string;
1115
+
1116
+ /**
1117
+ * Display name of the label.
1118
+ */
1119
+ name: string;
1120
+ }
1121
+
1122
+ /**
1123
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1124
+ * requires scheduled-payout-types.read.
1125
+ */
1126
+ export interface PayoutType {
1127
+ /**
1128
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
1129
+ * paths. Always equal to key; both are returned because every resource exposes id
1130
+ * while payouts reference types by key (payout_type_id).
1131
+ */
1132
+ id: string;
1133
+
1134
+ /**
1135
+ * Display name of the payout type.
1136
+ */
1137
+ display_name: string;
1138
+
1139
+ /**
1140
+ * Whether this is a built-in payout type.
1141
+ */
1142
+ is_system: boolean;
1143
+
1144
+ /**
1145
+ * Stable payout type key assigned by the server on create.
1146
+ */
1147
+ key: string;
1148
+
1149
+ /**
1150
+ * Worker who created this custom payout type. Populated only with
1151
+ * expand=created_by, which requires workers.read.
1152
+ */
1153
+ created_by?: WorkersAPI.Worker;
1154
+
1155
+ /**
1156
+ * ID of the worker who created this custom payout type; null for built-in types.
1157
+ */
1158
+ created_by_id?: string;
1159
+ }
1160
+
1161
+ /**
1162
+ * Source label attached to the payout. Populated only with expand=source_label,
1163
+ * which requires scheduled-payout-labels.read.
1164
+ */
1165
+ export interface SourceLabel {
1166
+ /**
1167
+ * Unique identifier of the payout label.
1168
+ */
1169
+ id: string;
1170
+
1171
+ /**
1172
+ * System that owns the label; together with external_id it is the label identity.
1173
+ * Same values as the payout client.
1174
+ */
1175
+ client:
1176
+ | 'VC_PLAN_CYCLE'
1177
+ | 'VC_EVENT_DRIVEN_PLAN'
1178
+ | 'CUSTOM'
1179
+ | 'MANUAL_PAYOUT'
1180
+ | 'HRIS_SIGN_ON'
1181
+ | 'OFFLINE_RECOMMENDATION'
1182
+ | 'NEW_HIRE_AGENT';
1183
+
1184
+ /**
1185
+ * External identifier unique per company and client.
1186
+ */
1187
+ external_id: string;
1188
+
1189
+ /**
1190
+ * Display name of the label.
1191
+ */
1192
+ name: string;
1193
+ }
1194
+ }
1195
+
1196
+ /**
1197
+ * Meta information for the response.
1198
+ */
1199
+ export interface ScheduledPayoutRetrieveResponse extends BusinessPartnersAPI.Meta {
1200
+ /**
1201
+ * Unique identifier of the payout.
1202
+ */
1203
+ id: string;
1204
+
1205
+ /**
1206
+ * Payout amount in the worker's base currency.
1207
+ */
1208
+ amount_base: ScheduledPayoutRetrieveResponse.AmountBase;
1209
+
1210
+ /**
1211
+ * Payout amount converted to USD.
1212
+ */
1213
+ amount_usd: ScheduledPayoutRetrieveResponse.AmountUsd;
1214
+
1215
+ /**
1216
+ * System that owns the payout; together with external_id it is the upsert
1217
+ * identity. CUSTOM: created by an integrator through this API (the only value
1218
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
1219
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
1220
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
1221
+ * NEW_HIRE_AGENT (Rippling recommendations).
1222
+ */
1223
+ client:
1224
+ | 'VC_PLAN_CYCLE'
1225
+ | 'VC_EVENT_DRIVEN_PLAN'
1226
+ | 'CUSTOM'
1227
+ | 'MANUAL_PAYOUT'
1228
+ | 'HRIS_SIGN_ON'
1229
+ | 'OFFLINE_RECOMMENDATION'
1230
+ | 'NEW_HIRE_AGENT';
1231
+
1232
+ /**
1233
+ * When the payout was created, as an ISO 8601 UTC timestamp.
1234
+ */
1235
+ created_at: string;
1236
+
1237
+ /**
1238
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
1239
+ */
1240
+ effective_end_date: string;
1241
+
1242
+ /**
1243
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
1244
+ */
1245
+ effective_start_date: string;
1246
+
1247
+ /**
1248
+ * External identifier unique per company and client.
1249
+ */
1250
+ external_id: string;
1251
+
1252
+ /**
1253
+ * ID of the worker who receives this payout.
1254
+ */
1255
+ payee_id: string;
1256
+
1257
+ /**
1258
+ * Key of the company payout type used for this payout. List valid keys with GET
1259
+ * /scheduled-payout-types/.
1260
+ */
1261
+ payout_type_id: string;
1262
+
1263
+ /**
1264
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
1265
+ */
1266
+ scheduled_date: string;
1267
+
1268
+ /**
1269
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
1270
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
1271
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
1272
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
1273
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
1274
+ * FORFEITED (release conditions not met), CANCELLED.
1275
+ */
1276
+ status:
1277
+ | 'DRAFT'
1278
+ | 'PENDING_APPROVAL'
1279
+ | 'APPROVAL_REJECTED'
1280
+ | 'SCHEDULED'
1281
+ | 'RELEASED'
1282
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
1283
+ | 'PAID'
1284
+ | 'FORFEITED'
1285
+ | 'EVALUATION_FAILED'
1286
+ | 'CANCELLED';
1287
+
1288
+ /**
1289
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
1290
+ */
1291
+ updated_at: string;
1292
+
1293
+ /**
1294
+ * Reason provided when the payout was cancelled.
1295
+ */
1296
+ cancel_reason?: string;
1297
+
1298
+ /**
1299
+ * Optional payout description.
1300
+ */
1301
+ description?: string;
1302
+
1303
+ /**
1304
+ * Group label attached to the payout. Populated only with expand=group_label,
1305
+ * which requires scheduled-payout-labels.read.
1306
+ */
1307
+ group_label?: ScheduledPayoutRetrieveResponse.GroupLabel;
1308
+
1309
+ /**
1310
+ * ID of the group label attached to the payout.
1311
+ */
1312
+ group_label_id?: string;
1313
+
1314
+ /**
1315
+ * Optional payout name.
1316
+ */
1317
+ name?: string;
1318
+
1319
+ /**
1320
+ * Payroll earning code resolved from the payout type's mapping for the payee's
1321
+ * payroll entity. While the payout is open, reads reflect the current mapping;
1322
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
1323
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
1324
+ * paid through Rippling payroll return the stored value, which may be null.
1325
+ */
1326
+ pay_classification?: string;
1327
+
1328
+ /**
1329
+ * Worker who receives this payout. Populated only with expand=payee, which
1330
+ * requires workers.read.
1331
+ */
1332
+ payee?: WorkersAPI.Worker;
1333
+
1334
+ /**
1335
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1336
+ * requires scheduled-payout-types.read.
1337
+ */
1338
+ payout_type?: ScheduledPayoutRetrieveResponse.PayoutType;
1339
+
1340
+ /**
1341
+ * Paystub identifier when the payout has been synced to payroll.
1342
+ */
1343
+ paystub_id?: string;
1344
+
1345
+ /**
1346
+ * Source label attached to the payout. Populated only with expand=source_label,
1347
+ * which requires scheduled-payout-labels.read.
1348
+ */
1349
+ source_label?: ScheduledPayoutRetrieveResponse.SourceLabel;
1350
+
1351
+ /**
1352
+ * ID of the source label attached to the payout.
1353
+ */
1354
+ source_label_id?: string;
1355
+ }
1356
+
1357
+ export namespace ScheduledPayoutRetrieveResponse {
1358
+ /**
1359
+ * Payout amount in the worker's base currency.
1360
+ */
1361
+ export interface AmountBase {
1362
+ /**
1363
+ * The currency type, ex: USD, EUR, etc.
1364
+ */
1365
+ currency_type?: string;
1366
+
1367
+ /**
1368
+ * The decimal amount for the currency.
1369
+ */
1370
+ value?: number;
1371
+ }
1372
+
1373
+ /**
1374
+ * Payout amount converted to USD.
1375
+ */
1376
+ export interface AmountUsd {
1377
+ /**
1378
+ * The currency type, ex: USD, EUR, etc.
1379
+ */
1380
+ currency_type?: string;
1381
+
1382
+ /**
1383
+ * The decimal amount for the currency.
1384
+ */
1385
+ value?: number;
1386
+ }
1387
+
1388
+ /**
1389
+ * Group label attached to the payout. Populated only with expand=group_label,
1390
+ * which requires scheduled-payout-labels.read.
1391
+ */
1392
+ export interface GroupLabel {
1393
+ /**
1394
+ * Unique identifier of the payout label.
1395
+ */
1396
+ id: string;
1397
+
1398
+ /**
1399
+ * System that owns the label; together with external_id it is the label identity.
1400
+ * Same values as the payout client.
1401
+ */
1402
+ client:
1403
+ | 'VC_PLAN_CYCLE'
1404
+ | 'VC_EVENT_DRIVEN_PLAN'
1405
+ | 'CUSTOM'
1406
+ | 'MANUAL_PAYOUT'
1407
+ | 'HRIS_SIGN_ON'
1408
+ | 'OFFLINE_RECOMMENDATION'
1409
+ | 'NEW_HIRE_AGENT';
1410
+
1411
+ /**
1412
+ * External identifier unique per company and client.
1413
+ */
1414
+ external_id: string;
1415
+
1416
+ /**
1417
+ * Display name of the label.
1418
+ */
1419
+ name: string;
1420
+ }
1421
+
1422
+ /**
1423
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1424
+ * requires scheduled-payout-types.read.
1425
+ */
1426
+ export interface PayoutType {
1427
+ /**
1428
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
1429
+ * paths. Always equal to key; both are returned because every resource exposes id
1430
+ * while payouts reference types by key (payout_type_id).
1431
+ */
1432
+ id: string;
1433
+
1434
+ /**
1435
+ * Display name of the payout type.
1436
+ */
1437
+ display_name: string;
1438
+
1439
+ /**
1440
+ * Whether this is a built-in payout type.
1441
+ */
1442
+ is_system: boolean;
1443
+
1444
+ /**
1445
+ * Stable payout type key assigned by the server on create.
1446
+ */
1447
+ key: string;
1448
+
1449
+ /**
1450
+ * Worker who created this custom payout type. Populated only with
1451
+ * expand=created_by, which requires workers.read.
1452
+ */
1453
+ created_by?: WorkersAPI.Worker;
1454
+
1455
+ /**
1456
+ * ID of the worker who created this custom payout type; null for built-in types.
1457
+ */
1458
+ created_by_id?: string;
1459
+ }
1460
+
1461
+ /**
1462
+ * Source label attached to the payout. Populated only with expand=source_label,
1463
+ * which requires scheduled-payout-labels.read.
1464
+ */
1465
+ export interface SourceLabel {
1466
+ /**
1467
+ * Unique identifier of the payout label.
1468
+ */
1469
+ id: string;
1470
+
1471
+ /**
1472
+ * System that owns the label; together with external_id it is the label identity.
1473
+ * Same values as the payout client.
1474
+ */
1475
+ client:
1476
+ | 'VC_PLAN_CYCLE'
1477
+ | 'VC_EVENT_DRIVEN_PLAN'
1478
+ | 'CUSTOM'
1479
+ | 'MANUAL_PAYOUT'
1480
+ | 'HRIS_SIGN_ON'
1481
+ | 'OFFLINE_RECOMMENDATION'
1482
+ | 'NEW_HIRE_AGENT';
1483
+
1484
+ /**
1485
+ * External identifier unique per company and client.
1486
+ */
1487
+ external_id: string;
1488
+
1489
+ /**
1490
+ * Display name of the label.
1491
+ */
1492
+ name: string;
1493
+ }
1494
+ }
1495
+
1496
+ export interface ScheduledPayoutCancelResponse {
1497
+ /**
1498
+ * Unique identifier of the payout.
1499
+ */
1500
+ id: string;
1501
+
1502
+ /**
1503
+ * Payout amount in the worker's base currency.
1504
+ */
1505
+ amount_base: ScheduledPayoutCancelResponse.AmountBase;
1506
+
1507
+ /**
1508
+ * Payout amount converted to USD.
1509
+ */
1510
+ amount_usd: ScheduledPayoutCancelResponse.AmountUsd;
1511
+
1512
+ /**
1513
+ * System that owns the payout; together with external_id it is the upsert
1514
+ * identity. CUSTOM: created by an integrator through this API (the only value
1515
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
1516
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
1517
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
1518
+ * NEW_HIRE_AGENT (Rippling recommendations).
1519
+ */
1520
+ client:
1521
+ | 'VC_PLAN_CYCLE'
1522
+ | 'VC_EVENT_DRIVEN_PLAN'
1523
+ | 'CUSTOM'
1524
+ | 'MANUAL_PAYOUT'
1525
+ | 'HRIS_SIGN_ON'
1526
+ | 'OFFLINE_RECOMMENDATION'
1527
+ | 'NEW_HIRE_AGENT';
1528
+
1529
+ /**
1530
+ * When the payout was created, as an ISO 8601 UTC timestamp.
1531
+ */
1532
+ created_at: string;
1533
+
1534
+ /**
1535
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
1536
+ */
1537
+ effective_end_date: string;
1538
+
1539
+ /**
1540
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
1541
+ */
1542
+ effective_start_date: string;
1543
+
1544
+ /**
1545
+ * External identifier unique per company and client.
1546
+ */
1547
+ external_id: string;
1548
+
1549
+ /**
1550
+ * ID of the worker who receives this payout.
1551
+ */
1552
+ payee_id: string;
1553
+
1554
+ /**
1555
+ * Key of the company payout type used for this payout. List valid keys with GET
1556
+ * /scheduled-payout-types/.
1557
+ */
1558
+ payout_type_id: string;
1559
+
1560
+ /**
1561
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
1562
+ */
1563
+ scheduled_date: string;
1564
+
1565
+ /**
1566
+ * Lifecycle status. Before scheduling: DRAFT, PENDING_APPROVAL, APPROVAL_REJECTED.
1567
+ * SCHEDULED: waiting for scheduled_date and its release conditions.
1568
+ * EVALUATION_FAILED: release conditions could not be evaluated and will be
1569
+ * retried; editable like SCHEDULED. RELEASED: sent to payroll and locked.
1570
+ * PAYROLL_RETRACT_IN_PROGRESS: being removed from payroll. Terminal: PAID,
1571
+ * FORFEITED (release conditions not met), CANCELLED.
1572
+ */
1573
+ status:
1574
+ | 'DRAFT'
1575
+ | 'PENDING_APPROVAL'
1576
+ | 'APPROVAL_REJECTED'
1577
+ | 'SCHEDULED'
1578
+ | 'RELEASED'
1579
+ | 'PAYROLL_RETRACT_IN_PROGRESS'
1580
+ | 'PAID'
1581
+ | 'FORFEITED'
1582
+ | 'EVALUATION_FAILED'
1583
+ | 'CANCELLED';
1584
+
1585
+ /**
1586
+ * When the payout was last updated, as an ISO 8601 UTC timestamp.
1587
+ */
1588
+ updated_at: string;
1589
+
1590
+ /**
1591
+ * Reason provided when the payout was cancelled.
1592
+ */
1593
+ cancel_reason?: string;
1594
+
1595
+ /**
1596
+ * Optional payout description.
1597
+ */
1598
+ description?: string;
1599
+
1600
+ /**
1601
+ * Group label attached to the payout. Populated only with expand=group_label,
1602
+ * which requires scheduled-payout-labels.read.
1603
+ */
1604
+ group_label?: ScheduledPayoutCancelResponse.GroupLabel;
1605
+
1606
+ /**
1607
+ * ID of the group label attached to the payout.
1608
+ */
1609
+ group_label_id?: string;
1610
+
1611
+ /**
1612
+ * Optional payout name.
1613
+ */
1614
+ name?: string;
1615
+
1616
+ /**
1617
+ * Payroll earning code resolved from the payout type's mapping for the payee's
1618
+ * payroll entity. While the payout is open, reads reflect the current mapping;
1619
+ * from RELEASED, PAYROLL_RETRACT_IN_PROGRESS, PAID, FORFEITED, CANCELLED, or
1620
+ * APPROVAL_REJECTED onward it is the value stored at that transition. Payouts not
1621
+ * paid through Rippling payroll return the stored value, which may be null.
1622
+ */
1623
+ pay_classification?: string;
1624
+
1625
+ /**
1626
+ * Worker who receives this payout. Populated only with expand=payee, which
1627
+ * requires workers.read.
1628
+ */
1629
+ payee?: WorkersAPI.Worker;
1630
+
1631
+ /**
1632
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1633
+ * requires scheduled-payout-types.read.
1634
+ */
1635
+ payout_type?: ScheduledPayoutCancelResponse.PayoutType;
1636
+
1637
+ /**
1638
+ * Paystub identifier when the payout has been synced to payroll.
1639
+ */
1640
+ paystub_id?: string;
1641
+
1642
+ /**
1643
+ * Source label attached to the payout. Populated only with expand=source_label,
1644
+ * which requires scheduled-payout-labels.read.
1645
+ */
1646
+ source_label?: ScheduledPayoutCancelResponse.SourceLabel;
1647
+
1648
+ /**
1649
+ * ID of the source label attached to the payout.
1650
+ */
1651
+ source_label_id?: string;
1652
+ }
1653
+
1654
+ export namespace ScheduledPayoutCancelResponse {
1655
+ /**
1656
+ * Payout amount in the worker's base currency.
1657
+ */
1658
+ export interface AmountBase {
1659
+ /**
1660
+ * The currency type, ex: USD, EUR, etc.
1661
+ */
1662
+ currency_type?: string;
1663
+
1664
+ /**
1665
+ * The decimal amount for the currency.
1666
+ */
1667
+ value?: number;
1668
+ }
1669
+
1670
+ /**
1671
+ * Payout amount converted to USD.
1672
+ */
1673
+ export interface AmountUsd {
1674
+ /**
1675
+ * The currency type, ex: USD, EUR, etc.
1676
+ */
1677
+ currency_type?: string;
1678
+
1679
+ /**
1680
+ * The decimal amount for the currency.
1681
+ */
1682
+ value?: number;
1683
+ }
1684
+
1685
+ /**
1686
+ * Group label attached to the payout. Populated only with expand=group_label,
1687
+ * which requires scheduled-payout-labels.read.
1688
+ */
1689
+ export interface GroupLabel {
1690
+ /**
1691
+ * Unique identifier of the payout label.
1692
+ */
1693
+ id: string;
1694
+
1695
+ /**
1696
+ * System that owns the label; together with external_id it is the label identity.
1697
+ * Same values as the payout client.
1698
+ */
1699
+ client:
1700
+ | 'VC_PLAN_CYCLE'
1701
+ | 'VC_EVENT_DRIVEN_PLAN'
1702
+ | 'CUSTOM'
1703
+ | 'MANUAL_PAYOUT'
1704
+ | 'HRIS_SIGN_ON'
1705
+ | 'OFFLINE_RECOMMENDATION'
1706
+ | 'NEW_HIRE_AGENT';
1707
+
1708
+ /**
1709
+ * External identifier unique per company and client.
1710
+ */
1711
+ external_id: string;
1712
+
1713
+ /**
1714
+ * Display name of the label.
1715
+ */
1716
+ name: string;
1717
+ }
1718
+
1719
+ /**
1720
+ * Payout type used for this payout. Populated only with expand=payout_type, which
1721
+ * requires scheduled-payout-types.read.
1722
+ */
1723
+ export interface PayoutType {
1724
+ /**
1725
+ * Unique identifier of the payout type, used in /scheduled-payout-types/{id}/
1726
+ * paths. Always equal to key; both are returned because every resource exposes id
1727
+ * while payouts reference types by key (payout_type_id).
1728
+ */
1729
+ id: string;
1730
+
1731
+ /**
1732
+ * Display name of the payout type.
1733
+ */
1734
+ display_name: string;
1735
+
1736
+ /**
1737
+ * Whether this is a built-in payout type.
1738
+ */
1739
+ is_system: boolean;
1740
+
1741
+ /**
1742
+ * Stable payout type key assigned by the server on create.
1743
+ */
1744
+ key: string;
1745
+
1746
+ /**
1747
+ * Worker who created this custom payout type. Populated only with
1748
+ * expand=created_by, which requires workers.read.
1749
+ */
1750
+ created_by?: WorkersAPI.Worker;
1751
+
1752
+ /**
1753
+ * ID of the worker who created this custom payout type; null for built-in types.
1754
+ */
1755
+ created_by_id?: string;
1756
+ }
1757
+
1758
+ /**
1759
+ * Source label attached to the payout. Populated only with expand=source_label,
1760
+ * which requires scheduled-payout-labels.read.
1761
+ */
1762
+ export interface SourceLabel {
1763
+ /**
1764
+ * Unique identifier of the payout label.
1765
+ */
1766
+ id: string;
1767
+
1768
+ /**
1769
+ * System that owns the label; together with external_id it is the label identity.
1770
+ * Same values as the payout client.
1771
+ */
1772
+ client:
1773
+ | 'VC_PLAN_CYCLE'
1774
+ | 'VC_EVENT_DRIVEN_PLAN'
1775
+ | 'CUSTOM'
1776
+ | 'MANUAL_PAYOUT'
1777
+ | 'HRIS_SIGN_ON'
1778
+ | 'OFFLINE_RECOMMENDATION'
1779
+ | 'NEW_HIRE_AGENT';
1780
+
1781
+ /**
1782
+ * External identifier unique per company and client.
1783
+ */
1784
+ external_id: string;
1785
+
1786
+ /**
1787
+ * Display name of the label.
1788
+ */
1789
+ name: string;
1790
+ }
1791
+ }
1792
+
1793
+ export interface ScheduledPayoutListParams {
1794
+ /**
1795
+ * Opaque pagination cursor from the previous page's next_link.
1796
+ */
1797
+ cursor?: string;
1798
+
1799
+ /**
1800
+ * Comma-separated relationships to include: payee (requires workers.read),
1801
+ * payout_type (requires scheduled-payout-types.read), source_label and group_label
1802
+ * (require scheduled-payout-labels.read). Retrieve accepts the same values.
1803
+ */
1804
+ expand?: string;
1805
+
1806
+ /**
1807
+ * String equality filters joined by and. Supported fields: payee_id, client,
1808
+ * external_id, status, source_label_id, group_label_id. payout_type_id is returned
1809
+ * but not filterable.
1810
+ */
1811
+ filter?: string;
1812
+
1813
+ /**
1814
+ * Page size. Defaults to 50. Maximum 100.
1815
+ */
1816
+ limit?: number;
1817
+ }
1818
+
1819
+ export interface ScheduledPayoutCreateParams {
1820
+ /**
1821
+ * Payout amount in the worker's base currency.
1822
+ */
1823
+ amount_base: ScheduledPayoutCreateParams.AmountBase;
1824
+
1825
+ /**
1826
+ * Payout amount converted to USD.
1827
+ */
1828
+ amount_usd: ScheduledPayoutCreateParams.AmountUsd;
1829
+
1830
+ /**
1831
+ * System that owns the payout; together with external_id it is the upsert
1832
+ * identity. CUSTOM: created by an integrator through this API (the only value
1833
+ * accepted on create). Rippling-generated, read-only here: VC_PLAN_CYCLE and
1834
+ * VC_EVENT_DRIVEN_PLAN (variable compensation plans), MANUAL_PAYOUT (entered in
1835
+ * Rippling), HRIS_SIGN_ON (new-hire sign-on bonuses), OFFLINE_RECOMMENDATION and
1836
+ * NEW_HIRE_AGENT (Rippling recommendations).
1837
+ */
1838
+ client:
1839
+ | 'VC_PLAN_CYCLE'
1840
+ | 'VC_EVENT_DRIVEN_PLAN'
1841
+ | 'CUSTOM'
1842
+ | 'MANUAL_PAYOUT'
1843
+ | 'HRIS_SIGN_ON'
1844
+ | 'OFFLINE_RECOMMENDATION'
1845
+ | 'NEW_HIRE_AGENT';
1846
+
1847
+ /**
1848
+ * Last day of the period the payout covers, as YYYY-MM-DD (inclusive).
1849
+ */
1850
+ effective_end_date: string;
1851
+
1852
+ /**
1853
+ * First day of the period the payout covers, as YYYY-MM-DD (inclusive).
1854
+ */
1855
+ effective_start_date: string;
1856
+
1857
+ /**
1858
+ * External identifier unique per company and client.
1859
+ */
1860
+ external_id: string;
1861
+
1862
+ /**
1863
+ * ID of the worker who receives this payout.
1864
+ */
1865
+ payee_id: string;
1866
+
1867
+ /**
1868
+ * Key of the company payout type used for this payout. List valid keys with GET
1869
+ * /scheduled-payout-types/.
1870
+ */
1871
+ payout_type_id: string;
1872
+
1873
+ /**
1874
+ * Date the payout becomes eligible for release, as YYYY-MM-DD.
1875
+ */
1876
+ scheduled_date: string;
1877
+
1878
+ /**
1879
+ * Optional payout description.
1880
+ */
1881
+ description?: string;
1882
+
1883
+ /**
1884
+ * ID of the group label attached to the payout.
1885
+ */
1886
+ group_label_id?: string;
1887
+
1888
+ /**
1889
+ * Optional payout name.
1890
+ */
1891
+ name?: string;
1892
+
1893
+ /**
1894
+ * ID of the source label attached to the payout.
1895
+ */
1896
+ source_label_id?: string;
1897
+ }
1898
+
1899
+ export namespace ScheduledPayoutCreateParams {
1900
+ /**
1901
+ * Payout amount in the worker's base currency.
1902
+ */
1903
+ export interface AmountBase {
1904
+ /**
1905
+ * The currency type, ex: USD, EUR, etc.
1906
+ */
1907
+ currency_type?: string;
1908
+
1909
+ /**
1910
+ * The decimal amount for the currency.
1911
+ */
1912
+ value?: number;
1913
+ }
1914
+
1915
+ /**
1916
+ * Payout amount converted to USD.
1917
+ */
1918
+ export interface AmountUsd {
1919
+ /**
1920
+ * The currency type, ex: USD, EUR, etc.
1921
+ */
1922
+ currency_type?: string;
1923
+
1924
+ /**
1925
+ * The decimal amount for the currency.
1926
+ */
1927
+ value?: number;
1928
+ }
1929
+ }
1930
+
1931
+ export interface ScheduledPayoutCancelParams {
1932
+ /**
1933
+ * Why the payout is being cancelled. Stored on the payout as cancel_reason.
1934
+ */
1935
+ reason: string;
1936
+ }
1937
+
1938
+ export declare namespace ScheduledPayouts {
1939
+ export {
1940
+ type ScheduledPayoutListResponse as ScheduledPayoutListResponse,
1941
+ type ScheduledPayoutCreateResponse as ScheduledPayoutCreateResponse,
1942
+ type ScheduledPayoutRetrieveResponse as ScheduledPayoutRetrieveResponse,
1943
+ type ScheduledPayoutCancelResponse as ScheduledPayoutCancelResponse,
1944
+ type ScheduledPayoutListResponsesPageCursorURL as ScheduledPayoutListResponsesPageCursorURL,
1945
+ type ScheduledPayoutListParams as ScheduledPayoutListParams,
1946
+ type ScheduledPayoutCreateParams as ScheduledPayoutCreateParams,
1947
+ type ScheduledPayoutCancelParams as ScheduledPayoutCancelParams,
1948
+ };
1949
+ }