Skip to content

Commit f97db5d

Browse files
src/[V2/Pay|[V3/[Apply4sub|.../ProductCoupons|Mchalterapply|Security]/*
1 parent bcd7007 commit f97db5d

11 files changed

Lines changed: 58 additions & 18 deletions

File tree

src/V2/Pay/Micropay.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function post(array $options = [
3838
'goods_category' => '123789',
3939
'body' => '苹果手机',
4040
'category' => 'FOOD_BEVERAGE',
41-
'mcc' => 5942,
41+
'merchant_category_code' => 5942,
4242
],],
4343
]),
4444
'attach' => '说明',
@@ -92,7 +92,7 @@ public function postAsync(array $options = [
9292
'goods_category' => '123789',
9393
'body' => '苹果手机',
9494
'category' => 'FOOD_BEVERAGE',
95-
'mcc' => 5942,
95+
'merchant_category_code' => 5942,
9696
],],
9797
]),
9898
'attach' => '说明',

src/V2/Pay/Unifiedorder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function post(array $options = [
3535
'goods_category' => '123789',
3636
'body' => '苹果手机',
3737
'category' => 'FOOD_BEVERAGE',
38-
'mcc' => 5942,
38+
'merchant_category_code' => 5942,
3939
],],
4040
]),
4141
'attach' => '深圳分店',
@@ -92,7 +92,7 @@ public function postAsync(array $options = [
9292
'goods_category' => '123789',
9393
'body' => '苹果手机',
9494
'category' => 'FOOD_BEVERAGE',
95-
'mcc' => 5942,
95+
'merchant_category_code' => 5942,
9696
],],
9797
]),
9898
'attach' => '深圳分店',

src/V3/Apply4sub/Sub_merchants/_sub_mchid_/Application/_application_no_.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ interface _application_no_
1717
public function get(array $options = [
1818
'sub_mchid' => '1511101111',
1919
'application_no' => '102329389XXXX',
20+
'query' => [
21+
'account_number_rule' => 'ACCOUNT_NUMBER_RULE_MASK_V1',
22+
],
2023
]): ResponseInterface;
2124

2225
/**
@@ -27,5 +30,8 @@ public function get(array $options = [
2730
public function getAsync(array $options = [
2831
'sub_mchid' => '1511101111',
2932
'application_no' => '102329389XXXX',
33+
'query' => [
34+
'account_number_rule' => 'ACCOUNT_NUMBER_RULE_MASK_V1',
35+
],
3036
]): PromiseInterface;
3137
}

src/V3/FundApp/MchTransfer/UserConfirmAuthorization.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public function post(array $options = [
2424
'user_display_name' => 'wx_123456',
2525
'user_recv_perception' => '现金奖励',
2626
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
27+
'scene_info' => [
28+
'client_ip' => '113.84.136.9',
29+
'device_id' => '8d67f169fe104008cd20b72573a0c8c9',
30+
'device_type' => 'IOS',
31+
],
2732
],
2833
]): ResponseInterface;
2934

@@ -41,6 +46,11 @@ public function postAsync(array $options = [
4146
'user_display_name' => 'wx_123456',
4247
'user_recv_perception' => '现金奖励',
4348
'authorization_notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
49+
'scene_info' => [
50+
'client_ip' => '113.84.136.9',
51+
'device_id' => '8d67f169fe104008cd20b72573a0c8c9',
52+
'device_type' => 'IOS',
53+
],
4454
],
4555
]): PromiseInterface;
4656
}

src/V3/Marketing/Partner/ProductCoupon/ProductCoupons.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,15 @@ public function post(array $options = [
132132
'coupon_usage_method_list' => ['OFFLINE'],
133133
'mini_program_appid' => 'wx1234567890',
134134
'mini_program_path' => '/pages/index/product',
135-
'app_path' => '',
135+
'app_path' => 'https://weixin.qq.com/jump-to-app',
136136
'usage_description' => '工作日可用',
137137
'coupon_available_store_info' => [
138138
'description' => '所有门店可用,可使用小程序查看门店列表',
139139
'mini_program_appid' => 'wx1234567890',
140140
'mini_program_path' => '/pages/index/product',
141141
],
142+
'app_jump_type' => 'H5',
143+
'passcode_link' => 'passcode_link.example',
142144
],
143145
'coupon_display_info' => [
144146
'code_display_mode' => 'QRCODE',
@@ -288,13 +290,15 @@ public function postAsync(array $options = [
288290
'coupon_usage_method_list' => ['OFFLINE'],
289291
'mini_program_appid' => 'wx1234567890',
290292
'mini_program_path' => '/pages/index/product',
291-
'app_path' => '',
293+
'app_path' => 'https://weixin.qq.com/jump-to-app',
292294
'usage_description' => '工作日可用',
293295
'coupon_available_store_info' => [
294296
'description' => '所有门店可用,可使用小程序查看门店列表',
295297
'mini_program_appid' => 'wx1234567890',
296298
'mini_program_path' => '/pages/index/product',
297299
],
300+
'app_jump_type' => 'H5',
301+
'passcode_link' => 'passcode_link.example',
298302
],
299303
'coupon_display_info' => [
300304
'code_display_mode' => 'QRCODE',

src/V3/Marketing/Partner/ProductCoupon/ProductCoupons/_product_coupon_id_/StockBundles.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,15 @@ public function post(array $options = [
6363
'coupon_usage_method_list' => ['OFFLINE'],
6464
'mini_program_appid' => 'wx1234567890',
6565
'mini_program_path' => '/pages/index/product',
66-
'app_path' => '',
66+
'app_path' => 'https://weixin.qq.com/jump-to-app',
6767
'usage_description' => '工作日可用',
6868
'coupon_available_store_info' => [
6969
'description' => '所有门店可用,可使用小程序查看门店列表',
7070
'mini_program_appid' => 'wx1234567890',
7171
'mini_program_path' => '/pages/index/product',
7272
],
73+
'app_jump_type' => 'H5',
74+
'passcode_link' => 'passcode_link.example',
7375
],
7476
'coupon_display_info' => [
7577
'code_display_mode' => 'QRCODE',
@@ -150,13 +152,15 @@ public function postAsync(array $options = [
150152
'coupon_usage_method_list' => ['OFFLINE'],
151153
'mini_program_appid' => 'wx1234567890',
152154
'mini_program_path' => '/pages/index/product',
153-
'app_path' => '',
155+
'app_path' => 'https://weixin.qq.com/jump-to-app',
154156
'usage_description' => '工作日可用',
155157
'coupon_available_store_info' => [
156158
'description' => '所有门店可用,可使用小程序查看门店列表',
157159
'mini_program_appid' => 'wx1234567890',
158160
'mini_program_path' => '/pages/index/product',
159161
],
162+
'app_jump_type' => 'H5',
163+
'passcode_link' => 'passcode_link.example',
160164
],
161165
'coupon_display_info' => [
162166
'code_display_mode' => 'QRCODE',

src/V3/Marketing/Partner/ProductCoupon/ProductCoupons/_product_coupon_id_/StockBundles/_stock_bundle_id_.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ public function patch(array $options = [
2727
'coupon_usage_method_list' => ['OFFLINE'],
2828
'mini_program_appid' => 'wx1234567890',
2929
'mini_program_path' => '/pages/index/product',
30-
'app_path' => '',
30+
'app_path' => 'https://weixin.qq.com/jump-to-app',
3131
'usage_description' => '工作日可用',
3232
'coupon_available_store_info' => [
3333
'description' => '所有门店可用,可使用小程序查看门店列表',
3434
'mini_program_appid' => 'wx1234567890',
3535
'mini_program_path' => '/pages/index/product',
3636
],
37+
'app_jump_type' => 'H5',
38+
'passcode_link' => 'passcode_link.example',
3739
],
3840
'coupon_display_info' => [
3941
'code_display_mode' => 'QRCODE',
@@ -76,13 +78,15 @@ public function patchAsync(array $options = [
7678
'coupon_usage_method_list' => ['OFFLINE'],
7779
'mini_program_appid' => 'wx1234567890',
7880
'mini_program_path' => '/pages/index/product',
79-
'app_path' => '',
81+
'app_path' => 'https://weixin.qq.com/jump-to-app',
8082
'usage_description' => '工作日可用',
8183
'coupon_available_store_info' => [
8284
'description' => '所有门店可用,可使用小程序查看门店列表',
8385
'mini_program_appid' => 'wx1234567890',
8486
'mini_program_path' => '/pages/index/product',
8587
],
88+
'app_jump_type' => 'H5',
89+
'passcode_link' => 'passcode_link.example',
8690
],
8791
'coupon_display_info' => [
8892
'code_display_mode' => 'QRCODE',

src/V3/Marketing/Partner/ProductCoupon/ProductCoupons/_product_coupon_id_/Stocks.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,15 @@ public function post(array $options = [
9494
'coupon_usage_method_list' => ['OFFLINE'],
9595
'mini_program_appid' => 'wx1234567890',
9696
'mini_program_path' => '/pages/index/product',
97-
'app_path' => '',
97+
'app_path' => 'https://weixin.qq.com/jump-to-app',
9898
'usage_description' => '工作日可用',
9999
'coupon_available_store_info' => [
100100
'description' => '所有门店可用,可使用小程序查看门店列表',
101101
'mini_program_appid' => 'wx1234567890',
102102
'mini_program_path' => '/pages/index/product',
103103
],
104+
'app_jump_type' => 'H5',
105+
'passcode_link' => 'passcode_link.example',
104106
],
105107
'coupon_display_info' => [
106108
'code_display_mode' => 'QRCODE',
@@ -212,13 +214,15 @@ public function postAsync(array $options = [
212214
'coupon_usage_method_list' => ['OFFLINE'],
213215
'mini_program_appid' => 'wx1234567890',
214216
'mini_program_path' => '/pages/index/product',
215-
'app_path' => '',
217+
'app_path' => 'https://weixin.qq.com/jump-to-app',
216218
'usage_description' => '工作日可用',
217219
'coupon_available_store_info' => [
218220
'description' => '所有门店可用,可使用小程序查看门店列表',
219221
'mini_program_appid' => 'wx1234567890',
220222
'mini_program_path' => '/pages/index/product',
221223
],
224+
'app_jump_type' => 'H5',
225+
'passcode_link' => 'passcode_link.example',
222226
],
223227
'coupon_display_info' => [
224228
'code_display_mode' => 'QRCODE',

src/V3/Marketing/Partner/ProductCoupon/ProductCoupons/_product_coupon_id_/Stocks/_stock_id_.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ public function patch(array $options = [
3131
'coupon_usage_method_list' => ['OFFLINE'],
3232
'mini_program_appid' => 'wx1234567890',
3333
'mini_program_path' => '/pages/index/product',
34-
'app_path' => '',
34+
'app_path' => 'https://weixin.qq.com/jump-to-app',
3535
'usage_description' => '工作日可用',
3636
'coupon_available_store_info' => [
3737
'description' => '所有门店可用,可使用小程序查看门店列表',
3838
'mini_program_appid' => 'wx1234567890',
3939
'mini_program_path' => '/pages/index/product',
4040
],
41+
'app_jump_type' => 'H5',
42+
'passcode_link' => 'passcode_link.example',
4143
],
4244
'coupon_display_info' => [
4345
'code_display_mode' => 'QRCODE',
@@ -80,13 +82,15 @@ public function patchAsync(array $options = [
8082
'coupon_usage_method_list' => ['OFFLINE'],
8183
'mini_program_appid' => 'wx1234567890',
8284
'mini_program_path' => '/pages/index/product',
83-
'app_path' => '',
85+
'app_path' => 'https://weixin.qq.com/jump-to-app',
8486
'usage_description' => '工作日可用',
8587
'coupon_available_store_info' => [
8688
'description' => '所有门店可用,可使用小程序查看门店列表',
8789
'mini_program_appid' => 'wx1234567890',
8890
'mini_program_path' => '/pages/index/product',
8991
],
92+
'app_jump_type' => 'H5',
93+
'passcode_link' => 'passcode_link.example',
9094
],
9195
'coupon_display_info' => [
9296
'code_display_mode' => 'QRCODE',

src/V3/Mchalterapply/Mchsubjectalterapplyment.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public function post(array $options = [
2020
'json' => [
2121
'merchant_code' => '2492185251',
2222
'out_request_no' => '1900013511_10000',
23+
'alter_scope' => 'ALTER_SCOPE_FULL',
2324
'organization_type' => 'SUBJECT_TYPE_ENTERPRISE',
2425
'finance_institution' => true,
2526
'business_license_info' => [
@@ -73,6 +74,7 @@ public function post(array $options = [
7374
'openaccount_approval' => ['MediaId'],
7475
'legal_other_prove' => ['MediaId'],
7576
'agency_prove' => ['MediaId'],
77+
'ubo_prove' => ['MediaId'],
7678
],
7779
],
7880
'headers' => [
@@ -89,6 +91,7 @@ public function postAsync(array $options = [
8991
'json' => [
9092
'merchant_code' => '2492185251',
9193
'out_request_no' => '1900013511_10000',
94+
'alter_scope' => 'ALTER_SCOPE_FULL',
9295
'organization_type' => 'SUBJECT_TYPE_ENTERPRISE',
9396
'finance_institution' => true,
9497
'business_license_info' => [
@@ -142,6 +145,7 @@ public function postAsync(array $options = [
142145
'openaccount_approval' => ['MediaId'],
143146
'legal_other_prove' => ['MediaId'],
144147
'agency_prove' => ['MediaId'],
148+
'ubo_prove' => ['MediaId'],
145149
],
146150
],
147151
'headers' => [

0 commit comments

Comments
 (0)