Module: PeopleGroup::Connectors::Workday::XML::RequestOneTimePayment

Included in:
Client
Defined in:
lib/peoplegroup/connectors/workday/xml/request_one_time_payment.rb

Overview

RequestOneTimePayment module Uses the [PeopleGroup::Connectors::Workday::Client] to add a bonus to the speified team member.

Constant Summary collapse

OPERATION =

The Operation for this Module

:request_one_time_payment
OPERATION_AS_PARAM =
'Request_One-Time_Payment'
DISCRETIONARY_BONUS =

The amount in USD to give for bonuses, must be a decimal.

1000.0

Instance Method Summary collapse

Instance Method Details

#add_bonus(employee_number, comment) ⇒ Object

Adds a bonus to the team members

Parameters:

  • employee_number (Integer)

    The Employee Number of the team member receiving the bonus.

  • comment (String)

    The comment to leave on the business process.



23
24
25
26
27
28
29
30
31
# File 'lib/peoplegroup/connectors/workday/xml/request_one_time_payment.rb', line 23

def add_bonus(employee_number, comment)
  options = {
    **business_process_params(comment),
    **one_time_payment_data(employee_number, comment)
  }

  request = Helpers.construct_options(OPERATION_AS_PARAM, options)
  call(OPERATION, request)
end