Skip to content

Commit b137127

Browse files
A: src/V3/NewTaxControlFapiao/FapiaoApplications/IssueRefinedOil.php
1 parent 41762da commit b137127

2 files changed

Lines changed: 136 additions & 0 deletions

File tree

src/V3/NewTaxControlFapiao/FapiaoApplications.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
/**
99
* @property-read FapiaoApplications\_fapiao_apply_id_ $_fapiao_apply_id_
1010
* @property-read FapiaoApplications\IssueGeneral $issueGeneral
11+
* @property-read FapiaoApplications\IssueRefinedOil $issueRefinedOil
1112
* @property-read FapiaoApplications\RealEstateLeasing $realEstateLeasing
1213
* @property-read FapiaoApplications\UploadFapiaoFile $uploadFapiaoFile
1314
*/
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<?php declare(strict_types=1);/* Generated file. DO NOT EDIT! */
2+
3+
namespace WeChatPay\OpenAPI\V3\NewTaxControlFapiao\FapiaoApplications;
4+
5+
use Psr\Http\Message\ResponseInterface;
6+
use GuzzleHttp\Promise\PromiseInterface;
7+
8+
/**
9+
*/
10+
interface IssueRefinedOil
11+
{
12+
/**
13+
* 开具成品油行业电子发票(同步模式)
14+
* @param array<string,mixed> $options
15+
* @link https://wechatpay.im/openapi/v3/new-tax-control-fapiao/fapiao-applications/issue-refined-oil
16+
*/
17+
public function post(array $options = [
18+
'json' => [
19+
'sub_mchid' => '1900000109',
20+
'fapiao_apply_id' => '4200000444201910177461284488',
21+
'buyer_information' => [
22+
'type' => 'ORGANIZATION',
23+
'name' => '深圳市南山区测试企业',
24+
'taxpayer_id' => '202003261233701778',
25+
'address' => '深圳市南山区深南大道10000号',
26+
'telephone' => '075512345678',
27+
'bank_name' => '测试银行',
28+
'bank_account' => '62001234567890',
29+
'phone' => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPttdY+aQ6zB',
30+
'email' => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPttdY+aQ6zB',
31+
'amount' => 1000,
32+
'out_trade_no' => 'order_20200701_123456',
33+
'fapiao_bill_type' => 'COMM_FAPIAO',
34+
'user_apply_message' => '用户留言',
35+
],
36+
'fapiao_information' => [
37+
'fapiao_id' => '20200701123456',
38+
'total_amount' => 382895,
39+
'items' => [[
40+
'tax_code' => '3010101020203000000',
41+
'goods_name' => '出租汽车客运服务',
42+
'specification' => 'A4',
43+
'unit' => 'TON',
44+
'quantity' => 100000000,
45+
'total_amount' => 429900,
46+
'tax_rate' => 1300,
47+
'discount' => true,
48+
'preferential_policy_code' => 1,
49+
'refined_oil_information' => [
50+
'station' => '中国石油(江北红旗河沟加油站)',
51+
'trade_time' => '2025-07-01T00:00:00+08:00',
52+
'gun_number' => '1号枪',
53+
],
54+
],],
55+
'export_business_policy_code' => 1,
56+
'vat_refund_levy_code' => 1,
57+
'billing_person_id' => '187776276864872',
58+
'billing_person' => '**伟 0020',
59+
'fapiao_bill_type' => 'COMM_FAPIAO',
60+
'transaction_information' => [[
61+
'pay_channel' => 'WECHAT_PAY',
62+
'transaction_id' => '4200000008202508080512076713',
63+
'out_trade_no' => 'order_20200701_123456',
64+
'amount' => 382895,
65+
],],
66+
'remark' => '备注',
67+
],
68+
],
69+
'headers' => [
70+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
71+
],
72+
]): ResponseInterface;
73+
74+
/**
75+
* 开具成品油行业电子发票(异步模式)
76+
* @param array<string,mixed> $options
77+
* @link https://wechatpay.im/openapi/v3/new-tax-control-fapiao/fapiao-applications/issue-refined-oil
78+
*/
79+
public function postAsync(array $options = [
80+
'json' => [
81+
'sub_mchid' => '1900000109',
82+
'fapiao_apply_id' => '4200000444201910177461284488',
83+
'buyer_information' => [
84+
'type' => 'ORGANIZATION',
85+
'name' => '深圳市南山区测试企业',
86+
'taxpayer_id' => '202003261233701778',
87+
'address' => '深圳市南山区深南大道10000号',
88+
'telephone' => '075512345678',
89+
'bank_name' => '测试银行',
90+
'bank_account' => '62001234567890',
91+
'phone' => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPttdY+aQ6zB',
92+
'email' => 'pVd1HJ6zyvPedzGaV+X3qtmrq9bb9tPttdY+aQ6zB',
93+
'amount' => 1000,
94+
'out_trade_no' => 'order_20200701_123456',
95+
'fapiao_bill_type' => 'COMM_FAPIAO',
96+
'user_apply_message' => '用户留言',
97+
],
98+
'fapiao_information' => [
99+
'fapiao_id' => '20200701123456',
100+
'total_amount' => 382895,
101+
'items' => [[
102+
'tax_code' => '3010101020203000000',
103+
'goods_name' => '出租汽车客运服务',
104+
'specification' => 'A4',
105+
'unit' => 'TON',
106+
'quantity' => 100000000,
107+
'total_amount' => 429900,
108+
'tax_rate' => 1300,
109+
'discount' => true,
110+
'preferential_policy_code' => 1,
111+
'refined_oil_information' => [
112+
'station' => '中国石油(江北红旗河沟加油站)',
113+
'trade_time' => '2025-07-01T00:00:00+08:00',
114+
'gun_number' => '1号枪',
115+
],
116+
],],
117+
'export_business_policy_code' => 1,
118+
'vat_refund_levy_code' => 1,
119+
'billing_person_id' => '187776276864872',
120+
'billing_person' => '**伟 0020',
121+
'fapiao_bill_type' => 'COMM_FAPIAO',
122+
'transaction_information' => [[
123+
'pay_channel' => 'WECHAT_PAY',
124+
'transaction_id' => '4200000008202508080512076713',
125+
'out_trade_no' => 'order_20200701_123456',
126+
'amount' => 382895,
127+
],],
128+
'remark' => '备注',
129+
],
130+
],
131+
'headers' => [
132+
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
133+
],
134+
]): PromiseInterface;
135+
}

0 commit comments

Comments
 (0)