Skip to content

Commit 21f6dfc

Browse files
A: src/V3/Marketing/MembercardOpen/.../ServiceModules*
1 parent 862286b commit 21f6dfc

8 files changed

Lines changed: 216 additions & 16 deletions

File tree

src/V3/Marketing/MembercardOpen/Cards/_card_id_.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* @property-read _card_id_\Users $users
10+
* @property-read _card_id_\ServiceModules $serviceModules
1011
* @property-read _card_id_\PhoneMembercard $phoneMembercard
1112
* @property-read _card_id_\Codes $codes
1213
* @property-read _card_id_\DecryptCode $decryptCode

src/V3/Marketing/MembercardOpen/Cards/_card_id_/Codes/_code_.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
* @property-read _code_\Bonus $bonus
1010
* @property-read _code_\Activate $activate
1111
* @property-read _code_\Rights $rights
12+
* @property-read _code_\SetServiceModuleData $setServiceModuleData
1213
* @property-read _code_\Unavailable $unavailable
1314
*/
1415
interface _code_
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\MembercardOpen\Cards\_card_id_\Codes\_code_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface SetServiceModuleData
11+
{
12+
/**
13+
* 设置会员服务项用户信息(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/codes/%7Bcode%7D/set-service-module-data
16+
*/
17+
public function post(array $options = [
18+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
19+
'code' => '478515832665',
20+
'json' => [
21+
'out_request_no' => '100002322019090134234sfdf',
22+
'service_module_id' => '666',
23+
'state_setting' => [
24+
'state_id' => 'CHECKED_IN',
25+
'content_template_data' => [
26+
'field_list' => [[
27+
'field_id' => 'hotel_name',
28+
'field_value' => '深圳市南山区滨海路700号',
29+
],],
30+
'action_setting' => [
31+
'action_name' => '一键开锁',
32+
'jump_miniprogram' => [
33+
'appid' => 'wx37178d097a6851d8',
34+
'path' => 'pages/index/index',
35+
],
36+
],
37+
],
38+
'message_template_setting' => [
39+
'message_template_id' => '9bJgRNz9XG248XZ-a0nDKH3Vt_vaTp32fRP1LWvxjzI',
40+
'field_list' => [[
41+
'field_id' => 'hotel_name',
42+
'field_value' => '深圳市南山区滨海路700号',
43+
],],
44+
],
45+
],
46+
],
47+
]): ResponseInterface;
48+
49+
/**
50+
* 设置会员服务项用户信息(异步模式)
51+
* @param array<string,mixed> $options
52+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/codes/%7Bcode%7D/set-service-module-data
53+
*/
54+
public function postAsync(array $options = [
55+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
56+
'code' => '478515832665',
57+
'json' => [
58+
'out_request_no' => '100002322019090134234sfdf',
59+
'service_module_id' => '666',
60+
'state_setting' => [
61+
'state_id' => 'CHECKED_IN',
62+
'content_template_data' => [
63+
'field_list' => [[
64+
'field_id' => 'hotel_name',
65+
'field_value' => '深圳市南山区滨海路700号',
66+
],],
67+
'action_setting' => [
68+
'action_name' => '一键开锁',
69+
'jump_miniprogram' => [
70+
'appid' => 'wx37178d097a6851d8',
71+
'path' => 'pages/index/index',
72+
],
73+
],
74+
],
75+
'message_template_setting' => [
76+
'message_template_id' => '9bJgRNz9XG248XZ-a0nDKH3Vt_vaTp32fRP1LWvxjzI',
77+
'field_list' => [[
78+
'field_id' => 'hotel_name',
79+
'field_value' => '深圳市南山区滨海路700号',
80+
],],
81+
],
82+
],
83+
],
84+
]): PromiseInterface;
85+
}

src/V3/Marketing/MembercardOpen/Cards/_card_id_/PhoneMembercard/Import.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ public function post(array $options = [
2121
'code' => '478515832665',
2222
'out_request_no' => '100002322019090134234sfdf',
2323
],
24+
'headers' => [
25+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
26+
],
2427
]): ResponseInterface;
2528

