@rippling/rippling-sdk 0.2.0-alpha.97 → 0.2.0-alpha.98

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 (95) hide show
  1. package/client.d.mts +25 -4
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts +25 -4
  4. package/client.d.ts.map +1 -1
  5. package/client.js +21 -0
  6. package/client.js.map +1 -1
  7. package/client.mjs +22 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +2 -1
  10. package/resources/index.d.mts +5 -2
  11. package/resources/index.d.mts.map +1 -1
  12. package/resources/index.d.ts +5 -2
  13. package/resources/index.d.ts.map +1 -1
  14. package/resources/index.js +7 -1
  15. package/resources/index.js.map +1 -1
  16. package/resources/index.mjs +4 -1
  17. package/resources/index.mjs.map +1 -1
  18. package/resources/metadata/index.d.mts +1 -1
  19. package/resources/metadata/index.d.mts.map +1 -1
  20. package/resources/metadata/index.d.ts +1 -1
  21. package/resources/metadata/index.d.ts.map +1 -1
  22. package/resources/metadata/index.js.map +1 -1
  23. package/resources/metadata/index.mjs +1 -1
  24. package/resources/metadata/index.mjs.map +1 -1
  25. package/resources/metadata/metadata.d.mts +47 -1
  26. package/resources/metadata/metadata.d.mts.map +1 -1
  27. package/resources/metadata/metadata.d.ts +47 -1
  28. package/resources/metadata/metadata.d.ts.map +1 -1
  29. package/resources/metadata/metadata.js +15 -0
  30. package/resources/metadata/metadata.js.map +1 -1
  31. package/resources/metadata/metadata.mjs +15 -0
  32. package/resources/metadata/metadata.mjs.map +1 -1
  33. package/resources/sandboxes.d.mts +224 -1
  34. package/resources/sandboxes.d.mts.map +1 -1
  35. package/resources/sandboxes.d.ts +224 -1
  36. package/resources/sandboxes.d.ts.map +1 -1
  37. package/resources/sandboxes.js +6 -0
  38. package/resources/sandboxes.js.map +1 -1
  39. package/resources/sandboxes.mjs +6 -0
  40. package/resources/sandboxes.mjs.map +1 -1
  41. package/resources/sites.d.mts +3 -0
  42. package/resources/sites.d.mts.map +1 -1
  43. package/resources/sites.d.ts +3 -0
  44. package/resources/sites.d.ts.map +1 -1
  45. package/resources/sites.js +3 -0
  46. package/resources/sites.js.map +1 -1
  47. package/resources/sites.mjs +3 -0
  48. package/resources/sites.mjs.map +1 -1
  49. package/resources/variable-compensation-payout-labels.d.mts +155 -0
  50. package/resources/variable-compensation-payout-labels.d.mts.map +1 -0
  51. package/resources/variable-compensation-payout-labels.d.ts +155 -0
  52. package/resources/variable-compensation-payout-labels.d.ts.map +1 -0
  53. package/resources/variable-compensation-payout-labels.js +41 -0
  54. package/resources/variable-compensation-payout-labels.js.map +1 -0
  55. package/resources/variable-compensation-payout-labels.mjs +37 -0
  56. package/resources/variable-compensation-payout-labels.mjs.map +1 -0
  57. package/resources/variable-compensation-payout-types.d.mts +334 -0
  58. package/resources/variable-compensation-payout-types.d.mts.map +1 -0
  59. package/resources/variable-compensation-payout-types.d.ts +334 -0
  60. package/resources/variable-compensation-payout-types.d.ts.map +1 -0
  61. package/resources/variable-compensation-payout-types.js +52 -0
  62. package/resources/variable-compensation-payout-types.js.map +1 -0
  63. package/resources/variable-compensation-payout-types.mjs +48 -0
  64. package/resources/variable-compensation-payout-types.mjs.map +1 -0
  65. package/resources/variable-compensation-payout-writes.d.mts +6 -17
  66. package/resources/variable-compensation-payout-writes.d.mts.map +1 -1
  67. package/resources/variable-compensation-payout-writes.d.ts +6 -17
  68. package/resources/variable-compensation-payout-writes.d.ts.map +1 -1
  69. package/resources/variable-compensation-payout-writes.js +2 -1
  70. package/resources/variable-compensation-payout-writes.js.map +1 -1
  71. package/resources/variable-compensation-payout-writes.mjs +2 -1
  72. package/resources/variable-compensation-payout-writes.mjs.map +1 -1
  73. package/resources/variable-compensation-payouts.d.mts +501 -0
  74. package/resources/variable-compensation-payouts.d.mts.map +1 -0
  75. package/resources/variable-compensation-payouts.d.ts +501 -0
  76. package/resources/variable-compensation-payouts.d.ts.map +1 -0
  77. package/resources/variable-compensation-payouts.js +41 -0
  78. package/resources/variable-compensation-payouts.js.map +1 -0
  79. package/resources/variable-compensation-payouts.mjs +37 -0
  80. package/resources/variable-compensation-payouts.mjs.map +1 -0
  81. package/src/client.ts +94 -1
  82. package/src/resources/index.ts +38 -1
  83. package/src/resources/metadata/index.ts +7 -1
  84. package/src/resources/metadata/metadata.ts +54 -0
  85. package/src/resources/sandboxes.ts +265 -0
  86. package/src/resources/sites.ts +3 -0
  87. package/src/resources/variable-compensation-payout-labels.ts +227 -0
  88. package/src/resources/variable-compensation-payout-types.ts +440 -0
  89. package/src/resources/variable-compensation-payout-writes.ts +6 -20
  90. package/src/resources/variable-compensation-payouts.ts +702 -0
  91. package/src/version.ts +1 -1
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
@@ -0,0 +1,702 @@
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 { APIPromise } from '../core/api-promise';
6
+ import { PageCursorURL, PagePromise } from '../core/pagination';
7
+ import { RequestOptions } from '../internal/request-options';
8
+ import { path } from '../internal/utils/path';
9
+
10
+ /**
11
+ * Compensation associated with workers
12
+ */
13
+ export class VariableCompensationPayouts extends APIResource {
14
+ /**
15
+ * A list of variable compensation payouts.
16
+ *
17
+ * - Requires: `API Tier 1`
18
+ */
19
+ list(
20
+ query: VariableCompensationPayoutListParams | null | undefined = {},
21
+ options?: RequestOptions,
22
+ ): PagePromise<
23
+ VariableCompensationPayoutListResponsesPageCursorURL,
24
+ VariableCompensationPayoutListResponse
25
+ > {
26
+ return this._client.getAPIList(
27
+ '/variable-compensation-payouts/',
28
+ PageCursorURL<VariableCompensationPayoutListResponse>,
29
+ { query, ...options },
30
+ );
31
+ }
32
+
33
+ /**
34
+ * Create or update one payout. Identity is (client, external_id), not id. Same key
35
+ * and same body replays with 200. Same key and a different body overwrites a
36
+ * SCHEDULED row when the caller can edit scheduled payouts; otherwise 403.
37
+ * RELEASED rows return 409. New identities return 201. This writes ledger rows;
38
+ * POST /variable-compensation-payout-writes/ submits a payout into payroll.
39
+ * Payroll-sync side effects (paystub_id, outbox) — VC PM / Payroll PM ack required
40
+ * before GA beyond private scopes.
41
+ */
42
+ create(
43
+ body: VariableCompensationPayoutCreateParams,
44
+ options?: RequestOptions,
45
+ ): APIPromise<VariableCompensationPayoutCreateResponse> {
46
+ return this._client.post('/variable-compensation-payouts/', { body, ...options });
47
+ }
48
+
49
+ /**
50
+ * Retrieve a specific variable compensation payout. Uses the company admin payout
51
+ * rowset; callers without admin payout visibility receive NotFound.
52
+ */
53
+ retrieve(id: string, options?: RequestOptions): APIPromise<VariableCompensationPayoutRetrieveResponse> {
54
+ return this._client.get(path`/variable-compensation-payouts/${id}/`, options);
55
+ }
56
+ }
57
+
58
+ export type VariableCompensationPayoutListResponsesPageCursorURL =
59
+ PageCursorURL<VariableCompensationPayoutListResponse>;
60
+
61
+ export interface VariableCompensationPayoutListResponse {
62
+ /**
63
+ * Unique identifier of the payout.
64
+ */
65
+ id: string;
66
+
67
+ /**
68
+ * Payout amount in the worker's base currency.
69
+ */
70
+ amount_base: VariableCompensationPayoutListResponse.AmountBase;
71
+
72
+ /**
73
+ * Payout amount converted to USD.
74
+ */
75
+ amount_usd: VariableCompensationPayoutListResponse.AmountUsd;
76
+
77
+ /**
78
+ * Client system that created the payout.
79
+ */
80
+ client:
81
+ | 'VC_PLAN_CYCLE'
82
+ | 'VC_EVENT_DRIVEN_PLAN'
83
+ | 'CUSTOM'
84
+ | 'MANUAL_PAYOUT'
85
+ | 'HRIS_SIGN_ON'
86
+ | 'OFFLINE_RECOMMENDATION';
87
+
88
+ /**
89
+ * When the payout was created.
90
+ */
91
+ created_at: string;
92
+
93
+ /**
94
+ * End date of the covered pay period.
95
+ */
96
+ effective_end_date: string;
97
+
98
+ /**
99
+ * Start date of the covered pay period.
100
+ */
101
+ effective_start_date: string;
102
+
103
+ /**
104
+ * External identifier unique per company and client.
105
+ */
106
+ external_id: string;
107
+
108
+ /**
109
+ * ID of the worker who receives this payout. Expandable payee (Worker DTO +
110
+ * workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
111
+ */
112
+ payee_id: string;
113
+
114
+ /**
115
+ * Key of the company payout type used for this payout. Expand is deferred from v1;
116
+ * enumerate valid keys via GET /variable-compensation-payout-types/.
117
+ */
118
+ payout_type: string;
119
+
120
+ /**
121
+ * Date on which the payout is scheduled.
122
+ */
123
+ scheduled_date: string;
124
+
125
+ /**
126
+ * Current payout status.
127
+ */
128
+ status:
129
+ | 'DRAFT'
130
+ | 'STAGING'
131
+ | 'PENDING_APPROVAL'
132
+ | 'APPROVAL_REJECTED'
133
+ | 'SCHEDULED'
134
+ | 'RELEASED'
135
+ | 'PAID'
136
+ | 'FORFEITED'
137
+ | 'EVALUATION_FAILED'
138
+ | 'CANCELLED';
139
+
140
+ /**
141
+ * When the payout was last updated.
142
+ */
143
+ updated_at: string;
144
+
145
+ /**
146
+ * Reason provided when the payout was cancelled.
147
+ */
148
+ cancel_reason?: string;
149
+
150
+ /**
151
+ * Optional payout description.
152
+ */
153
+ description?: string;
154
+
155
+ /**
156
+ * Group label identifier attached to the payout. Expand is deferred from v1; use
157
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
158
+ */
159
+ group_label_id?: string;
160
+
161
+ /**
162
+ * Optional payout name.
163
+ */
164
+ name?: string;
165
+
166
+ /**
167
+ * Payroll earning code resolved from the payout type.
168
+ */
169
+ pay_classification?: string;
170
+
171
+ /**
172
+ * Paystub identifier when the payout has been synced to payroll.
173
+ */
174
+ paystub_id?: string;
175
+
176
+ /**
177
+ * Source label identifier attached to the payout. Expand is deferred from v1; use
178
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
179
+ */
180
+ source_label_id?: string;
181
+ }
182
+
183
+ export namespace VariableCompensationPayoutListResponse {
184
+ /**
185
+ * Payout amount in the worker's base currency.
186
+ */
187
+ export interface AmountBase {
188
+ /**
189
+ * Three-letter currency code.
190
+ */
191
+ currency_type: string;
192
+
193
+ /**
194
+ * Decimal amount encoded as a string.
195
+ */
196
+ value: string;
197
+ }
198
+
199
+ /**
200
+ * Payout amount converted to USD.
201
+ */
202
+ export interface AmountUsd {
203
+ /**
204
+ * Three-letter currency code.
205
+ */
206
+ currency_type: string;
207
+
208
+ /**
209
+ * Decimal amount encoded as a string.
210
+ */
211
+ value: string;
212
+ }
213
+ }
214
+
215
+ export interface VariableCompensationPayoutCreateResponse {
216
+ /**
217
+ * Unique identifier of the payout.
218
+ */
219
+ id: string;
220
+
221
+ /**
222
+ * Payout amount in the worker's base currency.
223
+ */
224
+ amount_base: VariableCompensationPayoutCreateResponse.AmountBase;
225
+
226
+ /**
227
+ * Payout amount converted to USD.
228
+ */
229
+ amount_usd: VariableCompensationPayoutCreateResponse.AmountUsd;
230
+
231
+ /**
232
+ * Client system that created the payout.
233
+ */
234
+ client:
235
+ | 'VC_PLAN_CYCLE'
236
+ | 'VC_EVENT_DRIVEN_PLAN'
237
+ | 'CUSTOM'
238
+ | 'MANUAL_PAYOUT'
239
+ | 'HRIS_SIGN_ON'
240
+ | 'OFFLINE_RECOMMENDATION';
241
+
242
+ /**
243
+ * When the payout was created.
244
+ */
245
+ created_at: string;
246
+
247
+ /**
248
+ * End date of the covered pay period.
249
+ */
250
+ effective_end_date: string;
251
+
252
+ /**
253
+ * Start date of the covered pay period.
254
+ */
255
+ effective_start_date: string;
256
+
257
+ /**
258
+ * External identifier unique per company and client.
259
+ */
260
+ external_id: string;
261
+
262
+ /**
263
+ * ID of the worker who receives this payout. Expandable payee (Worker DTO +
264
+ * workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
265
+ */
266
+ payee_id: string;
267
+
268
+ /**
269
+ * Key of the company payout type used for this payout. Expand is deferred from v1;
270
+ * enumerate valid keys via GET /variable-compensation-payout-types/.
271
+ */
272
+ payout_type: string;
273
+
274
+ /**
275
+ * Date on which the payout is scheduled.
276
+ */
277
+ scheduled_date: string;
278
+
279
+ /**
280
+ * Current payout status.
281
+ */
282
+ status:
283
+ | 'DRAFT'
284
+ | 'STAGING'
285
+ | 'PENDING_APPROVAL'
286
+ | 'APPROVAL_REJECTED'
287
+ | 'SCHEDULED'
288
+ | 'RELEASED'
289
+ | 'PAID'
290
+ | 'FORFEITED'
291
+ | 'EVALUATION_FAILED'
292
+ | 'CANCELLED';
293
+
294
+ /**
295
+ * When the payout was last updated.
296
+ */
297
+ updated_at: string;
298
+
299
+ /**
300
+ * Reason provided when the payout was cancelled.
301
+ */
302
+ cancel_reason?: string;
303
+
304
+ /**
305
+ * Optional payout description.
306
+ */
307
+ description?: string;
308
+
309
+ /**
310
+ * Group label identifier attached to the payout. Expand is deferred from v1; use
311
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
312
+ */
313
+ group_label_id?: string;
314
+
315
+ /**
316
+ * Optional payout name.
317
+ */
318
+ name?: string;
319
+
320
+ /**
321
+ * Payroll earning code resolved from the payout type.
322
+ */
323
+ pay_classification?: string;
324
+
325
+ /**
326
+ * Paystub identifier when the payout has been synced to payroll.
327
+ */
328
+ paystub_id?: string;
329
+
330
+ /**
331
+ * Source label identifier attached to the payout. Expand is deferred from v1; use
332
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
333
+ */
334
+ source_label_id?: string;
335
+ }
336
+
337
+ export namespace VariableCompensationPayoutCreateResponse {
338
+ /**
339
+ * Payout amount in the worker's base currency.
340
+ */
341
+ export interface AmountBase {
342
+ /**
343
+ * Three-letter currency code.
344
+ */
345
+ currency_type: string;
346
+
347
+ /**
348
+ * Decimal amount encoded as a string.
349
+ */
350
+ value: string;
351
+ }
352
+
353
+ /**
354
+ * Payout amount converted to USD.
355
+ */
356
+ export interface AmountUsd {
357
+ /**
358
+ * Three-letter currency code.
359
+ */
360
+ currency_type: string;
361
+
362
+ /**
363
+ * Decimal amount encoded as a string.
364
+ */
365
+ value: string;
366
+ }
367
+ }
368
+
369
+ /**
370
+ * Meta information for the response.
371
+ */
372
+ export interface VariableCompensationPayoutRetrieveResponse extends BusinessPartnersAPI.Meta {
373
+ /**
374
+ * Unique identifier of the payout.
375
+ */
376
+ id: string;
377
+
378
+ /**
379
+ * Payout amount in the worker's base currency.
380
+ */
381
+ amount_base: VariableCompensationPayoutRetrieveResponse.AmountBase;
382
+
383
+ /**
384
+ * Payout amount converted to USD.
385
+ */
386
+ amount_usd: VariableCompensationPayoutRetrieveResponse.AmountUsd;
387
+
388
+ /**
389
+ * Client system that created the payout.
390
+ */
391
+ client:
392
+ | 'VC_PLAN_CYCLE'
393
+ | 'VC_EVENT_DRIVEN_PLAN'
394
+ | 'CUSTOM'
395
+ | 'MANUAL_PAYOUT'
396
+ | 'HRIS_SIGN_ON'
397
+ | 'OFFLINE_RECOMMENDATION';
398
+
399
+ /**
400
+ * When the payout was created.
401
+ */
402
+ created_at: string;
403
+
404
+ /**
405
+ * End date of the covered pay period.
406
+ */
407
+ effective_end_date: string;
408
+
409
+ /**
410
+ * Start date of the covered pay period.
411
+ */
412
+ effective_start_date: string;
413
+
414
+ /**
415
+ * External identifier unique per company and client.
416
+ */
417
+ external_id: string;
418
+
419
+ /**
420
+ * ID of the worker who receives this payout. Expandable payee (Worker DTO +
421
+ * workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
422
+ */
423
+ payee_id: string;
424
+
425
+ /**
426
+ * Key of the company payout type used for this payout. Expand is deferred from v1;
427
+ * enumerate valid keys via GET /variable-compensation-payout-types/.
428
+ */
429
+ payout_type: string;
430
+
431
+ /**
432
+ * Date on which the payout is scheduled.
433
+ */
434
+ scheduled_date: string;
435
+
436
+ /**
437
+ * Current payout status.
438
+ */
439
+ status:
440
+ | 'DRAFT'
441
+ | 'STAGING'
442
+ | 'PENDING_APPROVAL'
443
+ | 'APPROVAL_REJECTED'
444
+ | 'SCHEDULED'
445
+ | 'RELEASED'
446
+ | 'PAID'
447
+ | 'FORFEITED'
448
+ | 'EVALUATION_FAILED'
449
+ | 'CANCELLED';
450
+
451
+ /**
452
+ * When the payout was last updated.
453
+ */
454
+ updated_at: string;
455
+
456
+ /**
457
+ * Reason provided when the payout was cancelled.
458
+ */
459
+ cancel_reason?: string;
460
+
461
+ /**
462
+ * Optional payout description.
463
+ */
464
+ description?: string;
465
+
466
+ /**
467
+ * Group label identifier attached to the payout. Expand is deferred from v1; use
468
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
469
+ */
470
+ group_label_id?: string;
471
+
472
+ /**
473
+ * Optional payout name.
474
+ */
475
+ name?: string;
476
+
477
+ /**
478
+ * Payroll earning code resolved from the payout type.
479
+ */
480
+ pay_classification?: string;
481
+
482
+ /**
483
+ * Paystub identifier when the payout has been synced to payroll.
484
+ */
485
+ paystub_id?: string;
486
+
487
+ /**
488
+ * Source label identifier attached to the payout. Expand is deferred from v1; use
489
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
490
+ */
491
+ source_label_id?: string;
492
+ }
493
+
494
+ export namespace VariableCompensationPayoutRetrieveResponse {
495
+ /**
496
+ * Payout amount in the worker's base currency.
497
+ */
498
+ export interface AmountBase {
499
+ /**
500
+ * Three-letter currency code.
501
+ */
502
+ currency_type: string;
503
+
504
+ /**
505
+ * Decimal amount encoded as a string.
506
+ */
507
+ value: string;
508
+ }
509
+
510
+ /**
511
+ * Payout amount converted to USD.
512
+ */
513
+ export interface AmountUsd {
514
+ /**
515
+ * Three-letter currency code.
516
+ */
517
+ currency_type: string;
518
+
519
+ /**
520
+ * Decimal amount encoded as a string.
521
+ */
522
+ value: string;
523
+ }
524
+ }
525
+
526
+ export interface VariableCompensationPayoutListParams {
527
+ /**
528
+ * Client system that created the payout.
529
+ */
530
+ client?:
531
+ | 'VC_PLAN_CYCLE'
532
+ | 'VC_EVENT_DRIVEN_PLAN'
533
+ | 'CUSTOM'
534
+ | 'MANUAL_PAYOUT'
535
+ | 'HRIS_SIGN_ON'
536
+ | 'OFFLINE_RECOMMENDATION';
537
+
538
+ /**
539
+ * Opaque pagination cursor from the previous page's next_link.
540
+ */
541
+ cursor?: string;
542
+
543
+ /**
544
+ * External identifier unique per company and client.
545
+ */
546
+ external_id?: string;
547
+
548
+ /**
549
+ * Group label identifier attached to the payout.
550
+ */
551
+ group_label_id?: string;
552
+
553
+ /**
554
+ * Page size. Defaults to 50. Maximum 100.
555
+ */
556
+ limit?: number;
557
+
558
+ /**
559
+ * ID of the worker who receives this payout.
560
+ */
561
+ payee_id?: string;
562
+
563
+ /**
564
+ * Source label identifier attached to the payout.
565
+ */
566
+ source_label_id?: string;
567
+
568
+ /**
569
+ * Current payout status.
570
+ */
571
+ status?:
572
+ | 'DRAFT'
573
+ | 'STAGING'
574
+ | 'PENDING_APPROVAL'
575
+ | 'APPROVAL_REJECTED'
576
+ | 'SCHEDULED'
577
+ | 'RELEASED'
578
+ | 'PAID'
579
+ | 'FORFEITED'
580
+ | 'EVALUATION_FAILED'
581
+ | 'CANCELLED';
582
+ }
583
+
584
+ export interface VariableCompensationPayoutCreateParams {
585
+ /**
586
+ * Payout amount in the worker's base currency.
587
+ */
588
+ amount_base: VariableCompensationPayoutCreateParams.AmountBase;
589
+
590
+ /**
591
+ * Payout amount converted to USD.
592
+ */
593
+ amount_usd: VariableCompensationPayoutCreateParams.AmountUsd;
594
+
595
+ /**
596
+ * Client system that created the payout.
597
+ */
598
+ client:
599
+ | 'VC_PLAN_CYCLE'
600
+ | 'VC_EVENT_DRIVEN_PLAN'
601
+ | 'CUSTOM'
602
+ | 'MANUAL_PAYOUT'
603
+ | 'HRIS_SIGN_ON'
604
+ | 'OFFLINE_RECOMMENDATION';
605
+
606
+ /**
607
+ * End date of the covered pay period.
608
+ */
609
+ effective_end_date: string;
610
+
611
+ /**
612
+ * Start date of the covered pay period.
613
+ */
614
+ effective_start_date: string;
615
+
616
+ /**
617
+ * External identifier unique per company and client.
618
+ */
619
+ external_id: string;
620
+
621
+ /**
622
+ * ID of the worker who receives this payout. Expandable payee (Worker DTO +
623
+ * workers.read) is deferred from v1; use GET /workers/{id}/ when needed.
624
+ */
625
+ payee_id: string;
626
+
627
+ /**
628
+ * Key of the company payout type used for this payout. Expand is deferred from v1;
629
+ * enumerate valid keys via GET /variable-compensation-payout-types/.
630
+ */
631
+ payout_type: string;
632
+
633
+ /**
634
+ * Date on which the payout is scheduled.
635
+ */
636
+ scheduled_date: string;
637
+
638
+ /**
639
+ * Optional payout description.
640
+ */
641
+ description?: string;
642
+
643
+ /**
644
+ * Group label identifier attached to the payout. Expand is deferred from v1; use
645
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
646
+ */
647
+ group_label_id?: string;
648
+
649
+ /**
650
+ * Optional payout name.
651
+ */
652
+ name?: string;
653
+
654
+ /**
655
+ * Source label identifier attached to the payout. Expand is deferred from v1; use
656
+ * GET /variable-compensation-payout-labels/{id}/ when needed.
657
+ */
658
+ source_label_id?: string;
659
+ }
660
+
661
+ export namespace VariableCompensationPayoutCreateParams {
662
+ /**
663
+ * Payout amount in the worker's base currency.
664
+ */
665
+ export interface AmountBase {
666
+ /**
667
+ * Three-letter currency code.
668
+ */
669
+ currency_type: string;
670
+
671
+ /**
672
+ * Decimal amount encoded as a string.
673
+ */
674
+ value: string;
675
+ }
676
+
677
+ /**
678
+ * Payout amount converted to USD.
679
+ */
680
+ export interface AmountUsd {
681
+ /**
682
+ * Three-letter currency code.
683
+ */
684
+ currency_type: string;
685
+
686
+ /**
687
+ * Decimal amount encoded as a string.
688
+ */
689
+ value: string;
690
+ }
691
+ }
692
+
693
+ export declare namespace VariableCompensationPayouts {
694
+ export {
695
+ type VariableCompensationPayoutListResponse as VariableCompensationPayoutListResponse,
696
+ type VariableCompensationPayoutCreateResponse as VariableCompensationPayoutCreateResponse,
697
+ type VariableCompensationPayoutRetrieveResponse as VariableCompensationPayoutRetrieveResponse,
698
+ type VariableCompensationPayoutListResponsesPageCursorURL as VariableCompensationPayoutListResponsesPageCursorURL,
699
+ type VariableCompensationPayoutListParams as VariableCompensationPayoutListParams,
700
+ type VariableCompensationPayoutCreateParams as VariableCompensationPayoutCreateParams,
701
+ };
702
+ }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.2.0-alpha.97'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.98'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.97";
1
+ export declare const VERSION = "0.2.0-alpha.98";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.2.0-alpha.97";
1
+ export declare const VERSION = "0.2.0-alpha.98";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.2.0-alpha.97'; // x-release-please-version
4
+ exports.VERSION = '0.2.0-alpha.98'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.2.0-alpha.97'; // x-release-please-version
1
+ export const VERSION = '0.2.0-alpha.98'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map