// Code generated by lark_sdk_gen. DO NOT EDIT.
/**
 * Copyright 2022 chyroc
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package lark

import (
	"context"
)

// EventV2CorehrProbationUpdatedV2 当试用期记录状态发生变更时, 触发该事件。
//
// doc: https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/probation/events/updated
func (r *EventCallbackService) HandlerEventV2CorehrProbationUpdatedV2(f EventV2CorehrProbationUpdatedV2Handler) {
	r.cli.eventHandler.eventV2CorehrProbationUpdatedV2Handler = f
}

// EventV2CorehrProbationUpdatedV2Handler event EventV2CorehrProbationUpdatedV2 handler
type EventV2CorehrProbationUpdatedV2Handler func(ctx context.Context, cli *Lark, schema string, header *EventHeaderV2, event *EventV2CorehrProbationUpdatedV2) (string, error)

// EventV2CorehrProbationUpdatedV2 ...
type EventV2CorehrProbationUpdatedV2 struct {
	EmploymentID           string `json:"employment_id,omitempty"`             // 雇佣 ID
	ProbationStatus        string `json:"probation_status,omitempty"`          // 试用期状态, 可选值有: pending: 审批中, rejected: 已拒绝, waiting: 待发起转正, approved: 审批通过, converted: 已转正, offboarded: 已离职
	ActualProbationEndDate string `json:"actual_probation_end_date,omitempty"` // 试用期实际结束日期
}
