Skip to content

Commit 173288b

Browse files
A: src/V3/.../ProductCoupon/.../PreSendCoupon.php
1 parent 1f10453 commit 173288b

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

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

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

55
/**
66
* @property-read _openid_\Coupons $coupons
7+
* @property-read _openid_\PreSendCoupon $preSendCoupon
78
*/
89
interface _openid_
910
{
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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 PreSendCoupon
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
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_id' => '1000000013001',
23+
'coupon_code' => '123446565767',
24+
'appid' => 'wx233544546545989',
25+
'send_request_no' => '34657_20250101_123456',
26+
'attach' => 'example_attach',
27+
],
28+
]): ResponseInterface;
29+
30+
/**
31+
* 向用户预发放商品券(异步模式)
32+
* @param array<string,mixed> $options
33+
* @link https://wechatpay.im/openapi/v3/marketing/partner/product-coupon/users/%7Bopenid%7D/pre-send-coupon
34+
*/
35+
public function postAsync(array $options = [
36+
'openid' => 'oh-394z-6CGkNoJrsDLTTUKiAnp4',
37+
'json' => [
38+
'brand_id' => '120344',
39+
'product_coupon_id' => '1000000013',
40+
'stock_id' => '1000000013001',
41+
'coupon_code' => '123446565767',
42+
'appid' => 'wx233544546545989',
43+
'send_request_no' => '34657_20250101_123456',
44+
'attach' => 'example_attach',
45+
],
46+
]): PromiseInterface;
47+
}

0 commit comments

Comments
 (0)