Class SendBonusRequest

    • Method Detail

      • workerId

        public final String workerId()

        The ID of the Worker being paid the bonus.

        Returns:
        The ID of the Worker being paid the bonus.
      • bonusAmount

        public final String bonusAmount()

        The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.

        Returns:
        The Bonus amount is a US Dollar amount specified using a string (for example, "5" represents $5.00 USD and "101.42" represents $101.42 USD). Do not include currency symbols or currency codes.
      • assignmentId

        public final String assignmentId()

        The ID of the assignment for which this bonus is paid.

        Returns:
        The ID of the assignment for which this bonus is paid.
      • reason

        public final String reason()

        A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.

        Returns:
        A message that explains the reason for the bonus payment. The Worker receiving the bonus can see this message.
      • uniqueRequestToken

        public final String uniqueRequestToken()

        A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.

        Returns:
        A unique identifier for this request, which allows you to retry the call on error without granting multiple bonuses. This is useful in cases such as network timeouts where it is unclear whether or not the call succeeded on the server. If the bonus already exists in the system from a previous call using the same UniqueRequestToken, subsequent calls will return an error with a message containing the request ID.
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object