Skip to content

Commit

Permalink
收付通∙售后赔付 & 收付通∙保险理赔
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNorthMemory committed Jan 23, 2025
1 parent 116aded commit d40aeef
Show file tree
Hide file tree
Showing 16 changed files with 470 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/V3/Platsolution/Ecommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
/**
* @property-read Ecommerce\Settle $settle
* @property-read Ecommerce\Recharges $recharges
* @property-read Ecommerce\MchTransfer $mchTransfer
* @property-read Ecommerce\InsuranceCompensationContracts $insuranceCompensationContracts
* @property-read Ecommerce\BankTransferRecharges $bankTransferRecharges
*/
Expand Down
11 changes: 11 additions & 0 deletions src/V3/Platsolution/Ecommerce/MchTransfer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce;

/**
* @property-read MchTransfer\InsuranceClaimBills $insuranceClaimBills
* @property-read MchTransfer\CompensateBills $compensateBills
*/
interface MchTransfer
{
}
58 changes: 58 additions & 0 deletions src/V3/Platsolution/Ecommerce/MchTransfer/CompensateBills.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
* @property-read CompensateBills\OutBillNo $outBillNo
* @property-read CompensateBills\BillId $billId
* @property-read CompensateBills\PreTransfer $preTransfer
*/
interface CompensateBills
{
/**
* 请求赔付(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills
*/
public function post(array $options = [
'json' => [
'receiver' => [
'type' => 'MERCHANT',
'transaction_info' => [
'transaction_id' => '1217752501201407033233368018',
],
],
'out_bill_no' => 'plfk2020042013',
'amount' => 10000,
'transfer_remark' => '直播违规扣罚',
'sponsor_mchid' => '1900001109',
'transfer_scene_id' => '1001',
'user_recv_perception' => '退货运费补偿',
],
]): ResponseInterface;

/**
* 请求赔付(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills
*/
public function postAsync(array $options = [
'json' => [
'receiver' => [
'type' => 'MERCHANT',
'transaction_info' => [
'transaction_id' => '1217752501201407033233368018',
],
],
'out_bill_no' => 'plfk2020042013',
'amount' => 10000,
'transfer_remark' => '直播违规扣罚',
'sponsor_mchid' => '1900001109',
'transfer_scene_id' => '1001',
'user_recv_perception' => '退货运费补偿',
],
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\CompensateBills;

/**
* @property-read BillId\_bill_id_ $_bill_id_
*/
interface BillId
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\CompensateBills\BillId;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
*/
interface _bill_id_
{
/**
* 查询赔付结果(按微信支付赔付单号)(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/bill-id/%7Bbill_id%7D
*/
public function get(array $options = [
'bill_id' => '1330000071100999991182020050700019480001',
]): ResponseInterface;

/**
* 查询赔付结果(按微信支付赔付单号)(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/bill-id/%7Bbill_id%7D
*/
public function getAsync(array $options = [
'bill_id' => '1330000071100999991182020050700019480001',
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\CompensateBills;

/**
* @property-read OutBillNo\_out_bill_no_ $_out_bill_no_
*/
interface OutBillNo
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\CompensateBills\OutBillNo;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
* @property-read _out_bill_no_\Cancel $cancel
*/
interface _out_bill_no_
{
/**
* 查询赔付结果(按商户赔付单号)(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/out-bill-no/%7Bout_bill_no%7D
*/
public function get(array $options = [
'out_bill_no' => 'plfk2020042013',
]): ResponseInterface;

/**
* 查询赔付结果(按商户赔付单号)(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/out-bill-no/%7Bout_bill_no%7D
*/
public function getAsync(array $options = [
'out_bill_no' => 'plfk2020042013',
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\CompensateBills\OutBillNo\_out_bill_no_;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
*/
interface Cancel
{
/**
* 请求撤销赔付(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/out-bill-no/%7Bout_bill_no%7D/cancel
*/
public function post(array $options = [
'out_bill_no' => 'plfk2020042013',
]): ResponseInterface;

/**
* 请求撤销赔付(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/out-bill-no/%7Bout_bill_no%7D/cancel
*/
public function postAsync(array $options = [
'out_bill_no' => 'plfk2020042013',
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\CompensateBills;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
*/
interface PreTransfer
{
/**
* 请求赔付预下单(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/pre-transfer
*/
public function post(array $options = [
'json' => [
'sp_appid' => 'wx8888888888888888',
'receiver' => [
'type' => 'MERCHANT',
'transaction_info' => [
'transaction_id' => '1217752501201407033233368018',
],
],
'out_bill_no' => 'plfk2020042013',
'amount' => 10000,
'transfer_remark' => '直播违规扣罚',
'sponsor_mchid' => '1900001109',
'transfer_scene_id' => '1001',
'user_recv_perception' => '退货运费补偿',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]): ResponseInterface;

/**
* 请求赔付预下单(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/compensate-bills/pre-transfer
*/
public function postAsync(array $options = [
'json' => [
'sp_appid' => 'wx8888888888888888',
'receiver' => [
'type' => 'MERCHANT',
'transaction_info' => [
'transaction_id' => '1217752501201407033233368018',
],
],
'out_bill_no' => 'plfk2020042013',
'amount' => 10000,
'transfer_remark' => '直播违规扣罚',
'sponsor_mchid' => '1900001109',
'transfer_scene_id' => '1001',
'user_recv_perception' => '退货运费补偿',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]): PromiseInterface;
}
54 changes: 54 additions & 0 deletions src/V3/Platsolution/Ecommerce/MchTransfer/InsuranceClaimBills.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
* @property-read InsuranceClaimBills\OutBillNo $outBillNo
* @property-read InsuranceClaimBills\BillId $billId
* @property-read InsuranceClaimBills\PreTransfer $preTransfer
*/
interface InsuranceClaimBills
{
/**
* 请求保险理赔(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/insurance-claim-bills
*/
public function post(array $options = [
'json' => [
'sub_mchid' => '1900001109',
'receiver' => [
'type' => 'MERCHANT',
'transaction_info' => [
'transaction_id' => '1217752501201407033233368018',
],
],
'out_bill_no' => 'plfk2020042013',
'amount' => 10000,
'transfer_remark' => '直播违规扣罚',
],
]): ResponseInterface;

/**
* 请求保险理赔(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/insurance-claim-bills
*/
public function postAsync(array $options = [
'json' => [
'sub_mchid' => '1900001109',
'receiver' => [
'type' => 'MERCHANT',
'transaction_info' => [
'transaction_id' => '1217752501201407033233368018',
],
],
'out_bill_no' => 'plfk2020042013',
'amount' => 10000,
'transfer_remark' => '直播违规扣罚',
],
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\InsuranceClaimBills;

/**
* @property-read BillId\_bill_id_ $_bill_id_
*/
interface BillId
{
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\InsuranceClaimBills\BillId;

use Psr\Http\Message\ResponseInterface;
use GuzzleHttp\Promise\PromiseInterface;

/**
*/
interface _bill_id_
{
/**
* 查询保险理赔结果(按微信支付赔付单号)(同步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/insurance-claim-bills/bill-id/%7Bbill_id%7D
*/
public function get(array $options = [
'bill_id' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001109',
],
]): ResponseInterface;

/**
* 查询保险理赔结果(按微信支付赔付单号)(异步模式)
* @param array<string,mixed> $options
* @link https://wechatpay.im/openapi/v3/platsolution/ecommerce/mch-transfer/insurance-claim-bills/bill-id/%7Bbill_id%7D
*/
public function getAsync(array $options = [
'bill_id' => '1330000071100999991182020050700019480001',
'query' => [
'sub_mchid' => '1900001109',
],
]): PromiseInterface;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */

namespace WeChatPay\OpenAPI\V3\Platsolution\Ecommerce\MchTransfer\InsuranceClaimBills;

/**
* @property-read OutBillNo\_out_bill_no_ $_out_bill_no_
*/
interface OutBillNo
{
}
Loading

0 comments on commit d40aeef

Please sign in to comment.