@Immutable @LevelUpApi(contract=PUBLIC) public final class FeedbackRequestFactory extends AbstractRequestFactory
Constructor and Description |
---|
FeedbackRequestFactory(Context context,
AccessTokenRetriever retriever)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildFeedbackRequest(String orderUuid,
Feedback feedback)
Builds a request for posting feedback for a given order.
|
getAccessTokenRetriever, getContext
public FeedbackRequestFactory(Context context, AccessTokenRetriever retriever)
context
- Application context.retriever
- the implementation of AccessTokenRetriever
to use to get the
User
's
AccessToken
.@LevelUpApi(contract=PUBLIC) @RequiresPermission(value={"create_orders","read_qr_code"}) @AccessTokenRequired public AbstractRequest buildFeedbackRequest(String orderUuid, Feedback feedback)
orderUuid
- The order's UUID for the endpoint's URL.feedback
- The feedback to post in the body of this request.