Bitzsoft.Integrations.Finance.Invoice.Baiwang 1.0.0-alpha.7

This is a prerelease version of Bitzsoft.Integrations.Finance.Invoice.Baiwang.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Bitzsoft.Integrations.Finance.Invoice.Baiwang --version 1.0.0-alpha.7
                    
NuGet\Install-Package Bitzsoft.Integrations.Finance.Invoice.Baiwang -Version 1.0.0-alpha.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Bitzsoft.Integrations.Finance.Invoice.Baiwang" Version="1.0.0-alpha.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Finance.Invoice.Baiwang" Version="1.0.0-alpha.7" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.Finance.Invoice.Baiwang" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Bitzsoft.Integrations.Finance.Invoice.Baiwang --version 1.0.0-alpha.7
                    
#r "nuget: Bitzsoft.Integrations.Finance.Invoice.Baiwang, 1.0.0-alpha.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Bitzsoft.Integrations.Finance.Invoice.Baiwang@1.0.0-alpha.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Bitzsoft.Integrations.Finance.Invoice.Baiwang&version=1.0.0-alpha.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.Finance.Invoice.Baiwang&version=1.0.0-alpha.7&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.Finance.Invoice.Baiwang

百旺金赋发票服务实现,对接百旺金赋开放平台 API。

功能特性

基于 IInvoiceProvider 接口实现百旺发票服务,支持:

  • 发票开具、红冲、作废
  • 发票查询、查验
  • 发票库存管理
  • 企业信息查询
  • 税控设备辅助操作

安装

dotnet add package Bitzsoft.Integrations.Finance.Invoice.Baiwang
<PackageReference Include="Bitzsoft.Integrations.Finance.Invoice.Baiwang" Version="*" />

配置

{
  "Finance": {
    "Invoice": {
      "Baiwang": {
        "AppKey": "百旺提供的 AppKey",
        "AppSecret": "双方约定的 AppSecret",
        "BaseUrl": "https://api.baiwang.com",
        "TaxNumber": "企业税号"
      }
    }
  }
}
参数 必填 默认值 说明
AppKey 百旺侧提供的对接码
AppSecret 双方约定的签名密钥
BaseUrl 百旺正式环境地址 API 基地址
TaxNumber 企业税号

注册服务

using Bitzsoft.Integrations.Finance.Invoice.Baiwang;

services.AddBitzsoftBaiwangInvoice(configuration, "Finance:Invoice:Baiwang");

第三方请求日志

内置 Bitzsoft.Integrations.RequestLogging 出站请求记录管道,默认 NullRequestLogStore 不持久化。

// ① 默认:启用记录管道但不持久化(日志丢弃)
services.AddBitzsoftBaiwangInvoice(options => { /* ... */ });

// ② 持久化:宿主注册 IRequestLogStore 实现后,所有出站请求自动落库
services.AddRequestLogging<MyRequestLogStore>(opts =>
{
    opts.MaxBodyLength = 8192;
    opts.SensitiveFields.Add("mySecret");
});
services.AddBitzsoftBaiwangInvoice(options => { /* ... */ });

扩展接口

百旺提供了额外的扩展接口,使用前检查 is 运算符:

IBaiwangIssueProvider

开票专用接口,提供更细粒度的控制:

  • 异步开票启动与轮询
  • 批量开票支持

IBaiwangQueryProvider

查询专用接口:

  • 支持更复杂的查询条件
  • 支持导出操作

IBaiwangVerifyProvider

查验专用接口:

  • 批量查验
  • 详细查验结果

IBaiwangStockProvider

库存管理接口:

  • 查询可用库存
  • 库存预警

IBaiwangEnterpriseProvider

企业信息接口:

  • 企业信息查询
  • 税号验证

IBaiwangInputProvider

进项管理接口:

  • 进项查询
  • 进项认证

目标框架

  • .NET 5.0
  • .NET 8.0
  • .NET 10.0

相关包

包名 说明
Bitzsoft.Integrations.Finance.Invoice 抽象层
Bitzsoft.Integrations.Finance.Invoice.All 聚合包
Bitzsoft.Integrations.Compatibility 基础工具库
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Bitzsoft.Integrations.Finance.Invoice.Baiwang:

Package Downloads
Bitzsoft.Integrations.Finance.Invoice.All

发票管理服务聚合包 — 包含所有供应商实现

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 159 8/3/2026
1.0.0 169 8/2/2026
1.0.0-alpha.10 62 7/26/2026
1.0.0-alpha.9 68 7/12/2026
1.0.0-alpha.8 72 7/1/2026
1.0.0-alpha.7 80 6/16/2026
1.0.0-alpha.6 75 6/16/2026
1.0.0-alpha.5 72 6/14/2026