C# Class Senparc.Weixin.MP.AdvancedAPIs.CardApi

卡券接口
Show file Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
ActivateUserFormSet ( string accessTokenOrAppId, ActivateUserFormSetData data, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置开卡字段接口

ActivateUserFormSetAsync ( string accessTokenOrAppId, ActivateUserFormSetData data, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置开卡字段接口

AgentQualification ( string accessTokenOrAppId, string registerCapital, string businessLicenseMediaid, string taxRegistRationCertificateMediaid, string lastQuarterTaxListingMediaid, int timeOut = Config.TIME_OUT ) : WxJsonResult

母商户资质申请接口

AgentQualificationAsync ( string accessTokenOrAppId, string registerCapital, string businessLicenseMediaid, string taxRegistRationCertificateMediaid, string lastQuarterTaxListingMediaid, int timeOut = Config.TIME_OUT ) : Task

【异步方法】母商户资质申请接口

AuthoritySet ( string accessTokenOrAppId, string openIds, string userNames, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置测试用户白名单 由于卡券有审核要求,为方便公众号调试,可以设置一些测试帐号,这些帐号可以领取未通过审核的卡券,体验整个流程。 注:同时支持“openid”、“username”两种字段设置白名单,总数上限为10 个。

AuthoritySetAsync ( string accessTokenOrAppId, string openIds, string userNames, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置测试用户白名单 由于卡券有审核要求,为方便公众号调试,可以设置一些测试帐号,这些帐号可以领取未通过审核的卡券,体验整个流程。 注:同时支持“openid”、“username”两种字段设置白名单,总数上限为10 个。

BatchGetCardMerchant ( string accessTokenOrAppId, string nextGet, int timeOut = Config.TIME_OUT ) : BatchGetCardMerchantJsonResult

拉取子商户列表接口

BatchGetCardMerchantAsync ( string accessTokenOrAppId, string nextGet, int timeOut = Config.TIME_OUT ) : Task

【异步方法】拉取子商户列表接口

BoardingPassCheckIn ( string accessTokenOrAppId, string code, string cardId, string passengerName, string classType, string seat, string etktBnr, string qrcodeData, bool isCancel = false, int timeOut = Config.TIME_OUT ) : WxJsonResult

飞机票在线选座

BoardingPassCheckInAsync ( string accessTokenOrAppId, string code, string cardId, string passengerName, string classType, string seat, string etktBnr, string qrcodeData, bool isCancel = false, int timeOut = Config.TIME_OUT ) : Task

【异步方法】飞机票在线选座

CardBatchGet ( string accessTokenOrAppId, int offset, int count, int timeOut = Config.TIME_OUT ) : CardBatchGetResultJson

批量查询卡列表

CardBatchGetAsync ( string accessTokenOrAppId, int offset, int count, int timeOut = Config.TIME_OUT ) : Task

【异步方法】批量查询卡列表

CardChangeCode ( string accessTokenOrAppId, string code, string cardId, string newCode, int timeOut = Config.TIME_OUT ) : WxJsonResult

更改code

CardChangeCodeAsync ( string accessTokenOrAppId, string code, string cardId, string newCode, int timeOut = Config.TIME_OUT ) : Task

【异步方法】更改code

CardConsume ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : CardConsumeResultJson

卡券消耗code

CardConsumeAsync ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】卡券消耗code

CardDecrypt ( string accessTokenOrAppId, string encryptCode, int timeOut = Config.TIME_OUT ) : CardDecryptResultJson

code 解码接口 code 解码接口支持两种场景: 1.商家获取choos_card_info 后,将card_id 和encrypt_code 字段通过解码接口,获取真实code。 2.卡券内跳转外链的签名中会对code 进行加密处理,通过调用解码接口获取真实code。

CardDecryptAsync ( string accessTokenOrAppId, string encryptCode, int timeOut = Config.TIME_OUT ) : Task

【异步方法】code 解码接口 code 解码接口支持两种场景: 1.商家获取choos_card_info 后,将card_id 和encrypt_code 字段通过解码接口,获取真实code。 2.卡券内跳转外链的签名中会对code 进行加密处理,通过调用解码接口获取真实code。

CardDelete ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : CardDeleteResultJson

删除卡券

CardDeleteAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】删除卡券

CardDetailGet ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : CardDetailGetResultJson

查询卡券详情

CardDetailGetAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询卡券详情

CardGet ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : CardGetResultJson

查询code接口

CardGetAsync ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询code接口

CardUnavailable ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置卡券失效接口

CardUnavailableAsync ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置卡券失效接口

CardUpdate ( string accessTokenOrAppId, CardType cardType, object data, string cardId = null, int timeOut = Config.TIME_OUT ) : WxJsonResult

更改卡券信息接口 支持更新部分通用字段及特殊卡券(会员卡、飞机票、电影票、红包)中特定字段的信息。

CardUpdateAsync ( string accessTokenOrAppId, CardType cardType, object data, string cardId = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】更改卡券信息接口 支持更新部分通用字段及特殊卡券(会员卡、飞机票、电影票、红包)中特定字段的信息。

CheckAgentQualification ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : CheckQualificationJsonResult
CheckAgentQualificationAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
CheckCode ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : CheckCodeResultJson

核查code

CheckCodeAsync ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : Task

【异步方法】核查code

CheckMerchantQualification ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : CheckQualificationJsonResult

子商户资质审核查询接口

CheckMerchantQualificationAsync ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : Task

【异步方法】子商户资质审核查询接口

CodeDeposit ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : WxJsonResult

导入code 新创建卡券情况 如果开发者打算新创建一张支持导入code模式的卡券,不同于以往的创建方式,建议开发者采用以下流程创建预存code模式卡券,否则会报错。 步骤一:创建预存模式卡券,将库存quantity初始值设置为0,并填入Deposit_Mode字段; 步骤二:待卡券通过审核后,调用导入code接口并核查code; 步骤三:调用修改库存接口,须令卡券库存小于或等于导入code的数目。(为了避免混乱建议设置为相等) 注: 1)单次调用接口传入code的数量上限为100个。 2)每一个 code 均不能为空串。 3)导入结束后系统会自动判断提供方设置库存与实际导入code的量是否一致。 4)导入失败支持重复导入,提示成功为止。

CodeDepositAsync ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : Task

【异步方法】导入code 新创建卡券情况 如果开发者打算新创建一张支持导入code模式的卡券,不同于以往的创建方式,建议开发者采用以下流程创建预存code模式卡券,否则会报错。 步骤一:创建预存模式卡券,将库存quantity初始值设置为0,并填入Deposit_Mode字段; 步骤二:待卡券通过审核后,调用导入code接口并核查code; 步骤三:调用修改库存接口,须令卡券库存小于或等于导入code的数目。(为了避免混乱建议设置为相等) 注: 1)单次调用接口传入code的数量上限为100个。 2)每一个 code 均不能为空串。 3)导入结束后系统会自动判断提供方设置库存与实际导入code的量是否一致。 4)导入失败支持重复导入,提示成功为止。

CodeMark ( string accessTokenOrAppId, string code, string cardId, string openId, string isMark, int timeOut = Config.TIME_OUT ) : WxJsonResult

Mark(占用)Code接口

CodeMarkAsync ( string accessTokenOrAppId, string code, string cardId, string openId, string isMark, int timeOut = Config.TIME_OUT ) : Task

【异步方法】Mark(占用)Code接口

CreateCard ( string accessTokenOrAppId, BaseCardInfo cardInfo, int timeOut = Config.TIME_OUT ) : CardCreateResultJson

创建卡券

CreateCardAsync ( string accessTokenOrAppId, BaseCardInfo cardInfo, int timeOut = Config.TIME_OUT ) : Task

【异步方法】创建卡券

CreateQR ( string accessTokenOrAppId, string cardId, string code = null, string openId = null, string expireSeconds = null, bool isUniqueCode = false, string outer_id = null, int timeOut = Config.TIME_OUT ) : CreateQRResultJson

生成卡券二维码 获取二维码ticket 后,开发者可用ticket 换取二维码图片。换取指引参考:http://mp.weixin.qq.com/wiki/index.php?title=生成带参数的二维码

