Modifier and Type | Field and Description |
---|---|
protected KdtApiClient |
client |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<CouponConsume>> |
COUPON_CONSUME_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Coupon>> |
COUPON_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Coupons>> |
COUPONS_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Item>> |
ITEM_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Items>> |
ITEMS_RESPONSE_TYPE_REF |
protected com.fasterxml.jackson.databind.ObjectMapper |
mapper |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<SelfFetchTrade>> |
SELF_FETCH_TRADE_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Shop>> |
SHOP_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Sku>> |
SKU_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Skus>> |
SKUS_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Success>> |
SUCCESS_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<TimelimitedDiscounts>> |
TIMELIMITED_DISCOUNTS_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Trade>> |
TRADE_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Trades>> |
TRADES_RESPONSE_TYPE_REF |
protected static com.fasterxml.jackson.core.type.TypeReference<Response<Verifylogs>> |
VERIFYLOGS_RESPONSE_TYPE_REF |
Constructor and Description |
---|
ShopService(KdtApiClient client) |
Modifier and Type | Method and Description |
---|---|
Shop |
getShop()
|
protected <T> T |
readValue(String method,
Map<String,String> params,
com.fasterxml.jackson.core.type.TypeReference valueTypeRef) |
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Success>> SUCCESS_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Item>> ITEM_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Items>> ITEMS_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Sku>> SKU_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Skus>> SKUS_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Shop>> SHOP_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Trade>> TRADE_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Trades>> TRADES_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<SelfFetchTrade>> SELF_FETCH_TRADE_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Coupons>> COUPONS_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<CouponConsume>> COUPON_CONSUME_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Verifylogs>> VERIFYLOGS_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<Coupon>> COUPON_RESPONSE_TYPE_REF
protected static final com.fasterxml.jackson.core.type.TypeReference<Response<TimelimitedDiscounts>> TIMELIMITED_DISCOUNTS_RESPONSE_TYPE_REF
protected final KdtApiClient client
protected final com.fasterxml.jackson.databind.ObjectMapper mapper
public ShopService(KdtApiClient client)
public Shop getShop() throws IOException, YouzanException
IOException
- indicates I/O exception.YouzanException
- indicates Youzan business exception.protected <T> T readValue(@Nonnull String method, @Nullable Map<String,String> params, @Nonnull com.fasterxml.jackson.core.type.TypeReference valueTypeRef) throws IOException, YouzanException
IOException
YouzanException
Copyright © 2016–2017. All rights reserved.