Skip to content

Commit c0bc207

Browse files
A: src/V3/Marketing/Partner/DeliveryPlan*
1 parent ccc90a7 commit c0bc207

9 files changed

Lines changed: 244 additions & 0 deletions

File tree

src/V3/Marketing/Partner.php

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

55
/**
66
* @property-read Partner\ProductCoupon $productCoupon
7+
* @property-read Partner\DeliveryPlan $deliveryPlan
78
*/
89
interface Partner
910
{
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner;
4+
5+
/**
6+
* @property-read DeliveryPlan\_sp_mchid_ $_sp_mchid_
7+
* @property-read DeliveryPlan\DeliveryPlans $deliveryPlans
8+
*/
9+
interface DeliveryPlan
10+
{
11+
}
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read DeliveryPlans\_plan_id_ $_plan_id_
10+
* @property-read DeliveryPlans\_brand_id_ $_brand_id_
11+
*/
12+
interface DeliveryPlans
13+
{
14+
/**
15+
* 创建投放计划(同步模式)
16+
* @param array<string,mixed> $options
17+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans
18+
*/
19+
public function post(array $options = [
20+
'json' => [
21+
'out_request_no' => 'asdf-1234-40016',
22+
'brand_id' => '40016',
23+
'product_coupon_id' => '701146876221757924829193824428',
24+
'stock_id' => '701246876221757924829194755312',
25+
'plan_name' => '冬季饮料投放',
26+
'total_count' => 1,
27+
'user_limit' => 1,
28+
'daily_limit' => 1,
29+
'delivery_start_time' => '2025-01-01T00:00:00+08:00',
30+
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
31+
'recommend_word' => '天天有惊喜',
32+
],
33+
]): ResponseInterface;
34+
35+
/**
36+
* 创建投放计划(异步模式)
37+
* @param array<string,mixed> $options
38+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans
39+
*/
40+
public function postAsync(array $options = [
41+
'json' => [
42+
'out_request_no' => 'asdf-1234-40016',
43+
'brand_id' => '40016',
44+
'product_coupon_id' => '701146876221757924829193824428',
45+
'stock_id' => '701246876221757924829194755312',
46+
'plan_name' => '冬季饮料投放',
47+
'total_count' => 1,
48+
'user_limit' => 1,
49+
'daily_limit' => 1,
50+
'delivery_start_time' => '2025-01-01T00:00:00+08:00',
51+
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
52+
'recommend_word' => '天天有惊喜',
53+
],
54+
]): PromiseInterface;
55+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan\DeliveryPlans;
4+
5+
/**
6+
* @property-read _brand_id_\DeliveryPlans $deliveryPlans
7+
*/
8+
interface _brand_id_
9+
{
10+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan\DeliveryPlans\_brand_id_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface DeliveryPlans
11+
{
12+
/**
13+
* 分页查询投放计划列表(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans/%7Bbrand_id%7D/delivery-plans
16+
*/
17+
public function get(array $options = [
18+
'brand_id' => '40016',
19+
'query' => [
20+
'page_size' => 5,
21+
'offset' => 10,
22+
'plan_state' => 'PLAN_CREATED',
23+
'audit_state' => '12000',
24+
'plan_id' => '12000',
25+
],
26+
]): ResponseInterface;
27+
28+
/**
29+
* 分页查询投放计划列表(异步模式)
30+
* @param array<string,mixed> $options
31+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans/%7Bbrand_id%7D/delivery-plans
32+
*/
33+
public function getAsync(array $options = [
34+
'brand_id' => '40016',
35+
'query' => [
36+
'page_size' => 5,
37+
'offset' => 10,
38+
'plan_state' => 'PLAN_CREATED',
39+
'audit_state' => '12000',
40+
'plan_id' => '12000',
41+
],
42+
]): PromiseInterface;
43+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan\DeliveryPlans;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
* @property-read _plan_id_\Terminate $terminate
10+
*/
11+
interface _plan_id_
12+
{
13+
/**
14+
* 更新投放计划(同步模式)
15+
* @param array<string,mixed> $options
16+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans/%7Bplan_id%7D
17+
*/
18+
public function patch(array $options = [
19+
'plan_id' => '12000',
20+
'json' => [
21+
'modify_content' => [
22+
'plan_name' => '冬季饮料投放',
23+
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
24+
'total_count' => 1,
25+
'user_limit' => 1,
26+
'daily_limit' => 1,
27+
'recommend_word' => '天天有惊喜',
28+
],
29+
],
30+
]): ResponseInterface;
31+
32+
/**
33+
* 更新投放计划(异步模式)
34+
* @param array<string,mixed> $options
35+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans/%7Bplan_id%7D
36+
*/
37+
public function patchAsync(array $options = [
38+
'plan_id' => '12000',
39+
'json' => [
40+
'modify_content' => [
41+
'plan_name' => '冬季饮料投放',
42+
'delivery_end_time' => '2025-01-01T00:00:00+08:00',
43+
'total_count' => 1,
44+
'user_limit' => 1,
45+
'daily_limit' => 1,
46+
'recommend_word' => '天天有惊喜',
47+
],
48+
],
49+
]): PromiseInterface;
50+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan\DeliveryPlans\_plan_id_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Terminate
11+
{
12+
/**
13+
* 终止投放计划(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans/%7Bplan_id%7D/terminate
16+
*/
17+
public function post(array $options = [
18+
'plan_id' => '12000',
19+
]): ResponseInterface;
20+
21+
/**
22+
* 终止投放计划(异步模式)
23+
* @param array<string,mixed> $options
24+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/delivery-plans/%7Bplan_id%7D/terminate
25+
*/
26+
public function postAsync(array $options = [
27+
'plan_id' => '12000',
28+
]): PromiseInterface;
29+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan;
4+
5+
/**
6+
* @property-read _sp_mchid_\NotifyUrl $notifyUrl
7+
*/
8+
interface _sp_mchid_
9+
{
10+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Marketing\Partner\DeliveryPlan\_sp_mchid_;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface NotifyUrl
11+
{
12+
/**
13+
* 设置投放计划回调地址(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/%7Bsp_mchid%7D/notify-url
16+
*/
17+
public function post(array $options = [
18+
'sp_mchid' => '298689900',
19+
'json' => [
20+
'notify_url' => 'https://pay.weixin.qq.com',
21+
],
22+
]): ResponseInterface;
23+
24+
/**
25+
* 设置投放计划回调地址(异步模式)
26+
* @param array<string,mixed> $options
27+
* @link https://wechatpay.im/openapi/v3/marketing/partner/delivery-plan/%7Bsp_mchid%7D/notify-url
28+
*/
29+
public function postAsync(array $options = [
30+
'sp_mchid' => '298689900',
31+
'json' => [
32+
'notify_url' => 'https://pay.weixin.qq.com',
33+
],
34+
]): PromiseInterface;
35+
}

0 commit comments

Comments
 (0)