@Immutable @LevelUpApi(contract=PUBLIC) public final class GiftCardOrderRequestFactory extends AbstractRequestFactory
Constructor and Description |
---|
GiftCardOrderRequestFactory(Context context,
AccessTokenRetriever retriever) |
Modifier and Type | Method and Description |
---|---|
AbstractRequest |
buildCreateGiftCardOrderRequest(GiftCardValueOrder giftCardValueOrder) |
getAccessTokenRetriever, getContext
public GiftCardOrderRequestFactory(Context context, AccessTokenRetriever retriever)
context
- The Application context.retriever
- The access token retriever.@RequiresPermission(value="create_orders") @AccessTokenRequired public AbstractRequest buildCreateGiftCardOrderRequest(GiftCardValueOrder giftCardValueOrder)
giftCardValueOrder
- The gift card order to create.AbstractRequest
to create a gift card order.