2629
/**
@@ -35,5 +38,8 @@ public function postAsync(array $options = [
3538
'code' => '478515832665',
3639
'out_request_no' => '100002322019090134234sfdf',
3740
],
41+
'headers' => [
42+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
43+
],
3844
]): PromiseInterface;
3945
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\MembercardOpen\Cards\_card_id_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read ServiceModules\_service_module_id_ $_service_module_id_
10+
*/
11+
interface ServiceModules
12+
{
13+
/**
14+
* 添加会员卡服务项(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/service-modules
17+
*/
18+
public function post(array $options = [
19+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
20+
'json' => [
21+
'service_module_id' => '666',
22+
'jump_miniprogram' => [
23+
'appid' => 'wx37178d097a6851d8',
24+
'path' => 'pages/index/index',
25+
],
26+
],
27+
]): ResponseInterface;
28+
29+
/**
30+
* 添加会员卡服务项(异步模式)
31+
* @param array<string,mixed> $options
32+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/service-modules
33+
*/
34+
public function postAsync(array $options = [
35+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
36+
'json' => [
37+
'service_module_id' => '666',
38+
'jump_miniprogram' => [
39+
'appid' => 'wx37178d097a6851d8',
40+
'path' => 'pages/index/index',
41+
],
42+
],
43+
]): PromiseInterface;
44+
}
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\MembercardOpen\Cards\_card_id_\ServiceModules;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface _service_module_id_
11+
{
12+
/**
13+
* 修改会员卡服务项(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/service-modules/%7Bservice_module_id%7D
16+
*/
17+
public function patch(array $options = [
18+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
19+
'service_module_id' => '666',
20+
'json' => [
21+
'jump_miniprogram' => [
22+
'appid' => 'wx37178d097a6851d8',
23+
'path' => 'pages/index/index',
24+
],
25+
],
26+
]): ResponseInterface;
27+
28+
/**
29+
* 修改会员卡服务项(异步模式)
30+
* @param array<string,mixed> $options
31+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/service-modules/%7Bservice_module_id%7D
32+
*/
33+
public function patchAsync(array $options = [
34+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
35+
'service_module_id' => '666',
36+
'json' => [
37+
'jump_miniprogram' => [
38+
'appid' => 'wx37178d097a6851d8',
39+
'path' => 'pages/index/index',
40+
],
41+
],
42+
]): PromiseInterface;
43+
44+
/**
45+
* 移除会员卡服务项(同步模式)
46+
* @param array<string,mixed> $options
47+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/service-modules/%7Bservice_module_id%7D#delete
48+
*/
49+
public function delete(array $options = [
50+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
51+
'service_module_id' => '666',
52+
]): ResponseInterface;
53+
54+
/**
55+
* 移除会员卡服务项(异步模式)
56+
* @param array<string,mixed> $options
57+
* @link https://wechatpay.im/openapi/v3/marketing/membercard-open/cards/%7Bcard_id%7D/service-modules/%7Bservice_module_id%7D#delete
58+
*/
59+
public function deleteAsync(array $options = [
60+
'card_id' => 'pbLatjvWOibDc5-TBnbUk1pD12o0',
61+
'service_module_id' => '666',
62+
]): PromiseInterface;
63+
}

src/V3/Marketing/Partnerships/Build.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ public function post(array $options = [
1818
'json' => [
1919
'partner' => [
2020
'type' => 'APPID | MERCHANT',
21-
'appid' => '',
22-
'merchant_id' => '',
21+
'appid' => 'wx4e1916a585d1f4e9',
22+
'merchant_id' => '2480029552',
2323
],
2424
'authorized_data' => [
2525
'business_type' => 'FAVOR_STOCK | BUSIFAVOR_STOCK',
26-
'stock_id' => '',
26+
'stock_id' => '2433405',
2727
],
2828
],
2929
'headers' => [
30-
'Idempotency-Key' => '',
30+
'Idempotency-Key' => '12345',
3131
],
3232
]): ResponseInterface;
3333

@@ -40,16 +40,16 @@ public function postAsync(array $options = [
4040
'json' => [
4141
'partner' => [
4242
'type' => 'APPID | MERCHANT',
43-
'appid' => '',
44-
'merchant_id' => '',
43+
'appid' => 'wx4e1916a585d1f4e9',
44+
'merchant_id' => '2480029552',
4545
],
4646
'authorized_data' => [
4747
'business_type' => 'FAVOR_STOCK | BUSIFAVOR_STOCK',
48-
'stock_id' => '',
48+
'stock_id' => '2433405',
4949
],
5050
],
5151
'headers' => [
52-
'Idempotency-Key' => '',
52+
'Idempotency-Key' => '12345',
5353
],
5454
]): PromiseInterface;
5555
}

src/V3/Marketing/Partnerships/Terminate.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ public function post(array $options = [
1818
'json' => [
1919
'partner' => [
2020
'type' => 'APPID | MERCHANT',
21-
'appid' => '',
22-
'merchant_id' => '',
21+
'appid' => 'wx4e1916a585d1f4e9',
22+
'merchant_id' => '2480029552',
2323
],
2424
'authorized_data' => [
2525
'business_type' => 'FAVOR_STOCK | BUSIFAVOR_STOCK',
26-
'stock_id' => '',
26+
'stock_id' => '2433405',
2727
],
2828
],
2929
'headers' => [
30-
'Idempotency-Key' => '',
30+
'Idempotency-Key' => '12345',
3131
],
3232
]): ResponseInterface;
3333

@@ -40,16 +40,16 @@ public function postAsync(array $options = [
4040
'json' => [
4141
'partner' => [
4242
'type' => 'APPID | MERCHANT',
43-
'appid' => '',
44-
'merchant_id' => '',
43+
'appid' => 'wx4e1916a585d1f4e9',
44+
'merchant_id' => '2480029552',
4545
],
4646
'authorized_data' => [
4747
'business_type' => 'FAVOR_STOCK | BUSIFAVOR_STOCK',
48-
'stock_id' => '',
48+
'stock_id' => '2433405',
4949
],
5050
],
5151
'headers' => [
52-
'Idempotency-Key' => '',
52+
'Idempotency-Key' => '12345',
5353
],
5454
]): PromiseInterface;
5555
}

0 commit comments

Comments
 (0)