From d74175672058fe5bcbdedebfb2ab10acd930400a Mon Sep 17 00:00:00 2001 From: James ZHNAG Date: Fri, 22 Nov 2024 11:41:11 +0800 Subject: [PATCH] link `FACEPAY.USER_STATE_CHANGE` webhook event --- docs/v3/offlineface/authinfo.yaml | 15 +++++ docs/v3/offlineface/contracts/presign.yaml | 42 +++++++++++++ .../offlineface/contracts/{contract_id}.yaml | 30 +++++++++ docs/v3/offlineface/face-collections.yaml | 21 +++++++ .../face-collections/{collection_id}.yaml | 16 ++++- docs/v3/offlineface/repayment-url.yaml | 10 +++ docs/v3/offlineface/transactions.yaml | 62 +++++++++++++++++++ .../out-trade-no/{out_trade_no}.yaml | 34 ++++++++++ docs/v3/webhooks.yaml | 9 ++- src/V3/Mch_operate/Risk/WithdrawlApply.php | 20 +++--- src/V3/Offlineface/Contracts/Presign.php | 6 ++ .../Offlineface/Contracts/_contract_id_.php | 8 +-- src/V3/Offlineface/FaceCollections.php | 12 ++-- .../FaceCollections/_collection_id_.php | 10 +-- 14 files changed, 263 insertions(+), 32 deletions(-) diff --git a/docs/v3/offlineface/authinfo.yaml b/docs/v3/offlineface/authinfo.yaml index 4717bd65..6543a941 100644 --- a/docs/v3/offlineface/authinfo.yaml +++ b/docs/v3/offlineface/authinfo.yaml @@ -12,23 +12,38 @@ post: required: true schema: type: object + required: + - sp_appid + - sub_mchid + - device_id + - raw_data + - organization_id properties: sp_appid: type: string + description: 服务商公众号appid sub_appid: type: string + description: 子商户公众号appid sub_mchid: type: string + description: 子商户商户号 device_id: type: string + description: 设备id raw_data: type: string + description: 原始数据 organization_id: type: string + description: 机构id responses: '200': schema: type: object + required: + - authinfo properties: authinfo: type: string + description: 授权信息 diff --git a/docs/v3/offlineface/contracts/presign.yaml b/docs/v3/offlineface/contracts/presign.yaml index 6f56eac6..5a77a602 100644 --- a/docs/v3/offlineface/contracts/presign.yaml +++ b/docs/v3/offlineface/contracts/presign.yaml @@ -7,57 +7,96 @@ post: summary: 预签约接口 description: 一键绑卡不是支持所有银行卡,上线前请先测试是否支持该银行卡。[官方文档](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/access-specifications.html) parameters: + - $ref: '../../../definitions/Parameters.yaml#/WECHATPAY_CERTIFICATE_SERIAL' - name: _ in: body schema: type: object + required: + - business_name + - facepay_user properties: business_name: type: string + description: 业务类型 facepay_user: type: object + description: 刷脸用户信息 + required: + - out_user_id + - organization_id properties: out_user_id: type: string + description: 商户用户ID identification_name: type: string + description: 刷脸用户名 organization_id: type: string + description: 机构ID identification: type: object + description: 证件信息 + required: + - identification_type + - identification_number properties: identification_type: type: string + description: 证件类型 enum: - IDCARD identification_number: type: string + format: base64 + description: 证件ID phone: type: string + format: base64 + description: 手机号码 limit_bank_card: type: object + description: 签约指定银行卡 properties: bank_card_number: type: string + format: base64 + description: 银行卡号 identification_name: type: string + format: base64 + description: 开卡人姓名 identification: type: object + description: 开卡人证件 + required: + - identification_type + - identification_number properties: identification_type: type: string + description: 证件类型 enum: - IDCARD identification_number: type: string + format: base64 + description: 证件ID valid_thru: type: string + format: mm/yy + description: 银行卡有效期 bank_type: type: string + description: 银行类型 phone: type: string + format: base64 + description: 开卡预留手机号 contract_mode: type: string + description: 签约模式 enum: - LIMIT_BANK_CARD #指定卡签约 - PRIORITY_BANK_CARD #优先卡签约 @@ -66,6 +105,9 @@ post: '200': schema: type: object + required: + - presign_token properties: presign_token: type: string + description: 会话ID diff --git a/docs/v3/offlineface/contracts/{contract_id}.yaml b/docs/v3/offlineface/contracts/{contract_id}.yaml index abf3f970..0a4d6198 100644 --- a/docs/v3/offlineface/contracts/{contract_id}.yaml +++ b/docs/v3/offlineface/contracts/{contract_id}.yaml @@ -11,26 +11,50 @@ get: in: path type: string required: true + description: 签约ID + example: CI8CD208Z7e9906f89 - name: appid in: query type: string + description: 商户签约小程序APPID + example: wx8888888888 responses: '200': schema: type: object + required: + - contract_id + - mchid + - organization_id + - user_id + - contract_state + - contract_signed_time + - contract_mode + - contract_bank_card_from properties: contract_id: type: string + description: 签约ID + example: CI8CD208Z7e9906f89 mchid: type: string + description: 商户号 + example: '2480278041' organization_id: type: string + description: 机构ID + example: OAABBCCDDeeff use_id: type: string + description: 用户ID + example: FU40F305Z4e2bb7d openid: type: string + description: 签约用户openid + example: AFDSJfhdf8744 contract_state: type: string + description: 签约状态 enum: - NOT_CONTRACTED #未签约 - TERMINATED #已解约 @@ -38,17 +62,23 @@ get: contract_signed_time: type: string format: rfc3339 + description: 签约时间 + example: '2018-06-08T10:34:56+08:00' contract_terminated_time: type: string format: rfc3339 + description: 解约时间 + example: '2018-06-08T10:34:56+08:00' contract_mode: type: string + description: 签约模式 enum: - LIMIT_BANK_CARD #指定卡签约 - PRIORITY_BANK_CARD #优先卡签约 - LIMIT_NONE #任意卡签约 contract_bank_card_from: type: string + description: 签约卡来源 enum: - MERCHANT_LIMITED_BANK_CARD #商户指定的签约卡 - USER_SELECT_FREE #用户选择的签约卡 diff --git a/docs/v3/offlineface/face-collections.yaml b/docs/v3/offlineface/face-collections.yaml index 6537e6d3..c3ffa07c 100644 --- a/docs/v3/offlineface/face-collections.yaml +++ b/docs/v3/offlineface/face-collections.yaml @@ -11,30 +11,49 @@ get: in: query type: string required: true + description: 机构ID + example: Ofewewfwefweewf - name: offset in: query type: integer + description: 列表偏移 + example: 30 - name: limit in: query type: integer + description: 资源个数 + example: 20 responses: '200': schema: type: object + required: + - face_collections properties: face_collections: type: array + description: 重采列表 items: type: object + description: 重采对象 + required: + - collection_id + - use_id + - organization_id + - collection_state properties: collection_id: type: string + description: 重采ID use_id: type: string + description: 用户ID organization_id: type: string + description: 机构ID collection_state: type: string + description: 重采状态 enum: - COLLECTION_REQUIRED #该刷脸用户需要进行重采 - PHOTO_UPLOADED #照片已上传 @@ -42,6 +61,8 @@ get: register_photo_upload_time: type: string format: rfc3339 + description: 注册照上传时间 confirm_time: type: string format: rfc3339 + description: 支付用户确认时间 diff --git a/docs/v3/offlineface/face-collections/{collection_id}.yaml b/docs/v3/offlineface/face-collections/{collection_id}.yaml index f7cfb037..12cece52 100644 --- a/docs/v3/offlineface/face-collections/{collection_id}.yaml +++ b/docs/v3/offlineface/face-collections/{collection_id}.yaml @@ -11,22 +11,30 @@ get: in: path type: string required: true - - name: appid - in: query - type: string + description: 重采ID + example: FC2353ZJIHOJKHOIIOIJ responses: '200': schema: type: object + required: + - collection_id + - use_id + - organization_id + - collection_state properties: collection_id: type: string + description: 重采ID use_id: type: string + description: 用户ID organization_id: type: string + description: 机构ID collection_state: type: string + description: 重采状态 enum: - COLLECTION_REQUIRED #该刷脸用户需要进行重采 - PHOTO_UPLOADED #照片已上传 @@ -34,6 +42,8 @@ get: register_photo_upload_time: type: string format: rfc3339 + description: 注册照上传时间 confirm_time: type: string format: rfc3339 + description: 支付用户确认时间 diff --git a/docs/v3/offlineface/repayment-url.yaml b/docs/v3/offlineface/repayment-url.yaml index 40b00417..8da6d83c 100644 --- a/docs/v3/offlineface/repayment-url.yaml +++ b/docs/v3/offlineface/repayment-url.yaml @@ -12,18 +12,28 @@ post: required: true schema: type: object + required: + - out_user_id + - organization_id properties: out_user_id: type: string + description: 商户用户ID organization_id: type: string + description: 机构id responses: '200': schema: type: object + required: + - repayment_url + - expire_at properties: repayment_url: type: string + description: 还款链接 expire_at: type: string format: rfc3339 + description: 链接过期时间 diff --git a/docs/v3/offlineface/transactions.yaml b/docs/v3/offlineface/transactions.yaml index b2cac37f..c9c21751 100644 --- a/docs/v3/offlineface/transactions.yaml +++ b/docs/v3/offlineface/transactions.yaml @@ -12,55 +12,84 @@ post: required: true schema: type: object + required: + - auth_code properties: auth_code: type: string + description: 支付凭证 sp_appid: type: string + description: 服务商公众号appid sp_mchid: type: string + description: 服务商商户号 sub_appid: type: string + description: 子商户公众号appid sub_mchid: type: string + description: 子商户商户号 amount: type: object + description: 金额信息 + required: + - total + - currency properties: total: type: integer format: int64 + description: 总金额 currency: type: string + description: 货币类型 enum: - CNY scene_info: type: object + description: 支付场景信息 + required: + - device_ip properties: device_ip: type: string + description: 设备IP goods_tag: type: string + description: 优惠标记 description: type: string + description: 商品信息 attach: type: string + description: 商户附加信息 settle_info: type: object + description: 结算信息 properties: profit_sharing: type: boolean + description: 是否支持分账 out_trade_no: type: string + description: 商户订单号 business: type: object + description: 业务信息 + required: + - business_product_id + - business_scene_id properties: business_product_id: type: integer + description: 平台产品ID enum: - 2 #K12 - 11 #企业团餐 business_scene_id: type: integer + description: 平台场景ID enum: - 3 #食堂 - 4 #超市 @@ -73,46 +102,69 @@ post: '200': schema: type: object + required: + - sp_appid + - sp_mchid + - sub_mchid properties: sp_appid: type: string + description: 服务商公众号appid sp_mchid: type: string + description: 服务商商户号 sub_appid: type: string + description: 子商户公众号appid sub_mchid: type: string + description: 子商户商户号 payer: type: object + description: 支付用户信息 properties: sp_openid: type: string + description: 公众下的openid sub_openid: type: string + description: 子公众下的openid amount: type: object + description: 金额信息 + required: + - total + - currency properties: total: type: integer format: int64 + description: 总金额 currency: type: string + description: 货币类型 enum: - CNY promotion_detail: type: array + description: 优惠信息列表 items: type: object + description: 优惠信息 properties: scene_info: type: object + description: 支付场景信息 properties: device_ip: type: string + description: 设备IP bank_type: type: string + description: 付款银行 trade_type: type: string + description: 交易类型 enum: - NATIVE - JSAPI @@ -121,22 +173,32 @@ post: - AUTH #行业代扣 trade_state: type: string + description: 交易状态 trade_state_description: type: string + description: 交易描述 debt_state: type: string + description: 欠款状态 description: type: string + description: 商品信息 attach: type: string + description: 商户附加信息 success_time: type: string format: rfc3339 + description: 支付成功时间 transaction_id: type: string + description: 微信订单号 repayment_transaction_id: type: string + description: 还款微信订单号 out_trade_no: type: string + description: 商户订单号 error_type: type: string + description: 错误分类 diff --git a/docs/v3/offlineface/transactions/out-trade-no/{out_trade_no}.yaml b/docs/v3/offlineface/transactions/out-trade-no/{out_trade_no}.yaml index f9265d25..7394eeff 100644 --- a/docs/v3/offlineface/transactions/out-trade-no/{out_trade_no}.yaml +++ b/docs/v3/offlineface/transactions/out-trade-no/{out_trade_no}.yaml @@ -38,46 +38,70 @@ get: '200': schema: type: object + required: + - sp_appid + - sp_mchid + - sub_mchid + - trade_state properties: sp_appid: type: string + description: 服务商公众号appid sp_mchid: type: string + description: 服务商商户号 sub_appid: type: string + description: 子商户公众号appid sub_mchid: type: string + description: 子商户商户号 payer: type: object + description: 支付用户信息 properties: sp_openid: type: string + description: 公众下的openid sub_openid: type: string + description: 子公众下的openid amount: type: object + description: 金额信息 + required: + - total + - currency properties: total: type: integer format: int64 + description: 总金额 currency: type: string + description: 货币类型 enum: - CNY promotion_detail: type: array + description: 优惠信息列表 items: type: object + description: 优惠信息 properties: scene_info: type: object + description: 支付场景信息 properties: device_ip: type: string + description: 设备IP bank_type: type: string + description: 付款银行 trade_type: type: string + description: 交易类型 enum: - NATIVE - JSAPI @@ -86,22 +110,32 @@ get: - AUTH #行业代扣 trade_state: type: string + description: 交易状态 trade_state_description: type: string + description: 交易描述 debt_state: type: string + description: 欠款状态 description: type: string + description: 商品信息 attach: type: string + description: 商户附加信息 success_time: type: string format: rfc3339 + description: 支付成功时间 transaction_id: type: string + description: 微信订单号 repayment_transaction_id: type: string + description: 还款微信订单号 out_trade_no: type: string + description: 商户订单号 error_type: type: string + description: 错误分类 diff --git a/docs/v3/webhooks.yaml b/docs/v3/webhooks.yaml index e0a896ae..8d59b347 100644 --- a/docs/v3/webhooks.yaml +++ b/docs/v3/webhooks.yaml @@ -54,6 +54,7 @@ post: [收付通合单代扣签约、解约结果通知](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter5_5_7.shtml) [隔夜归还保险订单状态变化通知](https://pay.weixin.qq.com/docs/merchant/apis/hire-power-bank-insurance/insurance-orders/status-change-notice.html) [平台收付通商家充值-充值结果通知](https://pay.weixin.qq.com/docs/partner/apis/platsolution-mch-recharge/notification/recharge-notice.html) + [离线刷脸签约状态变更回调通知](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/offline-brushing.html) parameters: - name: Wechatpay-Nonce required: true @@ -198,6 +199,7 @@ WechatpayNotificationOriginalType: [会员卡领卡事件通知](https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter7_1.shtml) [会员卡激活事件通知](https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter7_2.shtml) [会员卡用户管理会员卡事件通知](https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/membercard_open/chapter7_3.shtml) + [离线刷脸签约状态变更回调通知](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/offline-brushing.html) enum: # @see [商圈支付结果通知](https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/businesscircle/points/chapter3_1.shtml) # @see [先享卡用户领卡通知](https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/payscore/discount-card/chapter4_1.shtml) @@ -216,8 +218,10 @@ WechatpayNotificationOriginalType: - membercard # @see [平台收付通商家充值-充值结果通知](https://pay.weixin.qq.com/docs/partner/apis/platsolution-mch-recharge/notification/recharge-notice.html) - recharge - # see [代扣解约挽留业务-获取解约挽留信息](https://pay.weixin.qq.com/docs/merchant/apis/termination-retention/termination-retention-information.html) + # @see [代扣解约挽留业务-获取解约挽留信息](https://pay.weixin.qq.com/docs/merchant/apis/termination-retention/termination-retention-information.html) - entrust + # @see [离线刷脸签约状态变更回调通知](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/offline-brushing.html) + - facepay WechatpayNotificationEventType: type: string @@ -259,6 +263,7 @@ WechatpayNotificationEventType: [收付通合单代扣签约、解约结果通知](https://pay.weixin.qq.com/wiki/doc/apiv3_partner/Offline/apis/chapter5_5_7.shtml) [隔夜归还保险订单状态变化通知](https://pay.weixin.qq.com/docs/merchant/apis/hire-power-bank-insurance/insurance-orders/status-change-notice.html) [平台收付通商家充值-充值结果通知](https://pay.weixin.qq.com/docs/partner/apis/platsolution-mch-recharge/notification/recharge-notice.html) + [离线刷脸签约状态变更回调通知](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/offline-brushing.html) enum: # @see [会员积分服务授权通知](https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter8_6_6.shtml) - MALL_AUTH.ACTIVATE_CARD #会员积分服务授权通知 @@ -343,3 +348,5 @@ WechatpayNotificationEventType: # @see [签约/解约成功通知](https://pay.weixin.qq.com/wiki/doc/api_external/ch/apis/chapter5_1_5.shtml) - PAPAY.SIGN #签约成功通知 - PAPAY.TERMINATE #解约成功通知 + # @see [离线刷脸签约状态变更回调通知](https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/offline-brushing.html) + - FACEPAY.USER_STATE_CHANGE diff --git a/src/V3/Mch_operate/Risk/WithdrawlApply.php b/src/V3/Mch_operate/Risk/WithdrawlApply.php index b754d642..80df13e5 100644 --- a/src/V3/Mch_operate/Risk/WithdrawlApply.php +++ b/src/V3/Mch_operate/Risk/WithdrawlApply.php @@ -27,22 +27,22 @@ public function post(array $options = [ 'payee_info' => [ 'account_type' => 'ACCOUNT_TYPE_CORPORATE', 'bank_account_info' => [ - 'account_name' => 'AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CTdo+D/m9MrPg+V4sm73oxqdQu/hj7aWyDl4GQtPXVdaztB9jVbVZh3QFzV+BEmytMNQp9dt1uWJktlfdDdLR3AMWyMB377xd+m9bSr/ioDTzagEcGe+vLYiKrzcroQv3OR0p3ppFYoQ3IfYeU/04S4t9rNFL+kyblK2FCCqQ11NdbbHoCrJc7NV4oASq6ZFonjTtgjjgKsadIKHXtb3JZKGZjduGdtkRJJp0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==', + 'account_name' => 'AOZdYGISxo4y44/UgZ69b0zZXkw==', 'account_bank' => '工商银行', 'bank_branch_id' => '402713354941', 'bank_name' => '402713354941', - 'account_number' => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXM2YYZlokmXzFsWs35NXUot7C0NcxIrUF5FnxqCJHkNgKtxa6RxEYyba1+VBRLnqKG2fSy/Y5qDN08Ej9zHCwJjq52Wg1VG8MRugli9YMI1fI83KGBxhuXyemgS/hqFKsfYGiOkJqjTUpgY5VqjtL2N4l4z11T0ECB/aSyVXUysOFGLVfSrUxMPZy6jWWYGvT1+4P633f+R+ki1gT4WF/2KxZOYmli385ZgVhcR30mr4/G3HBcxi13zp7FnEeOsLlvBmI1PHN4C7Rsu3WL8sPndjXTd75kPkyjqnoMRrEEaYQE8ZRGYoeorwC+w==', + 'account_number' => 'd+xT+MQCvrLHeorwC+w==', ], 'identity_info' => [ 'id_doc_type' => 'IDENTIFICATION_TYPE_IDCARD', - 'identification_name' => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiR/cJiCrZxnAqi+pjeKIEdkwzXRAI7FUhrfPK3SNjaBTEu9GmsugMIA9r3x887Q+ODuC8HH2nzAn7NGpE/e3yiHgWhk0ps5k5DP/2qIdGdONoDzZelrxCl/NWWNUyB93K9F+jC1JX2IMttdY+aQ6zBlw0xnOiNW6Hzy7UtC+xriudjD5APomty7/mYNxLMpRSvWKIjOv/69bDnuC4EL5Kz4jBHLiCyOb+tI0m2qhZ9evAM+Jv1z0NVa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==', - 'identification_no' => 'AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CTdo+D/m9MrPg+V4sm73oxqdQu/hj7aWyDl4GQtPXVdaztB9jVbVZh3QFzV+BEmytMNQp9dt1uWJktlfdDdLR3AMWyMB377xd+m9bSr/ioDTzagEcGe+vLYiKrzcroQv3OR0p3ppFYoQ3IfYeU/04S4t9rNFL+kyblK2FCCqQ11NdbbHoCrJc7NV4oASq6ZFonjTtgjjgKsadIKHXtb3JZKGZjduGdtkRJJp0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==', + 'identification_name' => 'pVd1HJ6zyvPedzfg==', + 'identification_no' => 'AOZdYGISxo4y44/UgZ69bkw==', ], ], 'proof_media_list' => [ 'proof_payee_media' => [[ 'proof_media_type' => 'WECHAT_PAY_WITHDRAWAL_APPLICATION_TYPE_1', - 'proof_media' => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ', + 'proof_media' => 'jTpGmxUX3FBWVQ5NJTZvlKXQ', ],], ], 'additional_materials' => [ @@ -71,22 +71,22 @@ public function postAsync(array $options = [ 'payee_info' => [ 'account_type' => 'ACCOUNT_TYPE_CORPORATE', 'bank_account_info' => [ - 'account_name' => 'AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CTdo+D/m9MrPg+V4sm73oxqdQu/hj7aWyDl4GQtPXVdaztB9jVbVZh3QFzV+BEmytMNQp9dt1uWJktlfdDdLR3AMWyMB377xd+m9bSr/ioDTzagEcGe+vLYiKrzcroQv3OR0p3ppFYoQ3IfYeU/04S4t9rNFL+kyblK2FCCqQ11NdbbHoCrJc7NV4oASq6ZFonjTtgjjgKsadIKHXtb3JZKGZjduGdtkRJJp0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==', + 'account_name' => 'AOZdYGISxo4y44/UgZ69b0zZXkw==', 'account_bank' => '工商银行', 'bank_branch_id' => '402713354941', 'bank_name' => '402713354941', - 'account_number' => 'd+xT+MQCvrLHUVDWv/8MR/dB7TkXM2YYZlokmXzFsWs35NXUot7C0NcxIrUF5FnxqCJHkNgKtxa6RxEYyba1+VBRLnqKG2fSy/Y5qDN08Ej9zHCwJjq52Wg1VG8MRugli9YMI1fI83KGBxhuXyemgS/hqFKsfYGiOkJqjTUpgY5VqjtL2N4l4z11T0ECB/aSyVXUysOFGLVfSrUxMPZy6jWWYGvT1+4P633f+R+ki1gT4WF/2KxZOYmli385ZgVhcR30mr4/G3HBcxi13zp7FnEeOsLlvBmI1PHN4C7Rsu3WL8sPndjXTd75kPkyjqnoMRrEEaYQE8ZRGYoeorwC+w==', + 'account_number' => 'd+xT+MQCvrLHeorwC+w==', ], 'identity_info' => [ 'id_doc_type' => 'IDENTIFICATION_TYPE_IDCARD', - 'identification_name' => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPROvwia4ibL+F6mfjbzQIzfb3HHLEjZ4YiR/cJiCrZxnAqi+pjeKIEdkwzXRAI7FUhrfPK3SNjaBTEu9GmsugMIA9r3x887Q+ODuC8HH2nzAn7NGpE/e3yiHgWhk0ps5k5DP/2qIdGdONoDzZelrxCl/NWWNUyB93K9F+jC1JX2IMttdY+aQ6zBlw0xnOiNW6Hzy7UtC+xriudjD5APomty7/mYNxLMpRSvWKIjOv/69bDnuC4EL5Kz4jBHLiCyOb+tI0m2qhZ9evAM+Jv1z0NVa8MRtelw/wDa4SzfeespQO/0kjiwfqdfg==', - 'identification_no' => 'AOZdYGISxo4y44/UgZ69bdu9X+tfMUJ9dl+LetjM45/zMbrYu+wWZ8gn4CTdo+D/m9MrPg+V4sm73oxqdQu/hj7aWyDl4GQtPXVdaztB9jVbVZh3QFzV+BEmytMNQp9dt1uWJktlfdDdLR3AMWyMB377xd+m9bSr/ioDTzagEcGe+vLYiKrzcroQv3OR0p3ppFYoQ3IfYeU/04S4t9rNFL+kyblK2FCCqQ11NdbbHoCrJc7NV4oASq6ZFonjTtgjjgKsadIKHXtb3JZKGZjduGdtkRJJp0/0eow96uY1Pk7Rq79Jtt7+I8juwEc4P4TG5xzchG/5IL9DBd+Z0zZXkw==', + 'identification_name' => 'pVd1HJ6zyvPedzfg==', + 'identification_no' => 'AOZdYGISxo4y44/UgZ69bkw==', ], ], 'proof_media_list' => [ 'proof_payee_media' => [[ 'proof_media_type' => 'WECHAT_PAY_WITHDRAWAL_APPLICATION_TYPE_1', - 'proof_media' => 'jTpGmxUX3FBWVQ5NJTZvlKX_gdU4cRz7z5NxpnFuAxhBTEO_PvWkfSCJ3zVIn001D8daLC-ehEuo0BJqRTvDujqhThn4ReFxikqJ5YW6zFQ', + 'proof_media' => 'jTpGmxUX3FBWVQ5NJTZvlKXQ', ],], ], 'additional_materials' => [ diff --git a/src/V3/Offlineface/Contracts/Presign.php b/src/V3/Offlineface/Contracts/Presign.php index ea98c281..df7e0511 100644 --- a/src/V3/Offlineface/Contracts/Presign.php +++ b/src/V3/Offlineface/Contracts/Presign.php @@ -40,6 +40,9 @@ public function post(array $options = [ ], 'contract_mode' => 'LIMIT_BANK_CARD | PRIORITY_BANK_CARD | LIMIT_NONE', ], + 'headers' => [ + 'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000', + ], ]): ResponseInterface; /** @@ -73,5 +76,8 @@ public function postAsync(array $options = [ ], 'contract_mode' => 'LIMIT_BANK_CARD | PRIORITY_BANK_CARD | LIMIT_NONE', ], + 'headers' => [ + 'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000', + ], ]): PromiseInterface; } diff --git a/src/V3/Offlineface/Contracts/_contract_id_.php b/src/V3/Offlineface/Contracts/_contract_id_.php index a326da84..e720a1af 100644 --- a/src/V3/Offlineface/Contracts/_contract_id_.php +++ b/src/V3/Offlineface/Contracts/_contract_id_.php @@ -15,9 +15,9 @@ interface _contract_id_ * @link https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/k12-development-guidelines.html */ public function get(array $options = [ - 'contract_id' => '', + 'contract_id' => 'CI8CD208Z7e9906f89', 'query' => [ - 'appid' => '', + 'appid' => 'wx8888888888', ], ]): ResponseInterface; @@ -27,9 +27,9 @@ public function get(array $options = [ * @link https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/k12-development-guidelines.html#async */ public function getAsync(array $options = [ - 'contract_id' => '', + 'contract_id' => 'CI8CD208Z7e9906f89', 'query' => [ - 'appid' => '', + 'appid' => 'wx8888888888', ], ]): PromiseInterface; } diff --git a/src/V3/Offlineface/FaceCollections.php b/src/V3/Offlineface/FaceCollections.php index 79e4bac5..dbf08591 100644 --- a/src/V3/Offlineface/FaceCollections.php +++ b/src/V3/Offlineface/FaceCollections.php @@ -17,9 +17,9 @@ interface FaceCollections */ public function get(array $options = [ 'query' => [ - 'organization_id' => '', - 'offset' => 0, - 'limit' => 0, + 'organization_id' => 'Ofewewfwefweewf', + 'offset' => 30, + 'limit' => 20, ], ]): ResponseInterface; @@ -30,9 +30,9 @@ public function get(array $options = [ */ public function getAsync(array $options = [ 'query' => [ - 'organization_id' => '', - 'offset' => 0, - 'limit' => 0, + 'organization_id' => 'Ofewewfwefweewf', + 'offset' => 30, + 'limit' => 20, ], ]): PromiseInterface; } diff --git a/src/V3/Offlineface/FaceCollections/_collection_id_.php b/src/V3/Offlineface/FaceCollections/_collection_id_.php index b96f56ae..53eb0add 100644 --- a/src/V3/Offlineface/FaceCollections/_collection_id_.php +++ b/src/V3/Offlineface/FaceCollections/_collection_id_.php @@ -15,10 +15,7 @@ interface _collection_id_ * @link https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/k12-development-guidelines.html */ public function get(array $options = [ - 'collection_id' => '', - 'query' => [ - 'appid' => '', - ], + 'collection_id' => 'FC2353ZJIHOJKHOIIOIJ', ]): ResponseInterface; /** @@ -27,9 +24,6 @@ public function get(array $options = [ * @link https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/k12-development-guidelines.html#async */ public function getAsync(array $options = [ - 'collection_id' => '', - 'query' => [ - 'appid' => '', - ], + 'collection_id' => 'FC2353ZJIHOJKHOIIOIJ', ]): PromiseInterface; }