-
Notifications
You must be signed in to change notification settings - Fork 0
/
hrisbenefit.go
569 lines (490 loc) · 21.1 KB
/
hrisbenefit.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package finchgo
import (
"context"
"errors"
"fmt"
"net/http"
"github.com/Finch-API/finch-api-go/internal/apijson"
"github.com/Finch-API/finch-api-go/internal/param"
"github.com/Finch-API/finch-api-go/internal/requestconfig"
"github.com/Finch-API/finch-api-go/option"
"github.com/Finch-API/finch-api-go/packages/pagination"
"github.com/Finch-API/finch-api-go/shared"
)
// HRISBenefitService contains methods and other services that help with
// interacting with the Finch API.
//
// Note, unlike clients, this service does not read variables from the environment
// automatically. You should not instantiate this service directly, and instead use
// the [NewHRISBenefitService] method instead.
type HRISBenefitService struct {
Options []option.RequestOption
Individuals *HRISBenefitIndividualService
}
// NewHRISBenefitService generates a new service that applies the given options to
// each request. These options are applied after the parent client's options (if
// there is one), and before any request-specific options.
func NewHRISBenefitService(opts ...option.RequestOption) (r *HRISBenefitService) {
r = &HRISBenefitService{}
r.Options = opts
r.Individuals = NewHRISBenefitIndividualService(opts...)
return
}
// Creates a new company-wide deduction or contribution. Please use the
// `/providers` endpoint to view available types for each provider.
func (r *HRISBenefitService) New(ctx context.Context, body HRISBenefitNewParams, opts ...option.RequestOption) (res *CreateCompanyBenefitsResponse, err error) {
opts = append(r.Options[:], opts...)
path := "employer/benefits"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// Lists deductions and contributions information for a given item
func (r *HRISBenefitService) Get(ctx context.Context, benefitID string, opts ...option.RequestOption) (res *CompanyBenefit, err error) {
opts = append(r.Options[:], opts...)
if benefitID == "" {
err = errors.New("missing required benefit_id parameter")
return
}
path := fmt.Sprintf("employer/benefits/%s", benefitID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
}
// Updates an existing company-wide deduction or contribution
func (r *HRISBenefitService) Update(ctx context.Context, benefitID string, body HRISBenefitUpdateParams, opts ...option.RequestOption) (res *UpdateCompanyBenefitResponse, err error) {
opts = append(r.Options[:], opts...)
if benefitID == "" {
err = errors.New("missing required benefit_id parameter")
return
}
path := fmt.Sprintf("employer/benefits/%s", benefitID)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// List all company-wide deductions and contributions.
func (r *HRISBenefitService) List(ctx context.Context, opts ...option.RequestOption) (res *pagination.SinglePage[CompanyBenefit], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
path := "employer/benefits"
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, nil, &res, opts...)
if err != nil {
return nil, err
}
err = cfg.Execute()
if err != nil {
return nil, err
}
res.SetPageConfig(cfg, raw)
return res, nil
}
// List all company-wide deductions and contributions.
func (r *HRISBenefitService) ListAutoPaging(ctx context.Context, opts ...option.RequestOption) *pagination.SinglePageAutoPager[CompanyBenefit] {
return pagination.NewSinglePageAutoPager(r.List(ctx, opts...))
}
// Get deductions metadata
func (r *HRISBenefitService) ListSupportedBenefits(ctx context.Context, opts ...option.RequestOption) (res *pagination.SinglePage[SupportedBenefit], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
path := "employer/benefits/meta"
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, nil, &res, opts...)
if err != nil {
return nil, err
}
err = cfg.Execute()
if err != nil {
return nil, err
}
res.SetPageConfig(cfg, raw)
return res, nil
}
// Get deductions metadata
func (r *HRISBenefitService) ListSupportedBenefitsAutoPaging(ctx context.Context, opts ...option.RequestOption) *pagination.SinglePageAutoPager[SupportedBenefit] {
return pagination.NewSinglePageAutoPager(r.ListSupportedBenefits(ctx, opts...))
}
type BenefitContribution struct {
// Contribution amount in cents (if `fixed`) or basis points (if `percent`).
Amount int64 `json:"amount,nullable"`
// Contribution type.
Type BenefitContributionType `json:"type,nullable"`
JSON benefitContributionJSON `json:"-"`
}
// benefitContributionJSON contains the JSON metadata for the struct
// [BenefitContribution]
type benefitContributionJSON struct {
Amount apijson.Field
Type apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *BenefitContribution) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r benefitContributionJSON) RawJSON() string {
return r.raw
}
// Contribution type.
type BenefitContributionType string
const (
BenefitContributionTypeFixed BenefitContributionType = "fixed"
BenefitContributionTypePercent BenefitContributionType = "percent"
)
func (r BenefitContributionType) IsKnown() bool {
switch r {
case BenefitContributionTypeFixed, BenefitContributionTypePercent:
return true
}
return false
}
type BenefitFeaturesAndOperations struct {
SupportedFeatures BenefitFeaturesAndOperationsSupportedFeatures `json:"supported_features"`
SupportedOperations SupportPerBenefitType `json:"supported_operations"`
JSON benefitFeaturesAndOperationsJSON `json:"-"`
}
// benefitFeaturesAndOperationsJSON contains the JSON metadata for the struct
// [BenefitFeaturesAndOperations]
type benefitFeaturesAndOperationsJSON struct {
SupportedFeatures apijson.Field
SupportedOperations apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *BenefitFeaturesAndOperations) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r benefitFeaturesAndOperationsJSON) RawJSON() string {
return r.raw
}
type BenefitFeaturesAndOperationsSupportedFeatures struct {
// Whether the provider supports an annual maximum for this benefit.
AnnualMaximum bool `json:"annual_maximum,nullable"`
// Whether the provider supports catch up for this benefit. This field will only be
// true for retirement benefits.
CatchUp bool `json:"catch_up,nullable"`
// Supported contribution types. An empty array indicates contributions are not
// supported.
CompanyContribution []BenefitFeaturesAndOperationsSupportedFeaturesCompanyContribution `json:"company_contribution,nullable"`
Description string `json:"description,nullable"`
// Supported deduction types. An empty array indicates deductions are not
// supported.
EmployeeDeduction []BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeduction `json:"employee_deduction,nullable"`
// The list of frequencies supported by the provider for this benefit
Frequencies []BenefitFrequency `json:"frequencies"`
// Whether the provider supports HSA contribution limits. Empty if this feature is
// not supported for the benefit. This array only has values for HSA benefits.
HsaContributionLimit []BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimit `json:"hsa_contribution_limit,nullable"`
JSON benefitFeaturesAndOperationsSupportedFeaturesJSON `json:"-"`
}
// benefitFeaturesAndOperationsSupportedFeaturesJSON contains the JSON metadata for
// the struct [BenefitFeaturesAndOperationsSupportedFeatures]
type benefitFeaturesAndOperationsSupportedFeaturesJSON struct {
AnnualMaximum apijson.Field
CatchUp apijson.Field
CompanyContribution apijson.Field
Description apijson.Field
EmployeeDeduction apijson.Field
Frequencies apijson.Field
HsaContributionLimit apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *BenefitFeaturesAndOperationsSupportedFeatures) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r benefitFeaturesAndOperationsSupportedFeaturesJSON) RawJSON() string {
return r.raw
}
type BenefitFeaturesAndOperationsSupportedFeaturesCompanyContribution string
const (
BenefitFeaturesAndOperationsSupportedFeaturesCompanyContributionFixed BenefitFeaturesAndOperationsSupportedFeaturesCompanyContribution = "fixed"
BenefitFeaturesAndOperationsSupportedFeaturesCompanyContributionPercent BenefitFeaturesAndOperationsSupportedFeaturesCompanyContribution = "percent"
)
func (r BenefitFeaturesAndOperationsSupportedFeaturesCompanyContribution) IsKnown() bool {
switch r {
case BenefitFeaturesAndOperationsSupportedFeaturesCompanyContributionFixed, BenefitFeaturesAndOperationsSupportedFeaturesCompanyContributionPercent:
return true
}
return false
}
type BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeduction string
const (
BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeductionFixed BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeduction = "fixed"
BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeductionPercent BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeduction = "percent"
)
func (r BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeduction) IsKnown() bool {
switch r {
case BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeductionFixed, BenefitFeaturesAndOperationsSupportedFeaturesEmployeeDeductionPercent:
return true
}
return false
}
type BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimit string
const (
BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimitIndividual BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimit = "individual"
BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimitFamily BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimit = "family"
)
func (r BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimit) IsKnown() bool {
switch r {
case BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimitIndividual, BenefitFeaturesAndOperationsSupportedFeaturesHsaContributionLimitFamily:
return true
}
return false
}
type BenefitFrequency string
const (
BenefitFrequencyOneTime BenefitFrequency = "one_time"
BenefitFrequencyEveryPaycheck BenefitFrequency = "every_paycheck"
BenefitFrequencyMonthly BenefitFrequency = "monthly"
)
func (r BenefitFrequency) IsKnown() bool {
switch r {
case BenefitFrequencyOneTime, BenefitFrequencyEveryPaycheck, BenefitFrequencyMonthly:
return true
}
return false
}
// Type of benefit.
type BenefitType string
const (
BenefitType_401k BenefitType = "401k"
BenefitType_401kRoth BenefitType = "401k_roth"
BenefitType_401kLoan BenefitType = "401k_loan"
BenefitType_403b BenefitType = "403b"
BenefitType_403bRoth BenefitType = "403b_roth"
BenefitType_457 BenefitType = "457"
BenefitType_457Roth BenefitType = "457_roth"
BenefitTypeS125Medical BenefitType = "s125_medical"
BenefitTypeS125Dental BenefitType = "s125_dental"
BenefitTypeS125Vision BenefitType = "s125_vision"
BenefitTypeHsaPre BenefitType = "hsa_pre"
BenefitTypeHsaPost BenefitType = "hsa_post"
BenefitTypeFsaMedical BenefitType = "fsa_medical"
BenefitTypeFsaDependentCare BenefitType = "fsa_dependent_care"
BenefitTypeSimpleIRA BenefitType = "simple_ira"
BenefitTypeSimple BenefitType = "simple"
BenefitTypeCommuter BenefitType = "commuter"
BenefitTypeCustomPostTax BenefitType = "custom_post_tax"
BenefitTypeCustomPreTax BenefitType = "custom_pre_tax"
)
func (r BenefitType) IsKnown() bool {
switch r {
case BenefitType_401k, BenefitType_401kRoth, BenefitType_401kLoan, BenefitType_403b, BenefitType_403bRoth, BenefitType_457, BenefitType_457Roth, BenefitTypeS125Medical, BenefitTypeS125Dental, BenefitTypeS125Vision, BenefitTypeHsaPre, BenefitTypeHsaPost, BenefitTypeFsaMedical, BenefitTypeFsaDependentCare, BenefitTypeSimpleIRA, BenefitTypeSimple, BenefitTypeCommuter, BenefitTypeCustomPostTax, BenefitTypeCustomPreTax:
return true
}
return false
}
// Each benefit type and their supported features. If the benefit type is not
// supported, the property will be null
type BenefitsSupport struct {
Commuter BenefitFeaturesAndOperations `json:"commuter,nullable"`
CustomPostTax BenefitFeaturesAndOperations `json:"custom_post_tax,nullable"`
CustomPreTax BenefitFeaturesAndOperations `json:"custom_pre_tax,nullable"`
FsaDependentCare BenefitFeaturesAndOperations `json:"fsa_dependent_care,nullable"`
FsaMedical BenefitFeaturesAndOperations `json:"fsa_medical,nullable"`
HsaPost BenefitFeaturesAndOperations `json:"hsa_post,nullable"`
HsaPre BenefitFeaturesAndOperations `json:"hsa_pre,nullable"`
S125Dental BenefitFeaturesAndOperations `json:"s125_dental,nullable"`
S125Medical BenefitFeaturesAndOperations `json:"s125_medical,nullable"`
S125Vision BenefitFeaturesAndOperations `json:"s125_vision,nullable"`
Simple BenefitFeaturesAndOperations `json:"simple,nullable"`
SimpleIRA BenefitFeaturesAndOperations `json:"simple_ira,nullable"`
ExtraFields map[string]BenefitFeaturesAndOperations `json:"-,extras"`
JSON benefitsSupportJSON `json:"-"`
}
// benefitsSupportJSON contains the JSON metadata for the struct [BenefitsSupport]
type benefitsSupportJSON struct {
Commuter apijson.Field
CustomPostTax apijson.Field
CustomPreTax apijson.Field
FsaDependentCare apijson.Field
FsaMedical apijson.Field
HsaPost apijson.Field
HsaPre apijson.Field
S125Dental apijson.Field
S125Medical apijson.Field
S125Vision apijson.Field
Simple apijson.Field
SimpleIRA apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *BenefitsSupport) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r benefitsSupportJSON) RawJSON() string {
return r.raw
}
type CompanyBenefit struct {
BenefitID string `json:"benefit_id,required"`
Description string `json:"description,required,nullable"`
Frequency BenefitFrequency `json:"frequency,required,nullable"`
// Type of benefit.
Type BenefitType `json:"type,required,nullable"`
JSON companyBenefitJSON `json:"-"`
}
// companyBenefitJSON contains the JSON metadata for the struct [CompanyBenefit]
type companyBenefitJSON struct {
BenefitID apijson.Field
Description apijson.Field
Frequency apijson.Field
Type apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *CompanyBenefit) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r companyBenefitJSON) RawJSON() string {
return r.raw
}
type CreateCompanyBenefitsResponse struct {
BenefitID string `json:"benefit_id,required"`
JSON createCompanyBenefitsResponseJSON `json:"-"`
}
// createCompanyBenefitsResponseJSON contains the JSON metadata for the struct
// [CreateCompanyBenefitsResponse]
type createCompanyBenefitsResponseJSON struct {
BenefitID apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *CreateCompanyBenefitsResponse) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r createCompanyBenefitsResponseJSON) RawJSON() string {
return r.raw
}
type SupportPerBenefitType struct {
CompanyBenefits shared.OperationSupportMatrix `json:"company_benefits"`
IndividualBenefits shared.OperationSupportMatrix `json:"individual_benefits"`
JSON supportPerBenefitTypeJSON `json:"-"`
}
// supportPerBenefitTypeJSON contains the JSON metadata for the struct
// [SupportPerBenefitType]
type supportPerBenefitTypeJSON struct {
CompanyBenefits apijson.Field
IndividualBenefits apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *SupportPerBenefitType) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r supportPerBenefitTypeJSON) RawJSON() string {
return r.raw
}
type SupportedBenefit struct {
// Whether the provider supports an annual maximum for this benefit.
AnnualMaximum bool `json:"annual_maximum,nullable"`
// Whether the provider supports catch up for this benefit. This field will only be
// true for retirement benefits.
CatchUp bool `json:"catch_up,nullable"`
// Supported contribution types. An empty array indicates contributions are not
// supported.
CompanyContribution []SupportedBenefitCompanyContribution `json:"company_contribution,nullable"`
Description string `json:"description,nullable"`
// Supported deduction types. An empty array indicates deductions are not
// supported.
EmployeeDeduction []SupportedBenefitEmployeeDeduction `json:"employee_deduction,nullable"`
// The list of frequencies supported by the provider for this benefit
Frequencies []BenefitFrequency `json:"frequencies"`
// Whether the provider supports HSA contribution limits. Empty if this feature is
// not supported for the benefit. This array only has values for HSA benefits.
HsaContributionLimit []SupportedBenefitHsaContributionLimit `json:"hsa_contribution_limit,nullable"`
// Type of benefit.
Type BenefitType `json:"type,nullable"`
JSON supportedBenefitJSON `json:"-"`
}
// supportedBenefitJSON contains the JSON metadata for the struct
// [SupportedBenefit]
type supportedBenefitJSON struct {
AnnualMaximum apijson.Field
CatchUp apijson.Field
CompanyContribution apijson.Field
Description apijson.Field
EmployeeDeduction apijson.Field
Frequencies apijson.Field
HsaContributionLimit apijson.Field
Type apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *SupportedBenefit) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r supportedBenefitJSON) RawJSON() string {
return r.raw
}
type SupportedBenefitCompanyContribution string
const (
SupportedBenefitCompanyContributionFixed SupportedBenefitCompanyContribution = "fixed"
SupportedBenefitCompanyContributionPercent SupportedBenefitCompanyContribution = "percent"
)
func (r SupportedBenefitCompanyContribution) IsKnown() bool {
switch r {
case SupportedBenefitCompanyContributionFixed, SupportedBenefitCompanyContributionPercent:
return true
}
return false
}
type SupportedBenefitEmployeeDeduction string
const (
SupportedBenefitEmployeeDeductionFixed SupportedBenefitEmployeeDeduction = "fixed"
SupportedBenefitEmployeeDeductionPercent SupportedBenefitEmployeeDeduction = "percent"
)
func (r SupportedBenefitEmployeeDeduction) IsKnown() bool {
switch r {
case SupportedBenefitEmployeeDeductionFixed, SupportedBenefitEmployeeDeductionPercent:
return true
}
return false
}
type SupportedBenefitHsaContributionLimit string
const (
SupportedBenefitHsaContributionLimitIndividual SupportedBenefitHsaContributionLimit = "individual"
SupportedBenefitHsaContributionLimitFamily SupportedBenefitHsaContributionLimit = "family"
)
func (r SupportedBenefitHsaContributionLimit) IsKnown() bool {
switch r {
case SupportedBenefitHsaContributionLimitIndividual, SupportedBenefitHsaContributionLimitFamily:
return true
}
return false
}
type UpdateCompanyBenefitResponse struct {
BenefitID string `json:"benefit_id,required"`
JSON updateCompanyBenefitResponseJSON `json:"-"`
}
// updateCompanyBenefitResponseJSON contains the JSON metadata for the struct
// [UpdateCompanyBenefitResponse]
type updateCompanyBenefitResponseJSON struct {
BenefitID apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *UpdateCompanyBenefitResponse) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r updateCompanyBenefitResponseJSON) RawJSON() string {
return r.raw
}
type HRISBenefitNewParams struct {
// Name of the benefit as it appears in the provider and pay statements. Recommend
// limiting this to <30 characters due to limitations in specific providers (e.g.
// Justworks).
Description param.Field[string] `json:"description"`
Frequency param.Field[BenefitFrequency] `json:"frequency"`
// Type of benefit.
Type param.Field[BenefitType] `json:"type"`
}
func (r HRISBenefitNewParams) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type HRISBenefitUpdateParams struct {
// Updated name or description.
Description param.Field[string] `json:"description"`
}
func (r HRISBenefitUpdateParams) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}