WeChat.CardManaging (wechat v0.2.0)

微信卡券 - 管理卡券

官方文档

Link to this section Summary

Link to this section Functions

Link to this function

batch_get_cards(client, count, offset)

Specs

batch_get_cards(WeChat.client(), count :: integer(), offset :: integer()) ::
  WeChat.response()

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

Link to this function

batch_get_cards(client, status_list, count, offset)

Specs

batch_get_cards(
  WeChat.client(),
  [WeChat.Card.card_status()],
  count :: integer(),
  offset :: integer()
) :: WeChat.response()

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

Link to this function

check_card_code(client, card_id)

Specs

删除卡券 - 官方文档

Link to this function

get_card_analysis(client, begin_date, end_date, cond_source)

Specs

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)

Specs

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)

Specs

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)

Specs

查看卡券详情 - 官方文档

Link to this function

get_user_card_list(client, openid)

Specs

get_user_card_list(WeChat.client(), WeChat.openid()) :: WeChat.response()

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

Link to this function

get_user_card_list(client, openid, card_id)

Link to this function

modify_card_stock(client, card_id, change_count)

Specs

modify_card_stock(
  WeChat.client(),
  WeChat.Card.card_id(),
  change_count :: integer()
) :: WeChat.response()

修改库存 - 官方文档

Link to this function

unavailable_card_code(client, code, reason)

Specs

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)

Specs

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)

Specs

更改Code - 官方文档

Link to this function

update_card_info(client, card_id, card_type, card_info)

Specs

update_card_info(
  WeChat.client(),
  WeChat.Card.card_id(),
  WeChat.Card.card_type(),
  card_info :: map()
) :: WeChat.response()

更改卡券信息 - 官方文档