[英]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.