|
| 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