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