@LevelUpApi(contract=PUBLIC) public final class InterstitialRequestFactory extends AbstractRequestFactory
Interstitial
s.Constructor and Description |
---|
InterstitialRequestFactory(Context context,
AccessTokenRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildInterstitialForOrderRequest(String orderUuid)
Build a request to get the
Interstitial for the order passed. |
AbstractRequest |
buildInterstitialImageRequest(Interstitial interstitial)
Build a request to get the image for the
Interstitial passed. |
getAccessTokenRetriever, getContext
public InterstitialRequestFactory(Context context, AccessTokenRetriever retriever)
context
- the Application context.retriever
- the AccessTokenRetriever
to use to retrieve the
AccessToken
.@AccessTokenRequired @LevelUpApi(contract=PUBLIC) @RequiresPermission(value={"create_orders","read_qr_code"}) public AbstractRequest buildInterstitialForOrderRequest(String orderUuid)
Interstitial
for the order passed.orderUuid
- the UUID of the Order
@see
Order.getUuid()
AbstractRequest
to use to get the Interstitial
for the
Order
.@LevelUpApi(contract=PUBLIC) public AbstractRequest buildInterstitialImageRequest(Interstitial interstitial)
Interstitial
passed.interstitial
- the Interstitial
to get the image URL for.AbstractRequest
to use to get the image for the Interstitial
passed.