Bitzsoft.Integrations.Finance.Invoice.All 1.0.0-alpha.10

This is a prerelease version of Bitzsoft.Integrations.Finance.Invoice.All.
dotnet add package Bitzsoft.Integrations.Finance.Invoice.All --version 1.0.0-alpha.10
                    
NuGet\Install-Package Bitzsoft.Integrations.Finance.Invoice.All -Version 1.0.0-alpha.10
                    
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.All" Version="1.0.0-alpha.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.Finance.Invoice.All" Version="1.0.0-alpha.10" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.Finance.Invoice.All" />
                    
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.All --version 1.0.0-alpha.10
                    
#r "nuget: Bitzsoft.Integrations.Finance.Invoice.All, 1.0.0-alpha.10"
                    
#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.All@1.0.0-alpha.10
                    
#: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.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.Finance.Invoice.All&version=1.0.0-alpha.10&prerelease
                    
Install as a Cake Tool

Bitzsoft.Integrations.Finance.Invoice.All

发票管理服务聚合包 -- 一次性注册诺诺、百旺发票服务供应商。

功能特性

  • 一键多供应商注册AddBitzsoftInvoiceAll 自动注册配置中存在的全部发票服务供应商
  • 按需激活:仅注册配置中存在的供应商,未配置的自动跳过,不产生多余注册
  • 统一配置节:所有发票供应商配置统一位于 Finance:Invoice 下,每个供应商独立子节
  • 传递自定义配置节:支持通过 sectionKey 参数指定非默认的配置节名称

安装

.NET CLI

dotnet add package Bitzsoft.Integrations.Finance.Invoice.All

PackageReference

<PackageReference Include="Bitzsoft.Integrations.Finance.Invoice.All" Version="1.0.0" />

配置

appsettings.json

{
  "Finance": {
    "Invoice": {
      "Nuonuo": {
        "AppKey": "诺诺提供的 AppKey",
        "AppSecret": "双方约定的 AppSecret",
        "TaxNumber": "企业税号"
      },
      "Baiwang": {
        "GatewayKey": "百旺提供的网关密钥标识",
        "Secret": "双方约定的网关密钥",
        "TaxNumber": "企业税号"
      }
    }
  }
}

上述示例仅配置了 Nuonuo 和 Baiwang,金蝶(Finance:Invoice:Kingdee)未配置则不会注册。各供应商具体字段以其 Options 类为准。

供应商 配置节 字段说明
诺诺 Finance:Invoice:Nuonuo AppKey / AppSecret / TaxNumber / BaseUrl / TokenUrl / UseSandbox 等
百旺 Finance:Invoice:Baiwang GatewayKey / Secret / TaxNumber / BaseUrl 等
金蝶 Finance:Invoice:Kingdee AppId / AppSecret / TaxNo / BaseUrl

注册服务

从 IConfiguration 绑定(推荐)

using Bitzsoft.Integrations.Finance.Invoice.All;

// 默认读取 "Finance:Invoice" 配置节
builder.Services.AddBitzsoftInvoiceAll(builder.Configuration);

// 或指定自定义配置节
builder.Services.AddBitzsoftInvoiceAll(builder.Configuration, "MyFinance:Invoice");

聚合包内部检测 NuonuoBaiwang 子节,存在则调用对应实现包的 AddBitzsoftNuonuoInvoice / AddBitzsoftBaiwangInvoice

使用示例

注册完成后,注入抽象接口即可解析到已配置的供应商:

using Bitzsoft.Integrations.Finance.Invoice.Interfaces;

public class InvoiceService
{
    public InvoiceService(IInvoiceProvider invoice)
    {
        // 解析为配置中启用的供应商实现
    }
}

核心类型一览

类型 说明
ServiceCollectionExtensions.AddBitzsoftInvoiceAll 聚合注册扩展方法(IConfiguration + 可选 sectionKey,默认 "Finance:Invoice"

支持的供应商

供应商 配置节 实现包
诺诺 Finance:Invoice:Nuonuo 诺税通发票服务
百旺 Finance:Invoice:Baiwang 百旺金赋发票服务
金蝶 Finance:Invoice:Kingdee 金蝶发票云服务(聚合包当前未自动注册,可单独引用实现包)

依赖

说明
Bitzsoft.Integrations.Finance.Invoice 发票管理抽象层
Bitzsoft.Integrations.Finance.Invoice.Nuonuo 诺诺实现
Bitzsoft.Integrations.Finance.Invoice.Baiwang 百旺实现
Bitzsoft.Integrations.Finance.Invoice.Kingdee 金蝶实现
Microsoft.Extensions.Configuration.Abstractions 配置抽象

相关包

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.All:

Package Downloads
Bitzsoft.Integrations.Finance.All

财税管理集成聚合包 — 包含所有子模块与供应商实现

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0-alpha.10 33 7/26/2026
1.0.0-alpha.9 51 7/12/2026
1.0.0-alpha.8 63 7/1/2026
1.0.0-alpha.7 80 6/16/2026
1.0.0-alpha.6 69 6/16/2026
1.0.0-alpha.5 64 6/14/2026