Skip to content

Commit dd24700

Browse files
A: src/V3/...[PayViewTokens|PreSendCouponBundle].php; U: src/V2/Pay/Contractorder.php
1 parent e1a66f2 commit dd24700

5 files changed

Lines changed: 90 additions & 0 deletions

File tree

src/V2/Pay/Contractorder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ public function post(array $options = [
1818
'xml' => [
1919
'appid' => 'wxcbda96de0b165486',
2020
'mch_id' => '1200009811',
21+
'sub_mch_id' => '1900000100',
22+
'sub_appid' => 'wx8888888888888888',
2123
'contract_mchid' => '1200009811',
2224
'contract_appid' => 'wxcbda96de0b165486',
2325
'out_trade_no' => '123456',
@@ -35,6 +37,7 @@ public function post(array $options = [
3537
'product_id' => '12235413214070356458058',
3638
'limit_pay' => 'no_credit',
3739
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
40+
'sub_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
3841
'plan_id' => '123',
3942
'contract_code' => '100001256',
4043
'request_serial' => '1695',
@@ -52,6 +55,8 @@ public function postAsync(array $options = [
5255
'xml' => [
5356
'appid' => 'wxcbda96de0b165486',
5457
'mch_id' => '1200009811',
58+
'sub_mch_id' => '1900000100',
59+
'sub_appid' => 'wx8888888888888888',
5560
'contract_mchid' => '1200009811',
5661
'contract_appid' => 'wxcbda96de0b165486',
5762
'out_trade_no' => '123456',
@@ -69,6 +74,7 @@ public function postAsync(array $options = [
6974
'product_id' => '12235413214070356458058',
7075
'limit_pay' => 'no_credit',
7176
'openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
77+
'sub_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
7278
'plan_id' => '123',
7379
'contract_code' => '100001256',
7480
'request_serial' => '1695',

src/V3/Brand/Partner/CardMember.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* @property-read CardMember\UserCards $userCards
88
* @property-read CardMember\MembershipActivities $membershipActivities
99
* @property-read CardMember\Cards $cards
10+
* @property-read CardMember\PayViewTokens $payViewTokens
1011
* @property-read CardMember\PreAuthTokens $preAuthTokens
1112
* @property-read CardMember\UserFeeds $userFeeds
1213
*/
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Brand\Partner\CardMember;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface PayViewTokens
11+
{
12+
/**
13+
* 品牌会员展示付款码组件预授权(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/brand/partner/card-member/pay-view-tokens
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'brand_id' => '1004',
20+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
21+
'openid' => 'obLatjnx9gnqzS4myYGmLZ7LgLBA',
22+
],
23+
]): ResponseInterface;
24+
25+
/**
26+
* 品牌会员展示付款码组件预授权(异步模式)
27+
* @param array<string,mixed> $options
28+
* @link https://wechatpay.im/openapi/v3/brand/partner/card-member/pay-view-tokens
29+
*/
30+
public function postAsync(array $options = [
31+
'json' => [
32+
'brand_id' => '1004',
33+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
34+
'openid' => 'obLatjnx9gnqzS4myYGmLZ7LgLBA',
35+
],
36+
]): PromiseInterface;
37+
}

src/V3/Marketing/Partner/ProductCoupon/Users/_openid_.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/**
66
* @property-read _openid_\Coupons $coupons
77
* @property-read _openid_\CouponBundles $couponBundles
8+
* @property-read _openid_\PreSendCouponBundle $preSendCouponBundle
89
* @property-read _openid_\PreSendCoupon $preSendCoupon
910
*/
1011
interface _openid_
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\ProductCoupon\Users\_openid_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface PreSendCouponBundle
11+
{
12+
/**
13+
* 向用户预发放商品券批次组(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/marketing/partner/product-coupon/users/%7Bopenid%7D/pre-send-coupon-bundle
16+
*/
17+
public function post(array $options = [
18+
'openid' => 'oh-394z-6CGkNoJrsDLTTUKiAnp4',
19+
'json' => [
20+
'brand_id' => '120344',
21+
'product_coupon_id' => '1000000013',
22+
'stock_bundle_id' => '100232301',
23+
'appid' => 'wx233544546545989',
24+
'send_request_no' => '34657_20250101_123456',
25+
'attach' => 'example_attach',
26+
],
27+
]): ResponseInterface;
28+
29+
/**
30+
* 向用户预发放商品券批次组(异步模式)
31+
* @param array<string,mixed> $options
32+
* @link https://wechatpay.im/openapi/v3/marketing/partner/product-coupon/users/%7Bopenid%7D/pre-send-coupon-bundle
33+
*/
34+
public function postAsync(array $options = [
35+
'openid' => 'oh-394z-6CGkNoJrsDLTTUKiAnp4',
36+
'json' => [
37+
'brand_id' => '120344',
38+
'product_coupon_id' => '1000000013',
39+
'stock_bundle_id' => '100232301',
40+
'appid' => 'wx233544546545989',
41+
'send_request_no' => '34657_20250101_123456',
42+
'attach' => 'example_attach',
43+
],
44+
]): PromiseInterface;
45+
}

0 commit comments

Comments
 (0)