简体   繁体   English

使用.NET IPP数据服务SDK创建帐单

[英]Creating a Bill with .NET IPP Data Services SDK

I have a SaaS application that creates expenses within QuickBooks Online. 我有一个SaaS应用程序,可在QuickBooks Online中创建费用。 In the the IPP documentation ( https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0400_QuickBooks_Online/Bill ) it shows that on a line object you can specify the AccountID (its the last field in the documentation) and that is required to create an account-based expense. 在IPP文档( https://ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0050_Data_Services/0400_QuickBooks_Online/Bill )中,它表明您可以在一个行对象上指定AccountID(它是文档中的最后一个字段),即创建基于帐户的费用所需的费用。

However, in the .NET object for BillLine, there appears to be no way to specify that data. 但是,在BillLine的.NET对象中,似乎无法指定该数据。 Does anyone know how to create an "Account-based Bill Expense" using the .NET SDK? 有谁知道如何使用.NET SDK创建“基于帐户的账单费用”?

Intuit.Ipp.Data.Qbo.BillLine billLine = new Intuit.Ipp.Data.Qbo.BillLine();
billLine.ItemsElementName = new ItemsChoiceType1[] {ItemsChoiceType1.AccountId, ItemsChoiceType1.AccountName};
billLine.Items = new object[] {new IdType() {idDomain = idDomainEnum.QB, Value = "123"}, "MyAccountName"};

Any properties that are not exposed directly are defined in the ItemsElementName property, and the value is passed in the respective index in the Items object array. 未直接公开的所有属性都在ItemsElementName属性中定义,并且值在Items对象数组的相应索引中传递。 You will see this across most entities in the .NET DevKit. 您将在.NET DevKit中的大多数实体中看到这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用.NET c#IPP数据服务SDK创建新的QuickBooks Bill时所需的属性 - Required Properties when using .NET c# IPP Data Service SDK to create new QuickBooks Bill 为什么IPP .NET SDK 2.0中缺少属性 - Why is there missing attributes in IPP .NET sdk 2.0 IPP .Net SDK用于客户帐户数据。 所需组件的签名版本 - IPP .Net SDK for Customer Account Data. Signed versions of assemblies required IPP .NET 3.0 SDK迁移问题:“无法加载类型'Intuit.Ipp.Core.Rest.SyncRestHandler'” - IPP .NET 3.0 SDK Migration Issue: “Could not load type 'Intuit.Ipp.Core.Rest.SyncRestHandler'” 如何在IPP .net SDK 3中为客户选择帐单地址 - How to select billing address for customer in IPP .net SDK 3 供应商账单vs供应商信用/ Ipp C# - Vendor Bill vs Vendor Credit / Ipp C# QuickBooks Online(QBO)通过C#中的v2 IPP .NET SDK写入发票上的自定义字段 - QuickBooks Online (QBO) write to Custom Fields on Invoice via v2 IPP .NET SDK in C# IPP .NET c#SDK允许查询过滤器,但这不会减少有效负载吗? - IPP .NET c# SDK allows query filters, but this does not reduce payload? 为什么使用QuickBooks IPP.NET SDK检索类代码失败并显示ValidationError? - Why does retrieving Class codes with QuickBooks IPP.NET SDK fail with a ValidationError? 如何为QBO IPP .NET SDK V3的发票行项目指定产品/服务? - How can I specify Product/Service for an Invoice Line Item for QBO IPP .NET SDK V3?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM