YzwTongSdk 1.0.4

dotnet add package YzwTongSdk --version 1.0.4
                    
NuGet\Install-Package YzwTongSdk -Version 1.0.4
                    
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="YzwTongSdk" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YzwTongSdk" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="YzwTongSdk" />
                    
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 YzwTongSdk --version 1.0.4
                    
#r "nuget: YzwTongSdk, 1.0.4"
                    
#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 YzwTongSdk@1.0.4
                    
#: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=YzwTongSdk&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=YzwTongSdk&version=1.0.4
                    
Install as a Cake Tool

云筑商砼SDK接入指南

一、简介

YzwTongSdk是一个用于快速对接云筑商砼系统的工具包,包括有订单、无订单下的对接场景。此工具包基于.Net Standard2.0开发,支持几乎所有.NET版本且提供了简洁易用的API,下面步骤有利于你快速将YzwTongSdk集成到你的项目中,Let's get started...

二、快速上手
  • 你可以运行以下命令在你的项目中快速安装工具包:

    PM> Install-Package YzwTongSdk
    
  • 初始化YzwTongSdkClient对象:

    YzwTongSdkClient client = new YzwTongSdkClient(appKey: "#云筑分配的应用Key#", privateKey: "#云筑分配的应用私钥#", env: CommonConsts.ENV_QA);
    
序号 字段名 备注
1 appKey 应用Key。由云筑分配,注意区分环境
2 privateKey 私钥。由云筑分配,注意区分环境
3 env 环境变量。</br>测试环境:CommonConsts.ENV_QA 生产环境:CommonConsts.ENV_PRD
二、工具包签名方法汇总

工具包提供了两种签名方法,分别是同步版本和异步版本,异步方法签名均以Async结尾(如QuerySku对应异步方法签名为QuerySkuAsync),请根据你的系统实际情况进行选择!

方法名称 方法说明 对应Uri 备注
QuerySkuAsync 根据供应商ID、项目ID查询对应合同下授权材料列表(不带合同编号) /logistics/api/tong/open/v1/contractsku/querySku 无订单
GetSkuBySkuNameAsync 根据材料名称、供应商ID、项目ID查询对应合同下可匹配的材料 /logistics/api/tong/open/v1/contractsku/getSku 无订单
GetSkuBySupplierSkuCodeAsync 根据供应商三方材料编码、供应商ID、项目ID查询对应合同下可匹配的材料 /logistics/api/tong/open/v1/contractsku/getBySupplierSku 无订单
QuickCreateDeliveryOrderAsync 快速创建商砼发货单 /logistics/api/tong/open/v1/deliveryorder/quickcreate 无订单
ListTongDeliveryOrderAsync 查询商砼发货单 /logistics/api/tong/open/v1/deliveryorder/query
GetSkuByThirdSkuCodeAsync 根据自定义的三方材料编码、材料来源获取自定义材料 /logistics/api/tong/open/v1/common/getSkuByThird
CreateSkuByThirdSkuCodeAsync 三方创建云筑商砼材料[非云筑标准材料库的材料] /logistics/api/tong/open/v1/common/createSkuByThird
AddSkuToContractAsync 三方向虚拟合同添加云筑材料 /logistics/api/tong/open/v1/contractsku/addContractSku
QueryContractSkuAsync 根据供应商ID、项目ID查询对应合同下授权材料列表(带合同编号) /logistics/api/tong/open/v1/contractsku/queryContractSku 有订单
QuickCreateOrderAsync 快速创建商砼订单 /logistics/api/tong/open/v1/order/create 有订单
ListTongOrderAsync 查询商砼订单 /logistics/api/tong/open/v1/order/query 有订单
ReceiveDoneAsync 云筑商砼发货单完成收货推送收货信息 /logistics/api/tong/open/v1/deliveryorder/receiveDone 有订单
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  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 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 184 10/22/2024
1.0.3 188 9/26/2024
1.0.2 201 9/12/2024
1.0.1 204 9/12/2024
1.0.0 177 9/9/2024