CreateQRAsync ( string accessTokenOrAppId, string cardId, string code = null, string openId = null, string expireSeconds = null, bool isUniqueCode = false, string outer_id = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】生成卡券二维码 获取二维码ticket 后,开发者可用ticket 换取二维码图片。换取指引参考:http://mp.weixin.qq.com/wiki/index.php?title=生成带参数的二维码

GetApplyProtocol ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : GetApplyProtocolJsonResult
GetApplyProtocolAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
GetCardBizuinInfo ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : GetCardBizuinInfoResultJson

拉取卡券概况数据接口

GetCardBizuinInfoAsync ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : Task

【异步方法】拉取卡券概况数据接口

GetCardInfo ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, string cardId, int timeOut = Config.TIME_OUT ) : GetCardInfoResultJson

获取免费券数据接口

GetCardInfoAsync ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, string cardId, int timeOut = Config.TIME_OUT ) : Task

获取免费券数据接口

GetCardList ( string accessTokenOrAppId, string openId, string cardId = null, int timeOut = Config.TIME_OUT ) : GetCardListResult

获取用户已领取卡券

GetCardListAsync ( string accessTokenOrAppId, string openId, string cardId = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】获取用户已领取卡券

GetCardMemberCardInfo ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : GetCardMemberCardInfoResultJson

拉取会员卡数据接口

GetCardMemberCardInfoAsync ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : Task

【异步方法】拉取会员卡数据接口

GetCardMerchant ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : GetCardMerchantJsonResult

拉取单个子商户信息接口

GetCardMerchantAsync ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : Task

【异步方法】拉取单个子商户信息接口

GetCoinsInfo ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : GetCoinsInfoResultJson
GetCoinsInfoAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
GetDepositCount ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : GetDepositCountResultJson

查询导入code数目

GetDepositCountAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询导入code数目

GetHtml ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : GetHtmlResult

图文消息群发卡券

GetHtmlAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】图文消息群发卡券

GetOrderList ( string accessTokenOrAppId, int offset, int count, string orderType, NorFilter norFilter, SortInfo sortInfo, int beginTime, int endTime, int timeOut = Config.TIME_OUT ) : GetOrderListResultJson

查询券点流水详情接口

GetOrderListAsync ( string accessTokenOrAppId, int offset, int count, string orderType, NorFilter norFilter, SortInfo sortInfo, int beginTime, int endTime, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询券点流水详情接口

GetpayPrice ( string accessTokenOrAppId, string cardId, int quantity, int timeOut = Config.TIME_OUT ) : GetpayPriceResultJson

对优惠券批价

GetpayPriceAsync ( string accessTokenOrAppId, string cardId, int quantity, int timeOut = Config.TIME_OUT ) : Task

【异步方法】对优惠券批价

MemberCardActivate ( string accessTokenOrAppId, string membershipNumber, string code, string cardId, string activateBeginTime = null, string activateEndTime = null, string initBonus = null, string initBalance = null, string initCustomFieldValue1 = null, string initCustomFieldValue2 = null, string initCustomFieldValue3 = null, int timeOut = Config.TIME_OUT ) : WxJsonResult

激活/绑定会员卡

MemberCardActivateAsync ( string accessTokenOrAppId, string membershipNumber, string code, string cardId, string activateBeginTime = null, string activateEndTime = null, string initBonus = null, string initBalance = null, string initCustomFieldValue1 = null, string initCustomFieldValue2 = null, string initCustomFieldValue3 = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】激活/绑定会员卡

MemberCardDeal ( string accessTokenOrAppId, string code, string cardId, string recordBonus, decimal addBonus, decimal addBalance, string recordBalance, int timeOut = Config.TIME_OUT ) : MemberCardDealResultJson

会员卡交易

MemberCardDealAsync ( string accessTokenOrAppId, string code, string cardId, string recordBonus, decimal addBonus, decimal addBalance, string recordBalance, int timeOut = Config.TIME_OUT ) : Task

【异步方法】会员卡交易

MerchantQualification ( string accessTokenOrAppId, string appid, string name, string logoMediaid, string businessLicenseMediaid, string operatorIdCardMediaid, string agreementFileMediaid, string primaryCategoryId, string secondaryCategoryId, int timeOut = Config.TIME_OUT ) : WxJsonResult

子商户资质申请接口

MerchantQualificationAsync ( string accessTokenOrAppId, string appid, string name, string logoMediaid, string businessLicenseMediaid, string operatorIdCardMediaid, string agreementFileMediaid, string primaryCategoryId, string secondaryCategoryId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】子商户资质申请接口

ModifyStock ( string accessTokenOrAppId, string cardId, int increaseStockValue, int reduceStockValue, int timeOut = Config.TIME_OUT ) : WxJsonResult

修改库存接口

ModifyStockAsync ( string accessTokenOrAppId, string cardId, int increaseStockValue, int reduceStockValue, int timeOut = Config.TIME_OUT ) : Task

【异步方法】修改库存接口

MovieCardUpdate ( string accessTokenOrAppId, string code, string cardId, string ticketClass, string showTime, int duration, string screeningRoom, string seatNumbers, int timeOut = Config.TIME_OUT ) : WxJsonResult

更新电影票

MovieCardUpdateAsync ( string accessTokenOrAppId, string code, string cardId, string ticketClass, string showTime, int duration, string screeningRoom, string seatNumbers, int timeOut = Config.TIME_OUT ) : Task

【异步方法】更新电影票

PayActive ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : PayActiveResultJson
PayActiveAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】开通券点账户接口

PayCellSet ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置微信买单接口 注意:在调用买单接口之前,请开发者务必确认是否已经开通了微信支付以及对相应的cardid设置了门店,否则会报错 错误码,0为正常;43008为商户没有开通微信支付权限

PayCellSetAsync ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置微信买单接口 注意:在调用买单接口之前,请开发者务必确认是否已经开通了微信支付以及对相应的cardid设置了门店,否则会报错 错误码,0为正常;43008为商户没有开通微信支付权限

PayConfirm ( string accessTokenOrAppId, string cardId, int quantity, string orderId, int timeOut = Config.TIME_OUT ) : WxJsonResult

确认兑换库存接口

PayConfirmAsync ( string accessTokenOrAppId, string cardId, int quantity, string orderId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】确认兑换库存接口

PayGetOrder ( string accessTokenOrAppId, int orderId, int timeOut = Config.TIME_OUT ) : PayGetOrderResultJson

查询订单详情接口

PayGetOrderAsync ( string accessTokenOrAppId, int orderId, int timeOut = Config.TIME_OUT ) : Task

【异步方法】查询订单详情接口

PayRecharge ( string accessTokenOrAppId, int coinCount, int timeOut = Config.TIME_OUT ) : PayRechargeResultJson

充值券点接口

PayRechargeAsync ( string accessTokenOrAppId, int coinCount, int timeOut = Config.TIME_OUT ) : Task

【异步方法】充值券点接口

RecommendSet ( string accessTokenOrAppId, string cardId, CardCell cardCellData = null, UrlCell urlCellData = null, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置跟随推荐接口 有 使用消息配置卡券(cardCellData) 和 使用消息配置URL(urlCellData) 两种方式 注意:cardCellData和urlCellData必须也只能选择一个,不可同时为空

RecommendSetAsync ( string accessTokenOrAppId, string cardId, CardCell cardCellData = null, UrlCell urlCellData = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置跟随推荐接口 有 使用消息配置卡券(cardCellData) 和 使用消息配置URL(urlCellData) 两种方式 注意:cardCellData和urlCellData必须也只能选择一个,不可同时为空

SelfConsumecellSet ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : WxJsonResult

设置自助核销接口 注意:设置自助核销的card_id必须已经配置了门店,否则会报错。 错误码,0为正常;43008为商户没有开通微信支付权限

SelfConsumecellSetAsync ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : Task

【异步方法】设置自助核销接口 注意:设置自助核销的card_id必须已经配置了门店,否则会报错。 错误码,0为正常;43008为商户没有开通微信支付权限

ShelfCreate ( string accessTokenOrAppId, ShelfCreateData data, int timeOut = Config.TIME_OUT ) : ShelfCreateResultJson

创建货架

ShelfCreateAsync ( string accessTokenOrAppId, ShelfCreateData data, int timeOut = Config.TIME_OUT ) : Task

【异步方法】创建货架

SubmerChantBatchGet ( string accessTokenOrAppId, string beginId, int limit, string status, int timeOut = Config.TIME_OUT ) : SubmerChantBatchGetJsonResult
SubmerChantBatchGetAsync ( string accessTokenOrAppId, string beginId, int limit, string status, int timeOut = Config.TIME_OUT ) : Task
SubmerChantGet ( string accessTokenOrAppId, string merchantId, int timeOut = Config.TIME_OUT ) : SubmerChantSubmitJsonResult
SubmerChantGetAsync ( string accessTokenOrAppId, string merchantId, int timeOut = Config.TIME_OUT ) : Task
SubmerChantSubmit ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : SubmerChantSubmitJsonResult

创建子商户接口

SubmerChantSubmitAsync ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : Task

【异步方法】创建子商户接口

SubmerChantUpdate ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : SubmerChantSubmitJsonResult

更新子商户接口

SubmerChantUpdateAsync ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : Task

【异步方法】 更新子商户接口

UpdateMeetingTicket ( string accessTokenOrAppId, string code, string cardId = null, string zone = null, string entrance = null, string seatNumber = null, int timeOut = Config.TIME_OUT ) : WxJsonResult

更新会议门票接口

UpdateMeetingTicketAsync ( string accessTokenOrAppId, string code, string cardId = null, string zone = null, string entrance = null, string seatNumber = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】更新会议门票接口

UpdateUser ( string accessTokenOrAppId, string code, string cardId, int addBonus, int addBalance, string backgroundPicUrl = null, int bonus = null, int balance = null, string recordBonus = null, string recordBalance = null, string customFieldValue1 = null, string customFieldValue2 = null, string customFieldValue3 = null, int timeOut = Config.TIME_OUT ) : UpdateUserResult

更新会员信息

UpdateUserAsync ( string accessTokenOrAppId, string code, string cardId, int addBonus, int addBalance, string backgroundPicUrl = null, int bonus = null, int balance = null, string recordBonus = null, string recordBalance = null, string customFieldValue1 = null, string customFieldValue2 = null, string customFieldValue3 = null, int timeOut = Config.TIME_OUT ) : Task

【异步方法】 更新会员信息

UpdateUserBalance ( string accessTokenOrAppId, string code, string cardId, decimal balance, int timeOut = Config.TIME_OUT ) : WxJsonResult

更新红包金额

UpdateUserBalanceAsync ( string accessTokenOrAppId, string code, string cardId, decimal balance, int timeOut = Config.TIME_OUT ) : Task

【异步方法】更新红包金额

UserinfoGet ( string accessTokenOrAppId, string cardId, string code, int timeOut = Config.TIME_OUT ) : UserinfoGetResult

拉取会员信息接口

UserinfoGetAsync ( string accessTokenOrAppId, string cardId, string code, int timeOut = Config.TIME_OUT ) : Task

【异步方法】拉取会员信息接口

Method Details

ActivateUserFormSet() public static method

设置开卡字段接口
public static ActivateUserFormSet ( string accessTokenOrAppId, ActivateUserFormSetData data, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
data Senparc.Weixin.MP.AdvancedAPIs.Card.ActivateUserFormSetData
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

ActivateUserFormSetAsync() public static method

【异步方法】设置开卡字段接口
public static ActivateUserFormSetAsync ( string accessTokenOrAppId, ActivateUserFormSetData data, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
data Senparc.Weixin.MP.AdvancedAPIs.Card.ActivateUserFormSetData
timeOut int
return Task

AgentQualification() public static method

母商户资质申请接口
public static AgentQualification ( string accessTokenOrAppId, string registerCapital, string businessLicenseMediaid, string taxRegistRationCertificateMediaid, string lastQuarterTaxListingMediaid, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
registerCapital string 注册资本,数字,单位:分
businessLicenseMediaid string 营业执照扫描件的media_id
taxRegistRationCertificateMediaid string 税务登记证扫描件的media_id
lastQuarterTaxListingMediaid string 上个季度纳税清单扫描件media_id
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

AgentQualificationAsync() public static method

【异步方法】母商户资质申请接口
public static AgentQualificationAsync ( string accessTokenOrAppId, string registerCapital, string businessLicenseMediaid, string taxRegistRationCertificateMediaid, string lastQuarterTaxListingMediaid, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
registerCapital string 注册资本,数字,单位:分
businessLicenseMediaid string 营业执照扫描件的media_id
taxRegistRationCertificateMediaid string 税务登记证扫描件的media_id
lastQuarterTaxListingMediaid string 上个季度纳税清单扫描件media_id
timeOut int 代理请求超时时间(毫秒)
return Task

AuthoritySet() public static method

设置测试用户白名单 由于卡券有审核要求,为方便公众号调试,可以设置一些测试帐号,这些帐号可以领取未通过审核的卡券,体验整个流程。 注:同时支持“openid”、“username”两种字段设置白名单,总数上限为10 个。
public static AuthoritySet ( string accessTokenOrAppId, string openIds, string userNames, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
openIds string 测试的openid 列表
userNames string 测试的微信号列表
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

AuthoritySetAsync() public static method

【异步方法】设置测试用户白名单 由于卡券有审核要求,为方便公众号调试,可以设置一些测试帐号,这些帐号可以领取未通过审核的卡券,体验整个流程。 注:同时支持“openid”、“username”两种字段设置白名单,总数上限为10 个。
public static AuthoritySetAsync ( string accessTokenOrAppId, string openIds, string userNames, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
openIds string 测试的openid 列表
userNames string 测试的微信号列表
timeOut int 代理请求超时时间(毫秒)
return Task

BatchGetCardMerchant() public static method

拉取子商户列表接口
public static BatchGetCardMerchant ( string accessTokenOrAppId, string nextGet, int timeOut = Config.TIME_OUT ) : BatchGetCardMerchantJsonResult
accessTokenOrAppId string
nextGet string 获取子商户列表,注意最开始时为空。每次拉取20个子商户,下次拉取时填入返回数据中该字段的值,该值无实际意义。
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.BatchGetCardMerchantJsonResult

BatchGetCardMerchantAsync() public static method

【异步方法】拉取子商户列表接口
public static BatchGetCardMerchantAsync ( string accessTokenOrAppId, string nextGet, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
nextGet string 获取子商户列表,注意最开始时为空。每次拉取20个子商户,下次拉取时填入返回数据中该字段的值,该值无实际意义。
timeOut int 代理请求超时时间(毫秒)
return Task

BoardingPassCheckIn() public static method

飞机票在线选座
public static BoardingPassCheckIn ( string accessTokenOrAppId, string code, string cardId, string passengerName, string classType, string seat, string etktBnr, string qrcodeData, bool isCancel = false, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 飞机票的序列
cardId string 需办理值机的机票card_id。自定义code 的飞机票为必
passengerName string 乘客姓名,上限为15 个汉字
classType string 舱等,如头等舱等,上限为5 个汉字
seat string 乘客座位号
etktBnr string 电子客票号,上限为14 个数字
qrcodeData string 二维码数据。乘客用于值机的二维码字符串,微信会通过此数据为用户生成值机用的二维码
isCancel bool 是否取消值机。填写true 或false。true 代表取消,如填写true 上述字段(如calss 等)均不做判断,机票返回未值机状态,乘客可重新值机。默认填写false
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

BoardingPassCheckInAsync() public static method

【异步方法】飞机票在线选座
public static BoardingPassCheckInAsync ( string accessTokenOrAppId, string code, string cardId, string passengerName, string classType, string seat, string etktBnr, string qrcodeData, bool isCancel = false, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 飞机票的序列
cardId string 需办理值机的机票card_id。自定义code 的飞机票为必
passengerName string 乘客姓名,上限为15 个汉字
classType string 舱等,如头等舱等,上限为5 个汉字
seat string 乘客座位号
etktBnr string 电子客票号,上限为14 个数字
qrcodeData string 二维码数据。乘客用于值机的二维码字符串,微信会通过此数据为用户生成值机用的二维码
isCancel bool 是否取消值机。填写true 或false。true 代表取消,如填写true 上述字段(如calss 等)均不做判断,机票返回未值机状态,乘客可重新值机。默认填写false
timeOut int 代理请求超时时间(毫秒)
return Task

CardBatchGet() public static method

批量查询卡列表
public static CardBatchGet ( string accessTokenOrAppId, int offset, int count, int timeOut = Config.TIME_OUT ) : CardBatchGetResultJson
accessTokenOrAppId string
offset int 查询卡列表的起始偏移量,从0 开始,即offset: 5 是指从从列表里的第六个开始读取。
count int 需要查询的卡片的数量(数量最大50)
timeOut int 代理请求超时时间(毫秒)
return CardBatchGetResultJson

CardBatchGetAsync() public static method

【异步方法】批量查询卡列表
public static CardBatchGetAsync ( string accessTokenOrAppId, int offset, int count, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
offset int 查询卡列表的起始偏移量,从0 开始,即offset: 5 是指从从列表里的第六个开始读取。
count int 需要查询的卡片的数量(数量最大50)
timeOut int 代理请求超时时间(毫秒)
return Task

CardChangeCode() public static method

更改code
public static CardChangeCode ( string accessTokenOrAppId, string code, string cardId, string newCode, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 卡券的code 编码
cardId string 卡券ID
newCode string 新的卡券code 编码
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

CardChangeCodeAsync() public static method

【异步方法】更改code
public static CardChangeCodeAsync ( string accessTokenOrAppId, string code, string cardId, string newCode, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 卡券的code 编码
cardId string 卡券ID
newCode string 新的卡券code 编码
timeOut int 代理请求超时时间(毫秒)
return Task

CardConsume() public static method

卡券消耗code
public static CardConsume ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : CardConsumeResultJson
accessTokenOrAppId string
code string 要消耗的序列号
cardId string 要消耗序列号所述的card_id,创建卡券时use_custom_code 填写true 时必填。非自定义code不必填写。
timeOut int 代理请求超时时间(毫秒)
return CardConsumeResultJson

CardConsumeAsync() public static method

【异步方法】卡券消耗code
public static CardConsumeAsync ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 要消耗的序列号
cardId string 要消耗序列号所述的card_id,创建卡券时use_custom_code 填写true 时必填。非自定义code不必填写。
timeOut int 代理请求超时时间(毫秒)
return Task

CardDecrypt() public static method

code 解码接口 code 解码接口支持两种场景: 1.商家获取choos_card_info 后,将card_id 和encrypt_code 字段通过解码接口,获取真实code。 2.卡券内跳转外链的签名中会对code 进行加密处理,通过调用解码接口获取真实code。
public static CardDecrypt ( string accessTokenOrAppId, string encryptCode, int timeOut = Config.TIME_OUT ) : CardDecryptResultJson
accessTokenOrAppId string
encryptCode string 通过choose_card_info 获取的加密字符串
timeOut int 代理请求超时时间(毫秒)
return CardDecryptResultJson

CardDecryptAsync() public static method

【异步方法】code 解码接口 code 解码接口支持两种场景: 1.商家获取choos_card_info 后,将card_id 和encrypt_code 字段通过解码接口,获取真实code。 2.卡券内跳转外链的签名中会对code 进行加密处理,通过调用解码接口获取真实code。
public static CardDecryptAsync ( string accessTokenOrAppId, string encryptCode, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
encryptCode string 通过choose_card_info 获取的加密字符串
timeOut int 代理请求超时时间(毫秒)
return Task

CardDelete() public static method

删除卡券
public static CardDelete ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : CardDeleteResultJson
accessTokenOrAppId string
cardId string 卡券ID
timeOut int 代理请求超时时间(毫秒)
return CardDeleteResultJson

CardDeleteAsync() public static method

【异步方法】删除卡券
public static CardDeleteAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 卡券ID
timeOut int 代理请求超时时间(毫秒)
return Task

CardDetailGet() public static method

查询卡券详情
public static CardDetailGet ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : CardDetailGetResultJson
accessTokenOrAppId string
cardId string
timeOut int 代理请求超时时间(毫秒)
return CardDetailGetResultJson

CardDetailGetAsync() public static method

【异步方法】查询卡券详情
public static CardDetailGetAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string
timeOut int 代理请求超时时间(毫秒)
return Task

CardGet() public static method

查询code接口
public static CardGet ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : CardGetResultJson
accessTokenOrAppId string
code string
cardId string
timeOut int 代理请求超时时间(毫秒)
return CardGetResultJson

CardGetAsync() public static method

【异步方法】查询code接口
public static CardGetAsync ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string
cardId string
timeOut int 代理请求超时时间(毫秒)
return Task

CardUnavailable() public static method

设置卡券失效接口
public static CardUnavailable ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 需要设置为失效的code
cardId string 自定义code 的卡券必填。非自定义code 的卡券不填。
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

CardUnavailableAsync() public static method

【异步方法】设置卡券失效接口
public static CardUnavailableAsync ( string accessTokenOrAppId, string code, string cardId = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 需要设置为失效的code
cardId string 自定义code 的卡券必填。非自定义code 的卡券不填。
timeOut int 代理请求超时时间(毫秒)
return Task

CardUpdate() public static method

更改卡券信息接口 支持更新部分通用字段及特殊卡券(会员卡、飞机票、电影票、红包)中特定字段的信息。
public static CardUpdate ( string accessTokenOrAppId, CardType cardType, object data, string cardId = null, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardType CardType 卡券种类,会员卡、飞机票、电影票、红包中的一种
data object 创建卡券需要的数据,格式可以看CardUpdateData.cs
cardId string
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

CardUpdateAsync() public static method

【异步方法】更改卡券信息接口 支持更新部分通用字段及特殊卡券(会员卡、飞机票、电影票、红包)中特定字段的信息。
public static CardUpdateAsync ( string accessTokenOrAppId, CardType cardType, object data, string cardId = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardType CardType 卡券种类,会员卡、飞机票、电影票、红包中的一种
data object 创建卡券需要的数据,格式可以看CardUpdateData.cs
cardId string
timeOut int 代理请求超时时间(毫秒)
return Task

CheckAgentQualification() public static method

public static CheckAgentQualification ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : CheckQualificationJsonResult
accessTokenOrAppId string
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.CheckQualificationJsonResult

CheckAgentQualificationAsync() public static method

public static CheckAgentQualificationAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
timeOut int 代理请求超时时间(毫秒)
return Task

CheckCode() public static method

核查code
public static CheckCode ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : CheckCodeResultJson
accessTokenOrAppId string
cardId string 进行导入code的卡券ID。
codeList string 已经微信卡券后台的自定义code,上限为100个。
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.CheckCodeResultJson

CheckCodeAsync() public static method

【异步方法】核查code
public static CheckCodeAsync ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 进行导入code的卡券ID。
codeList string 已经微信卡券后台的自定义code,上限为100个。
timeOut int
return Task

CheckMerchantQualification() public static method

子商户资质审核查询接口
public static CheckMerchantQualification ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : CheckQualificationJsonResult
accessTokenOrAppId string
appid string
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.CheckQualificationJsonResult

CheckMerchantQualificationAsync() public static method

【异步方法】子商户资质审核查询接口
public static CheckMerchantQualificationAsync ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
appid string
timeOut int 代理请求超时时间(毫秒)
return Task

CodeDeposit() public static method

导入code 新创建卡券情况 如果开发者打算新创建一张支持导入code模式的卡券,不同于以往的创建方式,建议开发者采用以下流程创建预存code模式卡券,否则会报错。 步骤一:创建预存模式卡券,将库存quantity初始值设置为0,并填入Deposit_Mode字段; 步骤二:待卡券通过审核后,调用导入code接口并核查code; 步骤三:调用修改库存接口,须令卡券库存小于或等于导入code的数目。(为了避免混乱建议设置为相等) 注: 1)单次调用接口传入code的数量上限为100个。 2)每一个 code 均不能为空串。 3)导入结束后系统会自动判断提供方设置库存与实际导入code的量是否一致。 4)导入失败支持重复导入,提示成功为止。
public static CodeDeposit ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardId string 需要进行导入code的卡券ID
codeList string 需导入微信卡券后台的自定义code,上限为100个。
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

CodeDepositAsync() public static method

【异步方法】导入code 新创建卡券情况 如果开发者打算新创建一张支持导入code模式的卡券,不同于以往的创建方式,建议开发者采用以下流程创建预存code模式卡券,否则会报错。 步骤一:创建预存模式卡券,将库存quantity初始值设置为0,并填入Deposit_Mode字段; 步骤二:待卡券通过审核后,调用导入code接口并核查code; 步骤三:调用修改库存接口,须令卡券库存小于或等于导入code的数目。(为了避免混乱建议设置为相等) 注: 1)单次调用接口传入code的数量上限为100个。 2)每一个 code 均不能为空串。 3)导入结束后系统会自动判断提供方设置库存与实际导入code的量是否一致。 4)导入失败支持重复导入,提示成功为止。
public static CodeDepositAsync ( string accessTokenOrAppId, string cardId, string codeList, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 需要进行导入code的卡券ID
codeList string 需导入微信卡券后台的自定义code,上限为100个。
timeOut int
return Task

CodeMark() public static method

Mark(占用)Code接口
public static CodeMark ( string accessTokenOrAppId, string code, string cardId, string openId, string isMark, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 卡券的code码。
cardId string 卡券的ID。
openId string 用券用户的openid。
isMark string 是否要mark(占用)这个code,填写true或者false,表示占用或解除占用。
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

CodeMarkAsync() public static method

【异步方法】Mark(占用)Code接口
public static CodeMarkAsync ( string accessTokenOrAppId, string code, string cardId, string openId, string isMark, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 卡券的code码。
cardId string 卡券的ID。
openId string 用券用户的openid。
isMark string 是否要mark(占用)这个code,填写true或者false,表示占用或解除占用。
timeOut int
return Task

CreateCard() public static method

创建卡券
public static CreateCard ( string accessTokenOrAppId, BaseCardInfo cardInfo, int timeOut = Config.TIME_OUT ) : CardCreateResultJson
accessTokenOrAppId string
cardInfo BaseCardInfo 创建卡券需要的数据,格式可以看CardCreateData.cs
timeOut int 代理请求超时时间(毫秒)
return CardCreateResultJson

CreateCardAsync() public static method

【异步方法】创建卡券
public static CreateCardAsync ( string accessTokenOrAppId, BaseCardInfo cardInfo, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardInfo BaseCardInfo 创建卡券需要的数据,格式可以看CardCreateData.cs
timeOut int 代理请求超时时间(毫秒)
return Task

CreateQR() public static method

生成卡券二维码 获取二维码ticket 后,开发者可用ticket 换取二维码图片。换取指引参考:http://mp.weixin.qq.com/wiki/index.php?title=生成带参数的二维码
public static CreateQR ( string accessTokenOrAppId, string cardId, string code = null, string openId = null, string expireSeconds = null, bool isUniqueCode = false, string outer_id = null, int timeOut = Config.TIME_OUT ) : CreateQRResultJson
accessTokenOrAppId string
cardId string 卡券ID
code string 指定卡券code 码,只能被领一次。use_custom_code 字段为true 的卡券必须填写,非自定义code 不必填写。
openId string 指定领取者的openid,只有该用户能领取。bind_openid 字段为true 的卡券必须填写,非自定义openid 不必填写。
expireSeconds string 指定二维码的有效时间,范围是60 ~ 1800 秒。不填默认为永久有效。
isUniqueCode bool 指定下发二维码,生成的二维码随机分配一个code,领取后不可再次扫描。填写true 或false。默认false。
outer_id string 自定义应用场景ID(v13.7.3起支持)
timeOut int 代理请求超时时间(毫秒)
return CreateQRResultJson

CreateQRAsync() public static method

【异步方法】生成卡券二维码 获取二维码ticket 后,开发者可用ticket 换取二维码图片。换取指引参考:http://mp.weixin.qq.com/wiki/index.php?title=生成带参数的二维码
public static CreateQRAsync ( string accessTokenOrAppId, string cardId, string code = null, string openId = null, string expireSeconds = null, bool isUniqueCode = false, string outer_id = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 卡券ID
code string 指定卡券code 码,只能被领一次。use_custom_code 字段为true 的卡券必须填写,非自定义code 不必填写。
openId string 指定领取者的openid,只有该用户能领取。bind_openid 字段为true 的卡券必须填写,非自定义openid 不必填写。
expireSeconds string 指定二维码的有效时间,范围是60 ~ 1800 秒。不填默认为永久有效。
isUniqueCode bool 指定下发二维码,生成的二维码随机分配一个code,领取后不可再次扫描。填写true 或false。默认false。
outer_id string 自定义应用场景ID(v13.7.3起支持)
timeOut int 代理请求超时时间(毫秒)
return Task

GetApplyProtocol() public static method

public static GetApplyProtocol ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : GetApplyProtocolJsonResult
accessTokenOrAppId string
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetApplyProtocolJsonResult

GetApplyProtocolAsync() public static method

public static GetApplyProtocolAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
timeOut int 代理请求超时时间(毫秒)
return Task

GetCardBizuinInfo() public static method

拉取卡券概况数据接口
public static GetCardBizuinInfo ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : GetCardBizuinInfoResultJson
accessTokenOrAppId string
beginDate string 查询数据的起始时间。
endDate string 查询数据的截至时间。
condSource int 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetCardBizuinInfoResultJson

GetCardBizuinInfoAsync() public static method

【异步方法】拉取卡券概况数据接口
public static GetCardBizuinInfoAsync ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
beginDate string 查询数据的起始时间。
endDate string 查询数据的截至时间。
condSource int 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
timeOut int
return Task

GetCardInfo() public static method

获取免费券数据接口
public static GetCardInfo ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, string cardId, int timeOut = Config.TIME_OUT ) : GetCardInfoResultJson
accessTokenOrAppId string
beginDate string 查询数据的起始时间。
endDate string 查询数据的截至时间。
condSource int 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
cardId string 卡券ID。填写后,指定拉出该卡券的相关数据。
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetCardInfoResultJson

GetCardInfoAsync() public static method

获取免费券数据接口
public static GetCardInfoAsync ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, string cardId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
beginDate string 查询数据的起始时间。
endDate string 查询数据的截至时间。
condSource int 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
cardId string 卡券ID。填写后,指定拉出该卡券的相关数据。
timeOut int
return Task

GetCardList() public static method

获取用户已领取卡券
public static GetCardList ( string accessTokenOrAppId, string openId, string cardId = null, int timeOut = Config.TIME_OUT ) : GetCardListResult
accessTokenOrAppId string
openId string 需要查询的用户openid
cardId string 卡券ID。不填写时默认查询当前appid下的卡券。
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetCardListResult

GetCardListAsync() public static method

【异步方法】获取用户已领取卡券
public static GetCardListAsync ( string accessTokenOrAppId, string openId, string cardId = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
openId string 需要查询的用户openid
cardId string 卡券ID。不填写时默认查询当前appid下的卡券。
timeOut int
return Task

GetCardMemberCardInfo() public static method

拉取会员卡数据接口
public static GetCardMemberCardInfo ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : GetCardMemberCardInfoResultJson
accessTokenOrAppId string
beginDate string 查询数据的起始时间。
endDate string 查询数据的截至时间。
condSource int 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetCardMemberCardInfoResultJson

GetCardMemberCardInfoAsync() public static method

【异步方法】拉取会员卡数据接口
public static GetCardMemberCardInfoAsync ( string accessTokenOrAppId, string beginDate, string endDate, int condSource, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
beginDate string 查询数据的起始时间。
endDate string 查询数据的截至时间。
condSource int 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
timeOut int
return Task

GetCardMerchant() public static method

拉取单个子商户信息接口
public static GetCardMerchant ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : GetCardMerchantJsonResult
accessTokenOrAppId string
appid string
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetCardMerchantJsonResult

GetCardMerchantAsync() public static method

【异步方法】拉取单个子商户信息接口
public static GetCardMerchantAsync ( string accessTokenOrAppId, string appid, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
appid string
timeOut int 代理请求超时时间(毫秒)
return Task

GetCoinsInfo() public static method

public static GetCoinsInfo ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : GetCoinsInfoResultJson
accessTokenOrAppId string
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetCoinsInfoResultJson

GetCoinsInfoAsync() public static method

public static GetCoinsInfoAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
timeOut int
return Task

GetDepositCount() public static method

查询导入code数目
public static GetDepositCount ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : GetDepositCountResultJson
accessTokenOrAppId string
cardId string 进行导入code的卡券ID。
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetDepositCountResultJson

GetDepositCountAsync() public static method

【异步方法】查询导入code数目
public static GetDepositCountAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 进行导入code的卡券ID。
timeOut int
return Task

GetHtml() public static method

图文消息群发卡券
public static GetHtml ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : GetHtmlResult
accessTokenOrAppId string
cardId string
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetHtmlResult

GetHtmlAsync() public static method

【异步方法】图文消息群发卡券
public static GetHtmlAsync ( string accessTokenOrAppId, string cardId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string
timeOut int
return Task

GetOrderList() public static method

查询券点流水详情接口
public static GetOrderList ( string accessTokenOrAppId, int offset, int count, string orderType, NorFilter norFilter, SortInfo sortInfo, int beginTime, int endTime, int timeOut = Config.TIME_OUT ) : GetOrderListResultJson
accessTokenOrAppId string
offset int 分批查询的起点,默认为0
count int 分批查询的数量
orderType string 所要拉取的订单类型ORDER_TYPE_SYS_ADD 平台赠送 ORDER_TYPE_WXPAY 充值 ORDER_TYPE_REFUND 库存回退券点 ORDER_TYPE_REDUCE 券点兑换库存 ORDER_TYPE_SYS_REDUCE 平台扣减
norFilter Senparc.Weixin.MP.AdvancedAPIs.Card.NorFilter 反选,不要拉取的订单
sortInfo Senparc.Weixin.MP.AdvancedAPIs.Card.SortInfo 对结果排序
beginTime int 批量查询订单的起始事件,为时间戳,默认1周前
endTime int 批量查询订单的结束事件,为时间戳,默认为当前时间
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetOrderListResultJson

GetOrderListAsync() public static method

【异步方法】查询券点流水详情接口
public static GetOrderListAsync ( string accessTokenOrAppId, int offset, int count, string orderType, NorFilter norFilter, SortInfo sortInfo, int beginTime, int endTime, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
offset int 分批查询的起点,默认为0
count int 分批查询的数量
orderType string 所要拉取的订单类型ORDER_TYPE_SYS_ADD 平台赠送 ORDER_TYPE_WXPAY 充值 ORDER_TYPE_REFUND 库存回退券点 ORDER_TYPE_REDUCE 券点兑换库存 ORDER_TYPE_SYS_REDUCE 平台扣减
norFilter Senparc.Weixin.MP.AdvancedAPIs.Card.NorFilter 反选,不要拉取的订单
sortInfo Senparc.Weixin.MP.AdvancedAPIs.Card.SortInfo 对结果排序
beginTime int 批量查询订单的起始事件,为时间戳,默认1周前
endTime int 批量查询订单的结束事件,为时间戳,默认为当前时间
timeOut int
return Task

GetpayPrice() public static method

对优惠券批价
public static GetpayPrice ( string accessTokenOrAppId, string cardId, int quantity, int timeOut = Config.TIME_OUT ) : GetpayPriceResultJson
accessTokenOrAppId string
cardId string 需要来配置库存的card_id
quantity int 本次需要兑换的库存数目
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.GetpayPriceResultJson

GetpayPriceAsync() public static method

【异步方法】对优惠券批价
public static GetpayPriceAsync ( string accessTokenOrAppId, string cardId, int quantity, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 需要来配置库存的card_id
quantity int 本次需要兑换的库存数目
timeOut int
return Task

MemberCardActivate() public static method

激活/绑定会员卡
public static MemberCardActivate ( string accessTokenOrAppId, string membershipNumber, string code, string cardId, string activateBeginTime = null, string activateEndTime = null, string initBonus = null, string initBalance = null, string initCustomFieldValue1 = null, string initCustomFieldValue2 = null, string initCustomFieldValue3 = null, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
membershipNumber string 必填,会员卡编号,作为序列号显示在用户的卡包里。
code string 创建会员卡时获取的code
cardId string
activateBeginTime string 激活后的有效起始时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。
activateEndTime string 激活后的有效截至时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。
initBonus string 初始积分,不填为0
initBalance string 初始余额,不填为0
initCustomFieldValue1 string 创建时字段custom_field1定义类型的初始值,限制为4个汉字,12字节。
initCustomFieldValue2 string 创建时字段custom_field2定义类型的初始值,限制为4个汉字,12字节。
initCustomFieldValue3 string 创建时字段custom_field3定义类型的初始值,限制为4个汉字,12字节。
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

MemberCardActivateAsync() public static method

【异步方法】激活/绑定会员卡
public static MemberCardActivateAsync ( string accessTokenOrAppId, string membershipNumber, string code, string cardId, string activateBeginTime = null, string activateEndTime = null, string initBonus = null, string initBalance = null, string initCustomFieldValue1 = null, string initCustomFieldValue2 = null, string initCustomFieldValue3 = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
membershipNumber string 必填,会员卡编号,作为序列号显示在用户的卡包里。
code string 创建会员卡时获取的code
cardId string
activateBeginTime string 激活后的有效起始时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。
activateEndTime string 激活后的有效截至时间。若不填写默认以创建时的 data_info 为准。Unix时间戳格式。
initBonus string 初始积分,不填为0
initBalance string 初始余额,不填为0
initCustomFieldValue1 string 创建时字段custom_field1定义类型的初始值,限制为4个汉字,12字节。
initCustomFieldValue2 string 创建时字段custom_field2定义类型的初始值,限制为4个汉字,12字节。
initCustomFieldValue3 string 创建时字段custom_field3定义类型的初始值,限制为4个汉字,12字节。
timeOut int 代理请求超时时间(毫秒)
return Task

MemberCardDeal() public static method

会员卡交易
public static MemberCardDeal ( string accessTokenOrAppId, string code, string cardId, string recordBonus, decimal addBonus, decimal addBalance, string recordBalance, int timeOut = Config.TIME_OUT ) : MemberCardDealResultJson
accessTokenOrAppId string
code string 要消耗的序列号
cardId string 要消耗序列号所述的card_id。自定义code 的会员卡必填
recordBonus string 商家自定义积分消耗记录,不超过14 个汉字
addBonus decimal 需要变更的积分,扣除积分用“-“表
addBalance decimal 需要变更的余额,扣除金额用“-”表示。单位为分
recordBalance string 商家自定义金额消耗记录,不超过14 个汉字
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.MemberCardDealResultJson

MemberCardDealAsync() public static method

【异步方法】会员卡交易
public static MemberCardDealAsync ( string accessTokenOrAppId, string code, string cardId, string recordBonus, decimal addBonus, decimal addBalance, string recordBalance, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 要消耗的序列号
cardId string 要消耗序列号所述的card_id。自定义code 的会员卡必填
recordBonus string 商家自定义积分消耗记录,不超过14 个汉字
addBonus decimal 需要变更的积分,扣除积分用“-“表
addBalance decimal 需要变更的余额,扣除金额用“-”表示。单位为分
recordBalance string 商家自定义金额消耗记录,不超过14 个汉字
timeOut int 代理请求超时时间(毫秒)
return Task

MerchantQualification() public static method

子商户资质申请接口
public static MerchantQualification ( string accessTokenOrAppId, string appid, string name, string logoMediaid, string businessLicenseMediaid, string operatorIdCardMediaid, string agreementFileMediaid, string primaryCategoryId, string secondaryCategoryId, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
appid string 子商户公众号的appid
name string 子商户商户名,用于显示在卡券券面
logoMediaid string 子商户logo,用于显示在子商户卡券的券面
businessLicenseMediaid string 营业执照或个体工商户执照扫描件的media_id
operatorIdCardMediaid string 当子商户为个体工商户且无公章时,授权函须签名,并额外提交该个体工商户经营者身份证扫描件的media_id
agreementFileMediaid string 子商户与第三方签署的代理授权函的media_id
primaryCategoryId string 一级类目id
secondaryCategoryId string 二级类目id
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

MerchantQualificationAsync() public static method

【异步方法】子商户资质申请接口
public static MerchantQualificationAsync ( string accessTokenOrAppId, string appid, string name, string logoMediaid, string businessLicenseMediaid, string operatorIdCardMediaid, string agreementFileMediaid, string primaryCategoryId, string secondaryCategoryId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
appid string 子商户公众号的appid
name string 子商户商户名,用于显示在卡券券面
logoMediaid string 子商户logo,用于显示在子商户卡券的券面
businessLicenseMediaid string 营业执照或个体工商户执照扫描件的media_id
operatorIdCardMediaid string 当子商户为个体工商户且无公章时,授权函须签名,并额外提交该个体工商户经营者身份证扫描件的media_id
agreementFileMediaid string 子商户与第三方签署的代理授权函的media_id
primaryCategoryId string 一级类目id
secondaryCategoryId string 二级类目id
timeOut int 代理请求超时时间(毫秒)
return Task

ModifyStock() public static method

修改库存接口
public static ModifyStock ( string accessTokenOrAppId, string cardId, int increaseStockValue, int reduceStockValue, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardId string 卡券ID
increaseStockValue int 增加多少库存,支持不填或填0
reduceStockValue int 减少多少库存,可以不填或填0
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

ModifyStockAsync() public static method

【异步方法】修改库存接口
public static ModifyStockAsync ( string accessTokenOrAppId, string cardId, int increaseStockValue, int reduceStockValue, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 卡券ID
increaseStockValue int 增加多少库存,支持不填或填0
reduceStockValue int 减少多少库存,可以不填或填0
timeOut int
return Task

MovieCardUpdate() public static method

更新电影票
public static MovieCardUpdate ( string accessTokenOrAppId, string code, string cardId, string ticketClass, string showTime, int duration, string screeningRoom, string seatNumbers, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 电影票的序列号
cardId string 电影票card_id。自定义code 的电影票为必填,非自定义code 的电影票不必填。
ticketClass string 电影票的类别,如2D、3D
showTime string 电影放映时间对应的时间戳
duration int 放映时长,填写整数
screeningRoom string 该场电影的影厅信息
seatNumbers string 座位号
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

MovieCardUpdateAsync() public static method

【异步方法】更新电影票
public static MovieCardUpdateAsync ( string accessTokenOrAppId, string code, string cardId, string ticketClass, string showTime, int duration, string screeningRoom, string seatNumbers, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 电影票的序列号
cardId string 电影票card_id。自定义code 的电影票为必填,非自定义code 的电影票不必填。
ticketClass string 电影票的类别,如2D、3D
showTime string 电影放映时间对应的时间戳
duration int 放映时长,填写整数
screeningRoom string 该场电影的影厅信息
seatNumbers string 座位号
timeOut int 代理请求超时时间(毫秒)
return Task

PayActive() public static method

public static PayActive ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : PayActiveResultJson
accessTokenOrAppId string
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.PayActiveResultJson

PayActiveAsync() public static method

【异步方法】开通券点账户接口
public static PayActiveAsync ( string accessTokenOrAppId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
timeOut int
return Task

PayCellSet() public static method

设置微信买单接口 注意:在调用买单接口之前,请开发者务必确认是否已经开通了微信支付以及对相应的cardid设置了门店,否则会报错 错误码,0为正常;43008为商户没有开通微信支付权限
public static PayCellSet ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardId string 卡券ID
isOpen bool 是否开启买单功能,填true/false
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

PayCellSetAsync() public static method

【异步方法】设置微信买单接口 注意:在调用买单接口之前,请开发者务必确认是否已经开通了微信支付以及对相应的cardid设置了门店,否则会报错 错误码,0为正常;43008为商户没有开通微信支付权限
public static PayCellSetAsync ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 卡券ID
isOpen bool 是否开启买单功能,填true/false
timeOut int
return Task

PayConfirm() public static method

确认兑换库存接口
public static PayConfirm ( string accessTokenOrAppId, string cardId, int quantity, string orderId, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardId string 需要来兑换库存的card_id
quantity int 本次需要兑换的库存数目
orderId string 仅可以使用上面得到的订单号,保证批价有效性
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

PayConfirmAsync() public static method

【异步方法】确认兑换库存接口
public static PayConfirmAsync ( string accessTokenOrAppId, string cardId, int quantity, string orderId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 需要来兑换库存的card_id
quantity int 本次需要兑换的库存数目
orderId string 仅可以使用上面得到的订单号,保证批价有效性
timeOut int
return Task

PayGetOrder() public static method

查询订单详情接口
public static PayGetOrder ( string accessTokenOrAppId, int orderId, int timeOut = Config.TIME_OUT ) : PayGetOrderResultJson
accessTokenOrAppId string
orderId int 上一步中获得的订单号,作为一次交易的唯一凭证
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.PayGetOrderResultJson

PayGetOrderAsync() public static method

【异步方法】查询订单详情接口
public static PayGetOrderAsync ( string accessTokenOrAppId, int orderId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
orderId int 上一步中获得的订单号,作为一次交易的唯一凭证
timeOut int
return Task

PayRecharge() public static method

充值券点接口
public static PayRecharge ( string accessTokenOrAppId, int coinCount, int timeOut = Config.TIME_OUT ) : PayRechargeResultJson
accessTokenOrAppId string
coinCount int 需要充值的券点数目,1点=1元
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.PayRechargeResultJson

PayRechargeAsync() public static method

【异步方法】充值券点接口
public static PayRechargeAsync ( string accessTokenOrAppId, int coinCount, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
coinCount int 需要充值的券点数目,1点=1元
timeOut int
return Task

RecommendSet() public static method

设置跟随推荐接口 有 使用消息配置卡券(cardCellData) 和 使用消息配置URL(urlCellData) 两种方式 注意:cardCellData和urlCellData必须也只能选择一个,不可同时为空
public static RecommendSet ( string accessTokenOrAppId, string cardId, CardCell cardCellData = null, UrlCell urlCellData = null, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardId string 卡券ID
cardCellData Senparc.Weixin.MP.AdvancedAPIs.Card.CardCell 使用消息配置卡券数据
urlCellData Senparc.Weixin.MP.AdvancedAPIs.Card.UrlCell 使用消息配置URL数据
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

RecommendSetAsync() public static method

【异步方法】设置跟随推荐接口 有 使用消息配置卡券(cardCellData) 和 使用消息配置URL(urlCellData) 两种方式 注意:cardCellData和urlCellData必须也只能选择一个,不可同时为空
public static RecommendSetAsync ( string accessTokenOrAppId, string cardId, CardCell cardCellData = null, UrlCell urlCellData = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 卡券ID
cardCellData Senparc.Weixin.MP.AdvancedAPIs.Card.CardCell 使用消息配置卡券数据
urlCellData Senparc.Weixin.MP.AdvancedAPIs.Card.UrlCell 使用消息配置URL数据
timeOut int
return Task

SelfConsumecellSet() public static method

设置自助核销接口 注意:设置自助核销的card_id必须已经配置了门店,否则会报错。 错误码,0为正常;43008为商户没有开通微信支付权限
public static SelfConsumecellSet ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
cardId string 卡券ID
isOpen bool 是否开启自助核销功能,填true/false
timeOut int
return Senparc.Weixin.Entities.WxJsonResult

SelfConsumecellSetAsync() public static method

【异步方法】设置自助核销接口 注意:设置自助核销的card_id必须已经配置了门店,否则会报错。 错误码,0为正常;43008为商户没有开通微信支付权限
public static SelfConsumecellSetAsync ( string accessTokenOrAppId, string cardId, bool isOpen, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string 卡券ID
isOpen bool 是否开启自助核销功能,填true/false
timeOut int
return Task

ShelfCreate() public static method

创建货架
public static ShelfCreate ( string accessTokenOrAppId, ShelfCreateData data, int timeOut = Config.TIME_OUT ) : ShelfCreateResultJson
accessTokenOrAppId string
data Senparc.Weixin.MP.AdvancedAPIs.Card.ShelfCreateData
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.ShelfCreateResultJson

ShelfCreateAsync() public static method

【异步方法】创建货架
public static ShelfCreateAsync ( string accessTokenOrAppId, ShelfCreateData data, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
data Senparc.Weixin.MP.AdvancedAPIs.Card.ShelfCreateData
timeOut int
return Task

SubmerChantBatchGet() public static method

public static SubmerChantBatchGet ( string accessTokenOrAppId, string beginId, int limit, string status, int timeOut = Config.TIME_OUT ) : SubmerChantBatchGetJsonResult
accessTokenOrAppId string
beginId string 起始的子商户id,一个母商户公众号下唯一
limit int 拉取的子商户的个数,最大值为100
status string json结构
timeOut int 子商户审核状态,填入后,只会拉出当前状态的子商户
return Senparc.Weixin.MP.AdvancedAPIs.Card.SubmerChantBatchGetJsonResult

SubmerChantBatchGetAsync() public static method

public static SubmerChantBatchGetAsync ( string accessTokenOrAppId, string beginId, int limit, string status, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
beginId string 起始的子商户id,一个母商户公众号下唯一
limit int 拉取的子商户的个数,最大值为100
status string json结构
timeOut int 子商户审核状态,填入后,只会拉出当前状态的子商户
return Task

SubmerChantGet() public static method

public static SubmerChantGet ( string accessTokenOrAppId, string merchantId, int timeOut = Config.TIME_OUT ) : SubmerChantSubmitJsonResult
accessTokenOrAppId string
merchantId string 子商户id,一个母商户公众号下唯一。
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.SubmerChantSubmitJsonResult

SubmerChantGetAsync() public static method

public static SubmerChantGetAsync ( string accessTokenOrAppId, string merchantId, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
merchantId string 子商户id,一个母商户公众号下唯一。
timeOut int 代理请求超时时间(毫秒)
return Task

SubmerChantSubmit() public static method

创建子商户接口
public static SubmerChantSubmit ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : SubmerChantSubmitJsonResult
accessTokenOrAppId string
info Senparc.Weixin.MP.AdvancedAPIs.Card.InfoList json结构
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.SubmerChantSubmitJsonResult

SubmerChantSubmitAsync() public static method

【异步方法】创建子商户接口
public static SubmerChantSubmitAsync ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
info Senparc.Weixin.MP.AdvancedAPIs.Card.InfoList json结构
timeOut int 代理请求超时时间(毫秒)
return Task

SubmerChantUpdate() public static method

更新子商户接口
public static SubmerChantUpdate ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : SubmerChantSubmitJsonResult
accessTokenOrAppId string
info Senparc.Weixin.MP.AdvancedAPIs.Card.InfoList json结构
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.MP.AdvancedAPIs.Card.SubmerChantSubmitJsonResult

SubmerChantUpdateAsync() public static method

【异步方法】 更新子商户接口
public static SubmerChantUpdateAsync ( string accessTokenOrAppId, InfoList info, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
info Senparc.Weixin.MP.AdvancedAPIs.Card.InfoList json结构
timeOut int 代理请求超时时间(毫秒)
return Task

UpdateMeetingTicket() public static method

更新会议门票接口
public static UpdateMeetingTicket ( string accessTokenOrAppId, string code, string cardId = null, string zone = null, string entrance = null, string seatNumber = null, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 用户的门票唯一序列号
cardId string 要更新门票序列号所述的card_id , 生成券时use_custom_code 填写true 时必填。
zone string 区域
entrance string 入口
seatNumber string 座位号
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

UpdateMeetingTicketAsync() public static method

【异步方法】更新会议门票接口
public static UpdateMeetingTicketAsync ( string accessTokenOrAppId, string code, string cardId = null, string zone = null, string entrance = null, string seatNumber = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 用户的门票唯一序列号
cardId string 要更新门票序列号所述的card_id , 生成券时use_custom_code 填写true 时必填。
zone string 区域
entrance string 入口
seatNumber string 座位号
timeOut int 代理请求超时时间(毫秒)
return Task

UpdateUser() public static method

更新会员信息
public static UpdateUser ( string accessTokenOrAppId, string code, string cardId, int addBonus, int addBalance, string backgroundPicUrl = null, int bonus = null, int balance = null, string recordBonus = null, string recordBalance = null, string customFieldValue1 = null, string customFieldValue2 = null, string customFieldValue3 = null, int timeOut = Config.TIME_OUT ) : UpdateUserResult
accessTokenOrAppId string
code string 卡券Code码。
cardId string 卡券ID。
addBonus int 需要变更的积分,扣除积分用“-“表示。
addBalance int 需要变更的余额,扣除金额用“-”表示。单位为分。
backgroundPicUrl string 用户卡片的背景图片
bonus int 需要设置的积分全量值,传入的数值会直接显示,如果同时传入add_bonus和bonus,则前者无效。
balance int 需要设置的余额全量值,传入的数值会直接显示,如果同时传入add_balance和balance,则前者无效。
recordBonus string 商家自定义积分消耗记录,不超过14个汉字。
recordBalance string 商家自定义金额消耗记录,不超过14个汉字。
customFieldValue1 string 创建时字段custom_field1定义类型的最新数值,限制为4个汉字,12字节。
customFieldValue2 string 创建时字段custom_field2定义类型的最新数值,限制为4个汉字,12字节。
customFieldValue3 string 创建时字段custom_field3定义类型的最新数值,限制为4个汉字,12字节。
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.UpdateUserResult

UpdateUserAsync() public static method

【异步方法】 更新会员信息
public static UpdateUserAsync ( string accessTokenOrAppId, string code, string cardId, int addBonus, int addBalance, string backgroundPicUrl = null, int bonus = null, int balance = null, string recordBonus = null, string recordBalance = null, string customFieldValue1 = null, string customFieldValue2 = null, string customFieldValue3 = null, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 卡券Code码。
cardId string 卡券ID。
addBonus int 需要变更的积分,扣除积分用“-“表示。
addBalance int 需要变更的余额,扣除金额用“-”表示。单位为分。
backgroundPicUrl string 用户卡片的背景图片
bonus int 需要设置的积分全量值,传入的数值会直接显示,如果同时传入add_bonus和bonus,则前者无效。
balance int 需要设置的余额全量值,传入的数值会直接显示,如果同时传入add_balance和balance,则前者无效。
recordBonus string 商家自定义积分消耗记录,不超过14个汉字。
recordBalance string 商家自定义金额消耗记录,不超过14个汉字。
customFieldValue1 string 创建时字段custom_field1定义类型的最新数值,限制为4个汉字,12字节。
customFieldValue2 string 创建时字段custom_field2定义类型的最新数值,限制为4个汉字,12字节。
customFieldValue3 string 创建时字段custom_field3定义类型的最新数值,限制为4个汉字,12字节。
timeOut int
return Task

UpdateUserBalance() public static method

更新红包金额
public static UpdateUserBalance ( string accessTokenOrAppId, string code, string cardId, decimal balance, int timeOut = Config.TIME_OUT ) : WxJsonResult
accessTokenOrAppId string
code string 红包的序列号
cardId string 自定义code 的卡券必填。非自定义code 可不填。
balance decimal 红包余额
timeOut int 代理请求超时时间(毫秒)
return Senparc.Weixin.Entities.WxJsonResult

UpdateUserBalanceAsync() public static method

【异步方法】更新红包金额
public static UpdateUserBalanceAsync ( string accessTokenOrAppId, string code, string cardId, decimal balance, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
code string 红包的序列号
cardId string 自定义code 的卡券必填。非自定义code 可不填。
balance decimal 红包余额
timeOut int 代理请求超时时间(毫秒)
return Task

UserinfoGet() public static method

拉取会员信息接口
public static UserinfoGet ( string accessTokenOrAppId, string cardId, string code, int timeOut = Config.TIME_OUT ) : UserinfoGetResult
accessTokenOrAppId string
cardId string CardID
code string Code
timeOut int
return Senparc.Weixin.MP.AdvancedAPIs.Card.UserinfoGetResult

UserinfoGetAsync() public static method

【异步方法】拉取会员信息接口
public static UserinfoGetAsync ( string accessTokenOrAppId, string cardId, string code, int timeOut = Config.TIME_OUT ) : Task
accessTokenOrAppId string
cardId string CardID
code string Code
timeOut int
return Task