Intuit QuickBooks 集成 (C#.NET/SDK) - 哪个 PhysicalAddress 属性 用于 ZipCode 和 State 字段?

Intuit QuickBooks Integration (C#.NET/SDK) - Which PhysicalAddress property is for ZipCode, and State field?

我无法在我的 Quickbooks 在线发票沙盒帐户中获取客户数据,其中填充了完整的送货和账单地址,主要是州和邮政编码。以下任何 "Line" 属性是否对应于 Zip 或 State 字段?我无法将它们填充到我的沙箱中。

 var billaddr = addressRepository.Get(a => a.ContactMethodID == contactMethod.ContactMethodID && a.AddressTypeId == 2).First();
                var shipaddr = addressRepository.Get(a => a.ContactMethodID == contactMethod.ContactMethodID && a.AddressTypeId == 3).First();
                newCustomer.BillAddr = new PhysicalAddress() { City = billaddr.City, Line1 = billaddr.Address1, Line2 = billaddr.Address2, PostalCode = billaddr.ZipCode, Country = billaddr.Country, Line3 = billaddr.State, Line4 = billaddr.ZipCode };
                newCustomer.ShipAddr = new PhysicalAddress() { City = shipaddr.City, Line1 = shipaddr.Address1, Line2 = shipaddr.Address2, PostalCode = shipaddr.ZipCode, Country = shipaddr.Country, Line3 = shipaddr.State, Line4 = shipaddr.ZipCode };

https://developer-static.intuit.com/SDKDocs/QBV3Doc/IPPDotNetDevKitV3/html/3cbe37d6-2d4b-6811-fc81-54fe04ba2c3e.htm

Public property Line1   
    Product: QBW Description: First line of the address.[br /]Max. length: 41 characters. Product: QBO Description: First line of the address.[br /]Max. length: 500 characters.
    Public property Line2   
    Product: QBW Description: Second line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Second line of the address.[br /]Max. length: 500 characters.
    Public property Line3   
    Product: QBW Description: Third line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Third line of the address.[br /]Max. length: 500 characters.
    Public property Line4   
    Product: QBW Description: Fourth line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Fourth line of the address.[br /]Max. length: 500 characters.
    Public property Line5   
    Product: QBW Description: Fifth line of the address.[br /]Max. length: 41 characters. Product: QBO Description: Fifth line of the address.[br /]Max. length: 500 characters. 

根据您提供给 Intuit 文档的 link,State 和 Zip 似乎分别封装在 PhysicalAddress class 的 CountrySubDivisionCode 和 PostalCode 属性中:

CountrySubDivisionCode
Product: QBW 
Description: Region within a country. For example, state name for USA, province name for Canada.
Max. length: 21 characters. 
Product: QBO 
Description: Globalized representation of a region. For example, state name for USA, province name for Canada.
Max. length: 255 characters.

PostalCode
Product: QBW 
Description: Postal code. 
For example, zip code for USA and Canada.
Max. length: 13 characters. 
Product: QBO 
Description: Postal code. 
For example, zip code for USA and Canada.
Max. length: 30 characters.

我看到你已经尝试过 PostalCode;您尝试分配给此 属性 的一些数据示例是什么?