From 55c244aff09df73b6df1b0c70bd830388423b623 Mon Sep 17 00:00:00 2001 From: Jerry <85411418@qq.com> Date: Mon, 15 Apr 2024 23:37:58 +0800 Subject: [PATCH] update --- alipay/payment_api.go | 2 +- doc/alipay.md | 213 ++++++++++++++++++++++++++---------------- 2 files changed, 135 insertions(+), 80 deletions(-) diff --git a/alipay/payment_api.go b/alipay/payment_api.go index 62d397c0..dc919082 100644 --- a/alipay/payment_api.go +++ b/alipay/payment_api.go @@ -75,7 +75,7 @@ func (a *Client) TradeAppPay(ctx context.Context, bm gopay.BodyMap) (payParam st } // alipay.trade.wap.pay(手机网站支付接口2.0) -// 文档地址:https://opendocs.alipay.com/open/02ivbs?scene=21&ref=api +// 文档地址:https://opendocs.alipay.com/open/02ivbs func (a *Client) TradeWapPay(ctx context.Context, bm gopay.BodyMap) (payUrl string, err error) { bm.Set("product_code", "QUICK_WAP_WAY") err = bm.CheckEmptyError("out_trade_no", "total_amount", "subject") diff --git a/doc/alipay.md b/doc/alipay.md index 7becf915..44770d97 100644 --- a/doc/alipay.md +++ b/doc/alipay.md @@ -323,63 +323,132 @@ xlog.Infof("%+v", phone) * 商户mcc信息查询接口:TODO:https://opendocs.alipay.com/open/04fgwu * 店铺增加收单账号接口:TODO:https://opendocs.alipay.com/open/54b69b89_ant.merchant.expand.shop.receiptaccount.save * 商家券 2.0 - * 创建商家券活动接口:TODO:https://opendocs.alipay.com/open/7ad3a7bf_alipay.marketing.activity.ordervoucher.create - * 同步商家券券码接口:TODO:https://opendocs.alipay.com/open/7ed0450d_alipay.marketing.activity.ordervoucher.codedeposit - * 券活动创建通知接口:TODO:https://opendocs.alipay.com/open/f28e36e2_alipay.marketing.activity.message.created - * 修改商家券活动基本信息接口:TODO:https://opendocs.alipay.com/open/528f83f6_alipay.marketing.activity.ordervoucher.modify - * 券活动修改通知接口:TODO:https://opendocs.alipay.com/open/f80939f9_alipay.marketing.activity.message.modified - * 停止商家券活动接口:TODO:https://opendocs.alipay.com/open/16803efe_alipay.marketing.activity.ordervoucher.stop - * 券活动停止通知接口:TODO:https://opendocs.alipay.com/open/a055ad21_alipay.marketing.activity.message.stopped - * 修改商家券活动发券数量上限接口:TODO:https://opendocs.alipay.com/open/4e2acff5_alipay.marketing.activity.ordervoucher.append - * 券活动预算追加通知接口:TODO:https://opendocs.alipay.com/open/d4697d94_alipay.marketing.activity.message.appended - * 活动领取咨询接口:TODO:https://opendocs.alipay.com/open/cdf2e908_alipay.marketing.activity.consult - * 同步券核销状态接口:TODO:https://opendocs.alipay.com/open/3ffce87f_alipay.marketing.activity.ordervoucher.use - * 取消券核销状态接口:TODO:https://opendocs.alipay.com/open/4682759b_alipay.marketing.activity.ordervoucher.refund - * 查询商家券活动接口:TODO:https://opendocs.alipay.com/open/51f5946e_alipay.marketing.activity.ordervoucher.query - * 查询活动详情接口:TODO:https://opendocs.alipay.com/open/f76b603f_alipay.marketing.activity.query - * 统计商家券券码数量接口:TODO:https://opendocs.alipay.com/open/f6e49e82_alipay.marketing.activity.ordervoucher.codecount - * 条件查询活动列表接口:TODO:https://opendocs.alipay.com/open/55aa8ee8_alipay.marketing.activity.batchquery - * 条件查询用户券接口:TODO:https://opendocs.alipay.com/open/300dff38_alipay.marketing.activity.user.batchqueryvoucher - * 查询用户券详情接口:TODO:https://opendocs.alipay.com/open/abffd3f6_alipay.marketing.activity.user.queryvoucher - * 券领取通知接口:TODO:https://opendocs.alipay.com/open/0ed08444_alipay.marketing.activity.message.received - * 券核销消息接口:TODO:https://opendocs.alipay.com/open/6a0f4680_alipay.marketing.activity.message.used - * 券过期消息接口:TODO:https://opendocs.alipay.com/open/ac03373c_alipay.marketing.activity.message.expired - * 查询活动可用小程序接口:TODO:https://opendocs.alipay.com/open/634212b2_alipay.marketing.activity.app.batchquery - * 查询活动可用门店接口:TODO:https://opendocs.alipay.com/open/cf4e0873_alipay.marketing.activity.shop.batchquery - * 查询活动适用商品接口:TODO:https://opendocs.alipay.com/open/1bee5767_alipay.marketing.activity.goods.batchquery - * - * - * 创建现金活动接口:TODO:https://opendocs.alipay.com/open/029yy9 - * 触发现金红包活动接口:TODO:https://opendocs.alipay.com/open/029yya - * 更改现金活动状态接口:TODO:https://opendocs.alipay.com/open/029yyb - * 现金活动列表查询接口:TODO:https://opendocs.alipay.com/open/02a1f9 - * 现金活动详情查询接口:TODO:https://opendocs.alipay.com/open/02a1fa + * 活动创建 + * 创建商家券活动接口:TODO:https://opendocs.alipay.com/open/7ad3a7bf_alipay.marketing.activity.ordervoucher.create + * 同步商家券券码接口:TODO:https://opendocs.alipay.com/open/7ed0450d_alipay.marketing.activity.ordervoucher.codedeposit + * 券活动创建通知接口:TODO:https://opendocs.alipay.com/open/f28e36e2_alipay.marketing.activity.message.created + * 活动修改 + * 修改商家券活动基本信息接口:TODO:https://opendocs.alipay.com/open/528f83f6_alipay.marketing.activity.ordervoucher.modify + * 券活动修改通知接口:TODO:https://opendocs.alipay.com/open/f80939f9_alipay.marketing.activity.message.modified + * 活动停止 + * 停止商家券活动接口:TODO:https://opendocs.alipay.com/open/16803efe_alipay.marketing.activity.ordervoucher.stop + * 券活动停止通知接口:TODO:https://opendocs.alipay.com/open/a055ad21_alipay.marketing.activity.message.stopped + * 预算追加 + * 修改商家券活动发券数量上限接口:TODO:https://opendocs.alipay.com/open/4e2acff5_alipay.marketing.activity.ordervoucher.append + * 券活动预算追加通知接口:TODO:https://opendocs.alipay.com/open/d4697d94_alipay.marketing.activity.message.appended + * 活动发放 + * 活动领取咨询接口:TODO:https://opendocs.alipay.com/open/cdf2e908_alipay.marketing.activity.consult + * 优惠券核销 + * 同步券核销状态接口:TODO:https://opendocs.alipay.com/open/3ffce87f_alipay.marketing.activity.ordervoucher.use + * 取消券核销状态接口:TODO:https://opendocs.alipay.com/open/4682759b_alipay.marketing.activity.ordervoucher.refund + * 活动查询 + * 查询商家券活动接口:TODO:https://opendocs.alipay.com/open/51f5946e_alipay.marketing.activity.ordervoucher.query + * 查询活动详情接口:TODO:https://opendocs.alipay.com/open/f76b603f_alipay.marketing.activity.query + * 统计商家券券码数量接口:TODO:https://opendocs.alipay.com/open/f6e49e82_alipay.marketing.activity.ordervoucher.codecount + * 条件查询活动列表接口:TODO:https://opendocs.alipay.com/open/55aa8ee8_alipay.marketing.activity.batchquery + * 条件查询用户券接口:TODO:https://opendocs.alipay.com/open/300dff38_alipay.marketing.activity.user.batchqueryvoucher + * 查询用户券详情接口:TODO:https://opendocs.alipay.com/open/abffd3f6_alipay.marketing.activity.user.queryvoucher + * 券领取通知接口:TODO:https://opendocs.alipay.com/open/0ed08444_alipay.marketing.activity.message.received + * 券核销消息接口:TODO:https://opendocs.alipay.com/open/6a0f4680_alipay.marketing.activity.message.used + * 券过期消息接口:TODO:https://opendocs.alipay.com/open/ac03373c_alipay.marketing.activity.message.expired + * 查询活动可用小程序接口:TODO:https://opendocs.alipay.com/open/634212b2_alipay.marketing.activity.app.batchquery + * 查询活动可用门店接口:TODO:https://opendocs.alipay.com/open/cf4e0873_alipay.marketing.activity.shop.batchquery + * 查询活动适用商品接口:TODO:https://opendocs.alipay.com/open/1bee5767_alipay.marketing.activity.goods.batchquery + * 商家会员卡 + * 基础功能 + * 会员卡模板创建接口:TODO:https://opendocs.alipay.com/open/b2854ad3_alipay.marketing.card.template.create + * 会员卡开通,获取会员卡信息接口:TODO:https://opendocs.alipay.com/open/03sx83 + * 会员卡更新接口:TODO:https://opendocs.alipay.com/open/03sx89 + * 扩展功能 + * 会员卡开卡表单模板配置接口:TODO:https://opendocs.alipay.com/open/03sx82 + * 会员卡开卡结果通知接口:TODO:https://opendocs.alipay.com/open/03sx84 + * 会员卡模板修改接口:TODO:https://opendocs.alipay.com/open/e3227c82_alipay.marketing.card.template.modify + * 会员卡模板查询接口:TODO:https://opendocs.alipay.com/open/690f3d16_alipay.marketing.card.template.query + * 会员卡查询接口:TODO:https://opendocs.alipay.com/open/03sx88 + * 会员卡删卡接口:TODO:https://opendocs.alipay.com/open/03sx8a + * 会员卡消息通知接口:TODO:https://opendocs.alipay.com/open/06ruek + * 上传门店照片和视频接口:TODO:https://opendocs.alipay.com/open/03sx81 + * 营销活动送红包 + * 创建现金活动接口:TODO:https://opendocs.alipay.com/open/029yy9 + * 触发现金红包活动接口:TODO:https://opendocs.alipay.com/open/029yya + * 更改现金活动状态接口:TODO:https://opendocs.alipay.com/open/029yyb + * 现金活动列表查询接口:TODO:https://opendocs.alipay.com/open/02a1f9 + * 现金活动详情查询接口:TODO:https://opendocs.alipay.com/open/02a1fa + * 红包 + * 资金转账页面支付接口: `client.FundTransPagePay()` + * 现金红包无线支付接口: `client.FundTransAppPay()` + * 单笔转账接口:`client.FundTransUniTransfer()` + * 转账业务单据查询接口:`client.FundTransCommonQuery()` + * 资金单据状态变更通知接口:TODO:https://opendocs.alipay.com/open/02byvf + * 资金退回成功通知接口:TODO:https://opendocs.alipay.com/open/02byvg + * 资金退回接口: `client.FundTransRefund()` + * 棋盘密云 + * 接口上传人群 + * 上传创建人群接口:TODO:https://opendocs.alipay.com/open/e93d9a54_alipay.merchant.qipan.crowd.create + * 人群中追加用户接口:TODO:https://opendocs.alipay.com/open/04330914_alipay.merchant.qipan.crowduser.add + * 人群中删除用户接口:TODO:https://opendocs.alipay.com/open/80646633_alipay.merchant.qipan.crowduser.delete + * 标签圈选创建人群 + * 查询圈选标签列表接口:TODO:https://opendocs.alipay.com/open/8e411cec_alipay.marketing.qipan.crowdtag.query + * 标签圈选创建人群接口:TODO:https://opendocs.alipay.com/open/cbf0efa4_alipay.marketing.qipan.crowdwithtag.create + * 标签圈选预估人群规模接口:TODO:https://opendocs.alipay.com/open/adb5dd04_alipay.marketing.qipan.crowdwithtag.query + * 管理人群 + * 查询人群列表接口:TODO:https://opendocs.alipay.com/open/b7f3caec_alipay.merchant.qipan.crowd.batchquery + * 查询人群详情接口:TODO:https://opendocs.alipay.com/open/be384367_alipay.merchant.qipan.crowd.query + * 修改人群接口:TODO:https://opendocs.alipay.com/open/6c8ebb31_alipay.merchant.qipan.crowd.modify + * 数据洞察 + * 看板分析接口:TODO:https://opendocs.alipay.com/open/aa5066aa_alipay.merchant.qipan.board.query + * 画像分析接口:TODO:https://opendocs.alipay.com/open/46a75f4e_alipay.merchant.qipan.insight.query + * 行为分析接口:TODO:https://opendocs.alipay.com/open/56735ac5_alipay.merchant.qipan.behavior.query + * 趋势分析接口:TODO:https://opendocs.alipay.com/open/8ee7795a_alipay.merchant.qipan.trend.query + * 常住省市查询接口:TODO:https://opendocs.alipay.com/open/f7d99821_alipay.merchant.qipan.insightcity.query +* 资金产品 + * 转账到支付宝账户 + * 支付宝资金账户资产查询接口:`client.FundAccountQuery()` + * 申请电子回单(incubating)接口:TODO:https://opendocs.alipay.com/open/1aad1956_alipay.data.bill.ereceipt.apply + * 查询电子回单状态(incubating)接口:TODO:https://opendocs.alipay.com/open/30b94a2f_alipay.data.bill.ereceipt.query + * 查询转账订单接口: `client.FundTransOrderQuery()` + * 批次下单接口: `client.FundBatchCreate()` + * 批量转账关单接口: `client.FundBatchClose()` + * 批量转账明细查询接口: `client.FundBatchDetailQuery()` + * 资金收款账号绑定关系查询: `client.FundTransPayeeBindQuery()` * 会员产品 - * App支付宝登录 - * 换取授权访问令牌接口:`client.SystemOauthToken()` - * 支付宝会员授权信息查询接口:`client.UserInfoShare()` - * 用户登陆授权:`client.UserInfoAuth()` * 人脸验证 * 人脸核身 - * 人脸核身初始化接口:TODO:https://opendocs.alipay.com/open/04jg6r - * 人脸核身结果查询接口:TODO:https://opendocs.alipay.com/open/04jg6s - * 初始化人脸认证服务接口:TODO:https://opendocs.alipay.com/open/02zloa - * 开始人脸认证服务接口:TODO:https://opendocs.alipay.com/open/02zlob - * 查询人脸认证记录接口:TODO:https://opendocs.alipay.com/open/02zloc - * 权威核验源的核验接口:TODO:https://opendocs.alipay.com/open/04pxq6 + * APP人脸核身初始化接口:TODO:https://opendocs.alipay.com/open/04jg6r + * APP人脸核身结果查询接口:TODO:https://opendocs.alipay.com/open/04jg6s + * H5人脸核身初始化接口:TODO:https://opendocs.alipay.com/open/02zloa + * H5人脸核身开始认证接口:TODO:https://opendocs.alipay.com/open/02zlob + * H5人脸核身查询记录接口:TODO:https://opendocs.alipay.com/open/02zloc + * 纯服务端人脸核身接口:TODO:https://opendocs.alipay.com/open/04pxq6 * 活体检测 * 人脸检测初始化接口:TODO:https://opendocs.alipay.com/open/03nisu * 人脸检测结果数据查询接口:TODO:https://opendocs.alipay.com/open/03nisv - * 卡证识别 - * OCR端云一体化识别初始化接口:TODO:https://opendocs.alipay.com/open/043ksf - * 服务端 OCR 接口:TODO:https://opendocs.alipay.com/open/05ut8h + * OCR文字识别 + * 服务端OCR接口:TODO:https://opendocs.alipay.com/open/05ut8h + * App端OCR初始化接口:TODO:https://opendocs.alipay.com/open/043ksf + * 文字识别OCR接口:TODO:https://opendocs.alipay.com/open/0776c2cb_datadigital.fincloud.generalsaas.ocr.common.detect + * 获取会员信息 + * 支付宝会员授权信息查询接口:`client.UserInfoShare()` + * 换取授权访问令牌接口:`client.SystemOauthToken()` + * 用户授权取消消息接口:TODO:https://opendocs.alipay.com/open/b4f0d4cf_alipay.open.auth.userauth.cancelled + * 用户授权关系查询接口:TODO:https://opendocs.alipay.com/open/6b97edd1_alipay.open.auth.userauth.relationship.query + * 查询解除授权明细接口:TODO:https://opendocs.alipay.com/open/77e7fec5_alipay.user.deloauth.detail.query + * 支付宝身份验证 + * 身份认证记录查询: `client.UserCertifyOpenQuery()` + * 身份认证初始化服务接口: `client.UserCertifyOpenInit()` + * 身份认证开始认证: `client.UserCertifyOpenCertify()` + * APP支付宝登录 + * 用户登录授权接口:`client.UserInfoAuth()` * 信用产品 * 芝麻GO * 芝麻GO签约预创单接口:`client.ZhimaCreditPeZmgoPreorderCreate()` * 芝麻GO页面签约接口:TODO:https://opendocs.alipay.com/open/03u934 + * 芝麻GO业务签约变更商户通知接口:TODO:https://opendocs.alipay.com/open/03ums1 * 商家芝麻GO累计数据回传接口:`client.ZhimaMerchantZmgoCumulateSync()` * 商家芝麻GO累计数据查询接口:`client.ZhimaMerchantZmgoCumulateQuery()` + * 芝麻GO业务协议变更商户通知:TODO:https://opendocs.alipay.com/open/03up3c * 芝麻GO结算申请接口:TODO:https://opendocs.alipay.com/open/03usxk + * 芝麻GO业务结算变更商户通知接口:TODO:https://opendocs.alipay.com/open/03ub1d * 芝麻GO结算退款接口:`client.ZhimaCreditPeZmgoSettleRefund()` * 芝麻Go协议查询接口:`client.ZhimaCreditPeZmgoAgreementQuery()` * 芝麻GO协议解约接口:`client.ZhimaCreditPeZmgoAgreementUnsign()` @@ -391,34 +460,32 @@ xlog.Infof("%+v", phone) * 芝麻GO支付下单链路签约申请: `client.ZhimaCreditPeZmgoPaysignApply()` * 芝麻GO支付下单链路签约确认: `client.ZhimaCreditPeZmgoPaysignConfirm()` * 芝麻先享 - * 信用服务开通/授权接口:TODO:https://opendocs.alipay.com/open/03uloz - * 查询服务开通/授权信息接口:TODO:https://opendocs.alipay.com/open/03ulp0 - * 信用服务订单查询接口:TODO:https://opendocs.alipay.com/open/03vtet - * 结束信用服务订单接口:TODO:https://opendocs.alipay.com/open/03vteu - * 芝麻先享信用服务下单(免用户确认场景)接口:TODO:https://opendocs.alipay.com/open/03ulpo - * 芝麻先享信用服务下单(用户确认场景)接口:TODO:https://opendocs.alipay.com/open/03ulpp - * 芝麻工作证 - * 职得身份认证查询接口接口:TODO:https://opendocs.alipay.com/open/05bget + * 服务开通 + * 信用服务开通/授权接口:TODO:https://opendocs.alipay.com/open/03uloz + * 查询服务开通/授权信息接口:TODO:https://opendocs.alipay.com/open/03ulp0 + * 服务开通/授权状态变更通知:TODO:https://opendocs.alipay.com/open/50885f82_zhima.credit.payafteruse.creditagreement.changed + * 信用下单 + * 芝麻先享信用服务下单(免用户确认场景)接口:TODO:https://opendocs.alipay.com/open/03ulpo + * 芝麻先享信用服务下单(用户确认场景)接口:TODO:https://opendocs.alipay.com/open/03ulpp + * 信用服务订单查询接口:TODO:https://opendocs.alipay.com/open/03vtet + * 结束信用服务订单接口:TODO:https://opendocs.alipay.com/open/03vteu + * 芝麻先享信用服务订单状态变更通知接口:TODO:https://opendocs.alipay.com/open/6c3a11df_zhima.credit.payafteruse.creditbizorder.changed + * 扣款 + * 统一收单交易订单支付接口:TODO:https://opendocs.alipay.com/open/2e81a85f_alipay.trade.order.pay + * 芝麻免押 + * 创建免押订单接口:`client:FundAuthOrderAppFreeze()` + * 完结免押订单接口:`client.FundAuthOrderUnfreeze()` + * 查询免押订单接口:`client.FundAuthOperationDetailQuery()` + * 取消免押订单接口:`client.FundAuthOperationCancel()` + * 芝麻身份信息验证 + * 信用服务开通/授权接口:TODO:https://opendocs.alipay.com/open/63612668_zhima.credit.payafteruse.creditagreement.sign + * 职得身份认证查询接口:TODO:https://opendocs.alipay.com/open/351177b5_zhima.customer.jobworth.authentication.query * 职得工作证信息匹配度查询: `client.ZhimaCustomerJobworthAdapterQuery()` * 职得工作证外部渠道应用数据回流: `client.ZhimaCustomerJobworthSceneUse()` + * 身份验真预咨询服务接口:TODO:https://opendocs.alipay.com/open/16f72e43_zhima.customer.jobworth.authentication.preconsult * 安全产品 * 交易安全防护 * 商户数据同步:TODO:https://opendocs.alipay.com/open/02qth4 -* 转账到支付宝账户 - * 单笔转账接口:`client.FundTransUniTransfer()` - * 转账业务单据查询接口:`client.FundTransCommonQuery()` - * 支付宝资金账户资产查询接口:`client.FundAccountQuery()` - * 申请电子回单(incubating)接口:TODO:https://opendocs.alipay.com/open/02byus - * 查询电子回单状态(incubating)接口:TODO:https://opendocs.alipay.com/open/02byut - * 查询转账订单接口: `client.FundTransOrderQuery()` - * 批次下单接口: `client.FundBatchCreate()` - * 批量转账关单接口: `client.FundBatchClose()` - * 批量转账明细查询接口: `client.FundBatchDetailQuery()` - * 资金收款账号绑定关系查询: `client.FundTransPayeeBindQuery()` -* 现金红包 - * 资金转账页面支付接口: `client.FundTransPagePay()` - * 现金红包无线支付接口: `client.FundTransAppPay()` - * 资金退回接口: `client.FundTransRefund()` * 其他产品 * 花芝轻会员结算申请: `client.PcreditHuabeiAuthSettleApply()` * NFC用户卡信息同步: `client.CommerceTransportNfccardSend()` @@ -435,23 +502,11 @@ xlog.Infof("%+v", phone) * 口碑凭证延期接口: `client.KoubeiTradeTicketTicketcodeDelay()` * 口碑凭证码查询: `client.KoubeiTradeTicketTicketcodeQuery()` * 口碑凭证码撤销核销: `client.KoubeiTradeTicketTicketcodeCancel()` - * - * * 蚂蚁店铺创建咨询: `client.AntMerchantShopConsult()` - * - * - * * 申请权益发放: `client.CommerceBenefitApply()` * 权益核销: `client.CommerceBenefitVerify()` * 还款账单查询: `client.TradeRepaybillQuery()` -* 身份验证 - * 身份认证记录查询: `client.UserCertifyOpenQuery()` - * 身份认证初始化服务接口: `client.UserCertifyOpenInit()` - * 身份认证开始认证: `client.UserCertifyOpenCertify()` * 会员 - - - * 协议由普通通用代扣协议产品转移到周期扣协议产品: `client.UserAgreementTransfer()` * 通用当面付二阶段接口: `client.UserTwostageCommonUse()` * 芝麻企业征信基于身份的协议授权: `client.UserAuthZhimaorgIdentityApply()`