View Source WeChat.CardManaging (wechat v0.16.0)

微信卡券 - 管理卡券

官方文档

Summary

Functions

Link to this function

batch_get_cards(client, count \\ 10, offset \\ 0)

View Source
@spec batch_get_cards(WeChat.client(), count(), offset()) :: WeChat.response()

批量查询卡券列表 - 官方文档

Link to this function

batch_get_cards(client, status_list, count, offset)

View Source
@spec batch_get_cards(WeChat.client(), [WeChat.Card.card_status()], count(), offset()) ::
  WeChat.response()

批量查询卡券列表 - 只获取指定状态 - 官方文档

Link to this function

check_card_code(client, card_id)

View Source
@spec check_card_code(WeChat.client(), WeChat.Card.card_id()) :: WeChat.response()

删除卡券 - 官方文档

Link to this function

get_card_analysis(client, begin_date, end_date, cond_source)

View Source
@spec get_card_analysis(
  WeChat.client(),
  begin_date :: WeChat.Card.date(),
  end_date :: WeChat.Card.date(),
  WeChat.Card.cond_source()
) :: WeChat.response()

获取免费券数据 - 官方文档

Link to this function

get_card_analysis(client, card_id, begin_date, end_date, cond_source)

View Source
@spec get_card_analysis(
  WeChat.client(),
  WeChat.Card.card_id(),
  begin_date :: WeChat.Card.date(),
  end_date :: WeChat.Card.date(),
  WeChat.Card.cond_source()
) :: WeChat.response()

获取免费券数据 - 只获取指定卡券 - 官方文档

Link to this function

get_card_bizuin_info(client, begin_date, end_date, cond_source \\ 1)

View Source
@spec get_card_bizuin_info(
  WeChat.client(),
  begin_date :: WeChat.Card.date(),
  end_date :: WeChat.Card.date(),
  WeChat.Card.cond_source()
) :: WeChat.response()

拉取卡券概况数据 - 官方文档

Link to this function

get_card_info(client, card_id)

View Source
@spec get_card_info(WeChat.client(), WeChat.Card.card_id()) :: WeChat.response()

查看卡券详情 - 官方文档

Link to this function

get_user_card_list(client, openid)

View Source
@spec get_user_card_list(WeChat.client(), WeChat.openid()) :: WeChat.response()

获取用户已领取卡券 - 官方文档

Link to this function

get_user_card_list(client, openid, card_id)

View Source
Link to this function

modify_card_stock(client, card_id, change_count)

View Source
@spec modify_card_stock(
  WeChat.client(),
  WeChat.Card.card_id(),
  change_count :: integer()
) ::
  WeChat.response()

修改库存 - 官方文档

Link to this function

unavailable_card_code(client, code, reason)

View Source
@spec unavailable_card_code(
  WeChat.client(),
  WeChat.Card.card_code(),
  reason :: String.t()
) ::
  WeChat.response()

设置卡券失效接口 - 非自定义code卡券的请求 - 官方文档

Link to this function

unavailable_card_code(client, card_id, code, reason)

View Source
@spec unavailable_card_code(
  WeChat.client(),
  WeChat.Card.card_id(),
  WeChat.Card.card_code(),
  reason :: String.t()
) :: WeChat.response()

设置卡券失效接口 - 自定义code卡券的请求 - 官方文档

Link to this function

update_card_code(client, card_id, old_code, new_code)

View Source

更改Code - 官方文档

Link to this function

update_card_info(client, card_id, card_type, card_info)

View Source
@spec update_card_info(
  WeChat.client(),
  WeChat.Card.card_id(),
  WeChat.Card.card_type(),
  card_info :: map()
) :: WeChat.response()

更改卡券信息 - 官方文档