gkvdt / uyumsoft-einvoice
uyumsoft的Eincoice/Earchive集成
dev-master
2023-01-03 11:51 UTC
This package is auto-updated.
Last update: 2024-09-30 01:41:15 UTC
README
对于第一个curl命令,请运行composer install gkvdt/uyumsoft_einvoice。
然后,在config/app.php文件的providers部分中添加Gkvdt\UyumsoftEinvoice\Providers\EInvoiceServiceProvider::class提供者,并运行php artisan vendor:publish --tag="uyumsoft_einvoice"命令。
在发布migrations和config/uyumsoft_einvoice.php文件后,为了在产品模式下运行应用程序,只需在config/uyumsoft_einvoice.php中
[
...
'is_dev' => false
]
进行操作即可。
然后,运行php artisan migrate命令后,将创建2个新的数据库表。在ws_users表中,存储了Uyumsoft的用户名和密码,以及user_id和登录用户名。在ws_partys表中包含公司信息(地址、电话等)。(参见:Party.php)
示例用法
创建WdslRequest对象后,可以通过WdslRequest->request()的形式发送请求。
例如;
$wdslRequest = new GetInboxInvoice();
$wdslRequest->request();
从现有的WdslRequest类派生出的所有类
GetEInvoiceUsers
GetInboxInvoice
GetInboxInvoiceData
GetInboxInvoicePdf
GetInboxInvoices
GetInboxInvoiceView
GetOutboxInvoice
GetOutboxInvoiceData
GetOutboxInvoicePdf
GetOutboxInvoices
GetOutboxInvoiceView
GetSummaryReport
GetUserAliasses
IsEInvoiceUser
SendInvoiceV2