Skip to content

Commit 55e9f14

Browse files
A: src/V3/IndustryRebate/RetailIndustry*
1 parent f0ba756 commit 55e9f14

3 files changed

Lines changed: 66 additions & 0 deletions

File tree

src/V3/IndustryRebate.php

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

55
/**
66
* @property-read IndustryRebate\Transactions $transactions
7+
* @property-read IndustryRebate\RetailIndustry $retailIndustry
78
*/
89
interface IndustryRebate
910
{
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\IndustryRebate;
4+
5+
/**
6+
* @property-read RetailIndustry\Transactions $transactions
7+
*/
8+
interface RetailIndustry
9+
{
10+
}
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\IndustryRebate\RetailIndustry;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface Transactions
11+
{
12+
/**
13+
* 回传SN和商品编码(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/industry-rebate/retail-industry/transactions
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'brand_id' => '120344',
20+
'transaction_id' => '20190611222222222200000000012122',
21+
'out_trade_no' => 'example_out_trade_no',
22+
'sub_mchid' => '1900000001',
23+
'device_id' => 'example_device_id',
24+
'goods_detail' => [[
25+
'barcode' => 'example_barcode',
26+
'merchant_goods_id' => '1001',
27+
'goods_name' => 'iPhoneX 256G',
28+
'quantity' => 1,
29+
'price' => 528800,
30+
],],
31+
],
32+
]): ResponseInterface;
33+
34+
/**
35+
* 回传SN和商品编码(异步模式)
36+
* @param array<string,mixed> $options
37+
* @link https://wechatpay.im/openapi/v3/industry-rebate/retail-industry/transactions
38+
*/
39+
public function postAsync(array $options = [
40+
'json' => [
41+
'brand_id' => '120344',
42+
'transaction_id' => '20190611222222222200000000012122',
43+
'out_trade_no' => 'example_out_trade_no',
44+
'sub_mchid' => '1900000001',
45+
'device_id' => 'example_device_id',
46+
'goods_detail' => [[
47+
'barcode' => 'example_barcode',
48+
'merchant_goods_id' => '1001',
49+
'goods_name' => 'iPhoneX 256G',
50+
'quantity' => 1,
51+
'price' => 528800,
52+
],],
53+
],
54+
]): PromiseInterface;
55+
}

0 commit comments

Comments
 (0)