Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The ListBonusPayments
operation retrieves the amounts of bonuses you
have paid to Workers for a given HIT or assignment.
This operation returns paginated results.
Synopsis
- data ListBonusPayments = ListBonusPayments' {}
- newListBonusPayments :: ListBonusPayments
- listBonusPayments_assignmentId :: Lens' ListBonusPayments (Maybe Text)
- listBonusPayments_hITId :: Lens' ListBonusPayments (Maybe Text)
- listBonusPayments_maxResults :: Lens' ListBonusPayments (Maybe Natural)
- listBonusPayments_nextToken :: Lens' ListBonusPayments (Maybe Text)
- data ListBonusPaymentsResponse = ListBonusPaymentsResponse' {
- bonusPayments :: Maybe [BonusPayment]
- nextToken :: Maybe Text
- numResults :: Maybe Int
- httpStatus :: Int
- newListBonusPaymentsResponse :: Int -> ListBonusPaymentsResponse
- listBonusPaymentsResponse_bonusPayments :: Lens' ListBonusPaymentsResponse (Maybe [BonusPayment])
- listBonusPaymentsResponse_nextToken :: Lens' ListBonusPaymentsResponse (Maybe Text)
- listBonusPaymentsResponse_numResults :: Lens' ListBonusPaymentsResponse (Maybe Int)
- listBonusPaymentsResponse_httpStatus :: Lens' ListBonusPaymentsResponse Int
Creating a Request
data ListBonusPayments Source #
See: newListBonusPayments
smart constructor.
ListBonusPayments' | |
|
Instances
newListBonusPayments :: ListBonusPayments Source #
Create a value of ListBonusPayments
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListBonusPayments
, listBonusPayments_assignmentId
- The ID of the assignment associated with the bonus payments to retrieve.
If specified, only bonus payments for the given assignment are returned.
Either the HITId parameter or the AssignmentId parameter must be
specified
ListBonusPayments
, listBonusPayments_hITId
- The ID of the HIT associated with the bonus payments to retrieve. If not
specified, all bonus payments for all assignments for the given HIT are
returned. Either the HITId parameter or the AssignmentId parameter must
be specified
$sel:maxResults:ListBonusPayments'
, listBonusPayments_maxResults
- Undocumented member.
ListBonusPayments
, listBonusPayments_nextToken
- Pagination token
Request Lenses
listBonusPayments_assignmentId :: Lens' ListBonusPayments (Maybe Text) Source #
The ID of the assignment associated with the bonus payments to retrieve. If specified, only bonus payments for the given assignment are returned. Either the HITId parameter or the AssignmentId parameter must be specified
listBonusPayments_hITId :: Lens' ListBonusPayments (Maybe Text) Source #
The ID of the HIT associated with the bonus payments to retrieve. If not specified, all bonus payments for all assignments for the given HIT are returned. Either the HITId parameter or the AssignmentId parameter must be specified
listBonusPayments_maxResults :: Lens' ListBonusPayments (Maybe Natural) Source #
Undocumented member.
listBonusPayments_nextToken :: Lens' ListBonusPayments (Maybe Text) Source #
Pagination token
Destructuring the Response
data ListBonusPaymentsResponse Source #
See: newListBonusPaymentsResponse
smart constructor.
ListBonusPaymentsResponse' | |
|
Instances
newListBonusPaymentsResponse Source #
Create a value of ListBonusPaymentsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bonusPayments:ListBonusPaymentsResponse'
, listBonusPaymentsResponse_bonusPayments
- A successful request to the ListBonusPayments operation returns a list
of BonusPayment objects.
ListBonusPayments
, listBonusPaymentsResponse_nextToken
- Undocumented member.
$sel:numResults:ListBonusPaymentsResponse'
, listBonusPaymentsResponse_numResults
- The number of bonus payments on this page in the filtered results list,
equivalent to the number of bonus payments being returned by this call.
$sel:httpStatus:ListBonusPaymentsResponse'
, listBonusPaymentsResponse_httpStatus
- The response's http status code.
Response Lenses
listBonusPaymentsResponse_bonusPayments :: Lens' ListBonusPaymentsResponse (Maybe [BonusPayment]) Source #
A successful request to the ListBonusPayments operation returns a list of BonusPayment objects.
listBonusPaymentsResponse_nextToken :: Lens' ListBonusPaymentsResponse (Maybe Text) Source #
Undocumented member.
listBonusPaymentsResponse_numResults :: Lens' ListBonusPaymentsResponse (Maybe Int) Source #
The number of bonus payments on this page in the filtered results list, equivalent to the number of bonus payments being returned by this call.
listBonusPaymentsResponse_httpStatus :: Lens' ListBonusPaymentsResponse Int Source #
The response's http status code.