Skip to content

Commit f59a68e

Browse files
A: src/V3/Ecommerce/Account/ApplyCancelWithdraw/*`
1 parent 96a4cff commit f59a68e

5 files changed

Lines changed: 156 additions & 0 deletions

File tree

src/V3/Ecommerce/Account/ApplyCancelWithdraw.php

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,87 @@
22

33
namespace WeChatPay\OpenAPI\V3\Ecommerce\Account;
44

5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
58
/**
9+
* @property-read ApplyCancelWithdraw\OutRequestNo $outRequestNo
10+
* @property-read ApplyCancelWithdraw\ApplymentId $applymentId
611
* @property-read ApplyCancelWithdraw\Confirm $confirm
712
*/
813
interface ApplyCancelWithdraw
914
{
15+
/**
16+
* 提交注销提现申请(同步模式)
17+
* @param array<string,mixed> $options
18+
* @link https://wechatpay.im/openapi/v3/ecommerce/account/apply-cancel-withdraw
19+
*/
20+
public function post(array $options = [
21+
'json' => [
22+
'sub_mchid' => '1900000109',
23+
'out_request_no' => 'P202410241010125346',
24+
'withdraw' => 'APPLY_WITHDRAW',
25+
'payee_info' => [
26+
'account_type' => 'ACCOUNT_TYPE_CORPORATE',
27+
'bank_account_info' => [
28+
'account_name' => 'AOZdYGISxo4y44/UgZ69b0zZXkw==',
29+
'account_bank' => '工商银行',
30+
'bank_branch_id' => '402713354941',
31+
'bank_name' => '402713354941',
32+
'account_number' => 'd+xT+MQCvrLHeorwC+w==',
33+
],
34+
'identity_info' => [
35+
'id_doc_type' => 'IDENTIFICATION_TYPE_IDCARD',
36+
'identification_name' => 'pVd1HJ6zyvPedzfg==',
37+
'identification_no' => 'AOZdYGISxo4y44/UgZ69bkw==',
38+
],
39+
],
40+
'proof_medias' => [[
41+
'proof_media_type' => 'WITHDRAWAL_APPLICATION',
42+
'proof_media' => 'jTpGmxUX3FBWVQ5NJTZvlKXQ',
43+
],],
44+
'additional_materials' => ['jTpGmxUX3FBWVQ5NFQ'],
45+
'remark' => '特殊理由',
46+
],
47+
'headers' => [
48+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
49+
],
50+
]): ResponseInterface;
51+
52+
/**
53+
* 提交注销提现申请(异步模式)
54+
* @param array<string,mixed> $options
55+
* @link https://wechatpay.im/openapi/v3/ecommerce/account/apply-cancel-withdraw
56+
*/
57+
public function postAsync(array $options = [
58+
'json' => [
59+
'sub_mchid' => '1900000109',
60+
'out_request_no' => 'P202410241010125346',
61+
'withdraw' => 'APPLY_WITHDRAW',
62+
'payee_info' => [
63+
'account_type' => 'ACCOUNT_TYPE_CORPORATE',
64+
'bank_account_info' => [
65+
'account_name' => 'AOZdYGISxo4y44/UgZ69b0zZXkw==',
66+
'account_bank' => '工商银行',
67+
'bank_branch_id' => '402713354941',
68+
'bank_name' => '402713354941',
69+
'account_number' => 'd+xT+MQCvrLHeorwC+w==',
70+
],
71+
'identity_info' => [
72+
'id_doc_type' => 'IDENTIFICATION_TYPE_IDCARD',
73+
'identification_name' => 'pVd1HJ6zyvPedzfg==',
74+
'identification_no' => 'AOZdYGISxo4y44/UgZ69bkw==',
75+
],
76+
],
77+
'proof_medias' => [[
78+
'proof_media_type' => 'WITHDRAWAL_APPLICATION',
79+
'proof_media' => 'jTpGmxUX3FBWVQ5NJTZvlKXQ',
80+
],],
81+
'additional_materials' => ['jTpGmxUX3FBWVQ5NFQ'],
82+
'remark' => '特殊理由',
83+
],
84+
'headers' => [
85+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
86+
],
87+
]): PromiseInterface;
1088
}
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\Ecommerce\Account\ApplyCancelWithdraw;
4+
5+
/**
6+
* @property-read ApplymentId\_applyment_id_ $_applyment_id_
7+
*/
8+
interface ApplymentId
9+
{
10+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Ecommerce\Account\ApplyCancelWithdraw\ApplymentId;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface _applyment_id_
11+
{
12+
/**
13+
* 微信支付销提现申请单号查询提现申请单状态(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/ecommerce/account/apply-cancel-withdraw/applyment-id/%7Bapplyment_id%7D
16+
*/
17+
public function get(array $options = [
18+
'applyment_id' => 'X202410241010125346',
19+
]): ResponseInterface;
20+
21+
/**
22+
* 微信支付销提现申请单号查询提现申请单状态(异步模式)
23+
* @param array<string,mixed> $options
24+
* @link https://wechatpay.im/openapi/v3/ecommerce/account/apply-cancel-withdraw/applyment-id/%7Bapplyment_id%7D
25+
*/
26+
public function getAsync(array $options = [
27+
'applyment_id' => 'X202410241010125346',
28+
]): PromiseInterface;
29+
}
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\Ecommerce\Account\ApplyCancelWithdraw;
4+
5+
/**
6+
* @property-read OutRequestNo\_out_request_no_ $_out_request_no_
7+
*/
8+
interface OutRequestNo
9+
{
10+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\Ecommerce\Account\ApplyCancelWithdraw\OutRequestNo;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface _out_request_no_
11+
{
12+
/**
13+
* 商户注销提现申请单号查询申请单状态(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/ecommerce/account/apply-cancel-withdraw/out-request-no/%7Bout_request_no%7D
16+
*/
17+
public function get(array $options = [
18+
'out_request_no' => 'P202410241010125346',
19+
]): ResponseInterface;
20+
21+
/**
22+
* 商户注销提现申请单号查询申请单状态(异步模式)
23+
* @param array<string,mixed> $options
24+
* @link https://wechatpay.im/openapi/v3/ecommerce/account/apply-cancel-withdraw/out-request-no/%7Bout_request_no%7D
25+
*/
26+
public function getAsync(array $options = [
27+
'out_request_no' => 'P202410241010125346',
28+
]): PromiseInterface;
29+
}

0 commit comments

Comments
 (0)